<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:berkshire="http://berkshirefunds.com/20260630"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2026"
  xmlns:us-gaap="http://fasb.org/us-gaap/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="berkshire-20260630.xsd" xlink:type="simple"/>
    <context id="From2026-01-01to2026-06-30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_SAndP500IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">berkshire:SAndP500IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_MicronTechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:MicronTechnologyIncMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_TaiwanSemiconductorMfgCoLtdADRMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:TaiwanSemiconductorMfgCoLtdADRMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_AdvancedMicroDevicesIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:AdvancedMicroDevicesIncMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_NebiusGroupNVClassAMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:NebiusGroupNVClassAMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_BloomEnergyCorpClassAMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:BloomEnergyCorpClassAMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_WesternDigitalCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:WesternDigitalCorpMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_MarvellTechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:MarvellTechnologyIncMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_CorningIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:CorningIncMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_AppliedMaterialsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:AppliedMaterialsIncMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_IntelCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:IntelCorpMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_SemiconductorsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:SemiconductorsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_SemiconductorEquipmentMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:SemiconductorEquipmentMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_CommunicationAndNetworkingEquipmentMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:CommunicationAndNetworkingEquipmentMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_ComputerHardwareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:ComputerHardwareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_NeocloudDataCentersMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:NeocloudDataCentersMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_ElectricalEquipmentAndPartsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:ElectricalEquipmentAndPartsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_AerospaceAndDefenseMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:AerospaceAndDefenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_BusinessSoftwareAndServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:BusinessSoftwareAndServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_InternetServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:InternetServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000013240Member_custom_CybersecurityEquipmentAndServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001030979</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">berkshire:C000013240Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">berkshire:CybersecurityEquipmentAndServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <unit id="Holding">
        <measure>berkshire:Holding</measure>
    </unit>
    <dei:AmendmentFlag contextRef="From2026-01-01to2026-06-30" id="Fact000003">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="From2026-01-01to2026-06-30" id="Fact000004">N-CSRS</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="From2026-01-01to2026-06-30" id="Fact000005">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="From2026-01-01to2026-06-30" id="Fact000006">BERKSHIRE FUNDS</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="From2026-01-01to2026-06-30" id="Fact000007">0001030979</dei:EntityCentralIndexKey>
    <dei:DocumentPeriodEndDate contextRef="From2026-01-01to2026-06-30" id="Fact000014">2026-06-30</dei:DocumentPeriodEndDate>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000015">BERKSHIRE FOCUS FUND</oef:FundName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000016">BFOCX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000017">This &lt;span id="xdx_902_eoef--ShareholderReportAnnualOrSemiAnnual_c20260101__20260630_zapCVEJnSeA"&gt;semi-annual shareholder report&lt;/span&gt; contains important information about
the Berkshire Focus Fund (BFOCX) for the period January 1, 2026 to June 30, 2026.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:ShareholderReportAnnualOrSemiAnnual contextRef="From2026-01-01to2026-06-30" id="Fact000018">semi-annual shareholder report</oef:ShareholderReportAnnualOrSemiAnnual>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000019">You can find additional information about the fund at
&lt;span id="xdx_904_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_z7cUuDglk2m2"&gt;www.berkshirefunds.com&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_904_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_zm5tVdMS1qh6"&gt;1-877-526-0707&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000020">www.berkshirefunds.com</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000021">1-877-526-0707</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000022">

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;span style="font-size: 14pt"&gt;&lt;b&gt;Fund Costs&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;(based on hypothetical $10,000 investment)&lt;/p&gt;

&lt;div style="margin-top: 3pt; margin-bottom: 3pt; width: 100%"&gt;&lt;div style="border-top: Black 1pt solid; font-size: 1pt"&gt;&#160;&lt;/div&gt;&lt;/div&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&#160;&lt;/p&gt;

