<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_034fe902-b88f-456a-94c5-fcfd84968ef6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-26</startDate>
            <endDate>2025-09-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_5b3225cc-ca3a-4cbe-91ef-a442bc620400">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_a5087590-7591-4526-bc68-c2894847b37c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_87691a07-8f37-4d29-8267-40ba5283bbf6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_2616ea07-0665-4b54-9db9-3b56ed4a1026">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_ce08c66f-94fb-45ec-a38e-2be0acde0e4d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_9e1fc732-c4c3-4933-af7c-f4f5924b4623">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_2d07e30b-6fbc-48af-b4c2-bc1d1e623200">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_744613f9-7dc5-451d-8cd5-af3c84472134">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_1bb8881e-97c9-4e73-93eb-bacc75d960d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      id="F_4c8af33a-1b72-46f9-a630-dd1fcf29f990">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;620,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_034fe902-b88f-456a-94c5-fcfd84968ef6"
      decimals="0"
      id="F_fc6a1510-7e46-425a-9b74-bdb857321da6"
      unitRef="U_USD">620000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