&lt;table cellpadding="2" cellspacing="0" style="font: 11pt Times New Roman, Times, Serif; width: 100%; border-collapse: collapse"&gt;
  &lt;tr style="vertical-align: top"&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: left; width: 60%; font-size: 11pt; vertical-align: bottom"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;Fund&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; vertical-align: bottom; width: 20%; font-size: 11pt; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;Costs of a $10,000 investment&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; white-space: nowrap; vertical-align: bottom; width: 20%; font-size: 11pt; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;Costs paid as a percentage of a $10,000 investment (annualized)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr style="vertical-align: top; background-color: Gainsboro"&gt;
    &lt;td style="font-size: 11pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;&lt;span id="xdx_91E_ecustom--C000013240Member_zD6yTP0Stxl9"&gt;&lt;span id="xdx_904_eoef--ClassName_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_zmdmWrK7524d"&gt;Berkshire Focus Fund&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
    &lt;td id="xdx_989_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_zYsLS4apEmi5" style="font-size: 11pt; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;$127.38&lt;/span&gt;&lt;/td&gt;

    &lt;td id="xdx_98F_eoef--ExpenseRatioPct_dp_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_zgL4KxwrWDWg" style="font-size: 11pt; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;1.94%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;</oef:ExpensesTextBlock>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000024">Berkshire Focus Fund</oef:ClassName>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      decimals="2"
      id="Fact000025"
      unitRef="USD">127.38</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000026"
      unitRef="Ratio">0.0194</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000027">

&lt;p style="font: bold 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;span style="font-size: 14pt"&gt;&lt;b&gt;Management&#x2019;s Discussion of
Performance&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-top: 3pt; margin-bottom: 3pt; width: 100%"&gt;&lt;div style="border-top: Black 1pt solid; font-size: 1pt"&gt;&#160;&lt;/div&gt;&lt;/div&gt;

&lt;p style="font: bold 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;span style="font-size: 14pt"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&#160;&lt;/p&gt;
&lt;div style="float: left; width: 90px"&gt;
&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;img alt="" src="fp0099581-1_02.jpg"/&gt;&#160;&lt;/p&gt;
&lt;/div&gt;
&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;For the six-month period ended June 30, 2026, the
Berkshire Focus Fund significantly outperformed its primary benchmark index. The Fund generated a total return of 64.82% while the S&amp;amp;P
500&lt;sup&gt;&#xae;&lt;/sup&gt; Index&#x2014;which we consider to be the Fund&#x2019;s primary benchmark index&#x2014;produced a total return of 10.21%
over the same period. A $10,000 investment in our Fund over 10 years starting on June 30, 2016, grew to $83,175. This was a +23.59% average
annual compounded return. A $10,000 investment in the S&amp;amp;P 500&lt;sup&gt;&#xae;&lt;/sup&gt; over the same period grew to $42,271. This was a +15.51%
average annual compounded return.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;During the first half of 2026, the artificial intelligence
(AI) build-out shifted decisively from software deployment into an aggressive, hardware-centric scramble to solve severe physical-world
bottlenecks. While broader markets grappled with "higher-for-longer" interest rate anxieties and the outbreak of the Iran war,
hardware infrastructure effectively decoupled from these macro and geopolitical headwinds. Capital across the industry rotated violently
away from traditional software applications and legacy platforms prone to AI-driven disruption, reallocating instead into hard assets
as hyperscalers accelerated capital expenditures to unprecedented levels. This massive deployment of capital ran into severe constraints
on compute and an acute supply squeeze in high-bandwidth memory. By maintaining our deliberate portfolio positioning and concentrating
heavily on key semiconductor leaders, we successfully positioned the portfolio at the exact choke points of the AI revolution. Looking
ahead, we see immense opportunity across the AI landscape, particularly within companies structurally positioned to capture outsized gains
from the accelerating capital deployment toward advanced silicon architectures and large-scale datacenter infrastructure.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;Our investments in Advanced Micro Devices (AMD), Arm
Holdings (ARM), Bloom Energy (BE), Marvell Technology (MRVL), Micron Technology (MU), Nebius (NBIS) and Western Digital (WDC) were all
contributors to the Fund&#x2019;s performance during the period. However, some of our investments detracted from the Fund&#x2019;s performance&#x2014;these
included Broadcom (AVGO), NVIDIA (NVDA), Palantir (PLTR), Cloudflare (NET) and MongoDB (MDB).&lt;/p&gt;

</oef:FactorsAffectingPerfTextBlock>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000028">&lt;span style="font-weight: normal"&gt;&lt;img alt="" src="fp0099581-1_03.jpg"/&gt;&lt;/span&gt;</oef:LineGraphTableTextBlock>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2016-07-012026-06-30_custom_C000013240Member"
      id="Fact000029">Berkshire
    Focus Fund</oef:LineGraphAndTableMeasureName>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2016-07-012026-06-30_custom_SAndP500IndexMember"
      id="Fact000030">S&amp;P 500&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000031"
      unitRef="USD">10396</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000032"
      unitRef="USD">10079</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000033"
      unitRef="USD">13883</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000034"
      unitRef="USD">11189</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000035"
      unitRef="USD">19588</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000036"
      unitRef="USD">12456</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000037"
      unitRef="USD">22916</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000038"
      unitRef="USD">13249</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000039"
      unitRef="USD">29572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000040"
      unitRef="USD">15151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000041"
      unitRef="USD">45420</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000042"
      unitRef="USD">21807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000043"
      unitRef="USD">21331</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000044"
      unitRef="USD">20222</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000045"
      unitRef="USD">23550</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000046"
      unitRef="USD">22758</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000047"
      unitRef="USD">30681</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000048"
      unitRef="USD">29414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000049"
      unitRef="USD">40349</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000050"
      unitRef="USD">34010</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000051"
      unitRef="USD">83175</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_SAndP500IndexMember"
      decimals="0"
      id="Fact000052"
      unitRef="USD">42271</oef:AccmVal>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000053">&lt;b&gt;&lt;img alt="" src="fp0099581-1_04.jpg"/&gt;&lt;/b&gt;</oef:AvgAnnlRtrTableTextBlock>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000055"
      unitRef="Ratio">0.8344</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000056"
      unitRef="Ratio">0.1179</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000057"
      unitRef="Ratio">0.2359</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_SAndP500IndexMember"
      decimals="INF"
      id="Fact000059"
      unitRef="Ratio">0.2232</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_SAndP500IndexMember"
      decimals="INF"
      id="Fact000060"
      unitRef="Ratio">0.1341</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_SAndP500IndexMember"
      decimals="INF"
      id="Fact000061"
      unitRef="Ratio">0.1551</oef:AvgAnnlRtrPct>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000063">

&lt;p style="font: bold 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;span style="font-size: 14pt"&gt;&lt;b&gt;Fund Statistics&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-top: 3pt; margin-bottom: 3pt; width: 100%"&gt;&lt;div style="border-top: Black 1pt solid; font-size: 1pt"&gt;&#160;&lt;/div&gt;&lt;/div&gt;

&lt;p style="font: bold 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Net Assets: $&lt;span id="xdx_909_eus-gaap--AssetsNet_iI_pn5n6_c20260630__oef--ClassAxis__custom--C000013240Member_znC1USSxob33"&gt;461.3&lt;/span&gt; million&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Portfolio Holdings: &lt;span id="xdx_906_eoef--HoldingsCount_iI_uHolding_c20260630__oef--ClassAxis__custom--C000013240Member_zBvxxwTyBGf"&gt;27&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Portfolio Turnover: &lt;span id="xdx_900_eus-gaap--InvestmentCompanyPortfolioTurnover_uRatio_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_zVZXNlr5cuy6"&gt;1980.9%&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Total Advisory Fees Paid: $&lt;span id="xdx_902_eoef--AdvisoryFeesPaidAmt_c20260101__20260630__oef--ClassAxis__custom--C000013240Member_z20Lv62Q1A3f"&gt;2,525,156&lt;/span&gt;&lt;/p&gt;

</oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000013240Member"
      decimals="-5"
      id="Fact000064"
      unitRef="USD">461300000</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000065"
      unitRef="Holding">27</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      decimals="INF"
      id="Fact000066"
      unitRef="Ratio">19.809</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:AdvisoryFeesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      decimals="0"
      id="Fact000067"
      unitRef="USD">2525156</oef:AdvisoryFeesPaidAmt>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_MicronTechnologyIncMember"
      decimals="INF"
      id="Fact000069"
      unitRef="Ratio">0.0821</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_TaiwanSemiconductorMfgCoLtdADRMember"
      decimals="INF"
      id="Fact000071"
      unitRef="Ratio">0.0807</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_AdvancedMicroDevicesIncMember"
      decimals="INF"
      id="Fact000073"
      unitRef="Ratio">0.0802</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_NebiusGroupNVClassAMember"
      decimals="INF"
      id="Fact000075"
      unitRef="Ratio">0.0612</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_BloomEnergyCorpClassAMember"
      decimals="INF"
      id="Fact000077"
      unitRef="Ratio">0.0598</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_WesternDigitalCorpMember"
      decimals="INF"
      id="Fact000079"
      unitRef="Ratio">0.0500</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_MarvellTechnologyIncMember"
      decimals="INF"
      id="Fact000081"
      unitRef="Ratio">0.0491</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_CorningIncMember"
      decimals="INF"
      id="Fact000083"
      unitRef="Ratio">0.0489</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_AppliedMaterialsIncMember"
      decimals="INF"
      id="Fact000085"
      unitRef="Ratio">0.0488</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_IntelCorpMember"
      decimals="INF"
      id="Fact000087"
      unitRef="Ratio">0.0487</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_SemiconductorsMember"
      decimals="INF"
      id="Fact000089"
      unitRef="Ratio">0.4566</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_SemiconductorEquipmentMember"
      decimals="INF"
      id="Fact000091"
      unitRef="Ratio">0.1789</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_CommunicationAndNetworkingEquipmentMember"
      decimals="INF"
      id="Fact000093"
      unitRef="Ratio">0.1242</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_ComputerHardwareMember"
      decimals="INF"
      id="Fact000095"
      unitRef="Ratio">0.0911</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_NeocloudDataCentersMember"
      decimals="INF"
      id="Fact000097"
      unitRef="Ratio">0.0612</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_ElectricalEquipmentAndPartsMember"
      decimals="INF"
      id="Fact000099"
      unitRef="Ratio">0.0598</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_AerospaceAndDefenseMember"
      decimals="INF"
      id="Fact000101"
      unitRef="Ratio">0.0301</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_BusinessSoftwareAndServicesMember"
      decimals="INF"
      id="Fact000103"
      unitRef="Ratio">0.0001</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_InternetServicesMember"
      decimals="INF"
      id="Fact000105"
      unitRef="Ratio">0.0001</oef:PctOfTotalInv>
    <oef:PctOfTotalInv
      contextRef="AsOf2026-06-30_custom_C000013240Member_custom_CybersecurityEquipmentAndServicesMember"
      decimals="INF"
      id="Fact000107"
      unitRef="Ratio">0.0001</oef:PctOfTotalInv>
    <oef:UpdProspectusWebAddress
      contextRef="From2026-01-012026-06-30_custom_C000013240Member"
      id="Fact000109">www.berkshirefunds.com</oef:UpdProspectusWebAddress>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#Fact000031"
          xlink:label="Fact000031"
          xlink:type="locator"/>
        <link:footnote id="Footnote000108" xlink:label="Footnote000108" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:b><xhtml:i>The Fund&#x2019;s past performance is not a good predictor
of the Fund&#x2019;s future performance. </xhtml:i></xhtml:b><xhtml:i>The graph and table do not reflect the deduction of taxes that a shareholder would
pay on fund distributions or redemption of fund shares.</xhtml:i></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000031"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000032"
          xlink:label="Fact000032"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000032"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000033"
          xlink:label="Fact000033"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000033"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000034"
          xlink:label="Fact000034"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000034"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000035"
          xlink:label="Fact000035"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000035"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000036"
          xlink:label="Fact000036"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000036"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000037"
          xlink:label="Fact000037"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000037"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000038"
          xlink:label="Fact000038"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000038"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000039"
          xlink:label="Fact000039"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000039"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000040"
          xlink:label="Fact000040"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000040"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000041"
          xlink:label="Fact000041"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000041"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000042"
          xlink:label="Fact000042"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000042"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000043"
          xlink:label="Fact000043"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000043"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000044"
          xlink:label="Fact000044"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000044"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000045"
          xlink:label="Fact000045"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000045"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000046"
          xlink:label="Fact000046"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000046"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000047"
          xlink:label="Fact000047"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000047"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000048"
          xlink:label="Fact000048"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000048"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000049"
          xlink:label="Fact000049"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000049"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000050"
          xlink:label="Fact000050"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000050"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000051"
          xlink:label="Fact000051"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000051"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000052"
          xlink:label="Fact000052"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000052"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000055"
          xlink:label="Fact000055"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000055"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000056"
          xlink:label="Fact000056"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000056"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000057"
          xlink:label="Fact000057"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000057"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000059"
          xlink:label="Fact000059"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000059"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000060"
          xlink:label="Fact000060"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000060"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000061"
          xlink:label="Fact000061"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000061"
          xlink:to="Footnote000108"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
