<?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_138bb684-1398-47fb-b971-477e055ab510">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_d1c955d6-db36-4d66-abbb-1a38527ab07f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_dfc9731e-361d-4e20-a3cd-63a54ff15b49">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_b6aef89b-8bc6-4c1d-8763-9cef72b41730">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_ec2c68c8-9fa3-4b8d-b88d-fc29c2eba30a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_6bf4e70a-cbeb-4b58-9780-0d21b00a2b2c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_cfc15d8f-3c6d-4b77-86a4-a65a5f466ca2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_2cfd901b-b2a6-4474-93c4-e90e2e2ec909">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_82408ecb-70ca-4d38-a5da-d31e577a5d5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_d0a0a488-66e0-4ce6-913b-b6787fd81824">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_138bb684-1398-47fb-b971-477e055ab510"
      id="F_57ac8fc4-d9ef-4845-9daf-1ad3d2c4a5a6">&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;3,000,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_138bb684-1398-47fb-b971-477e055ab510"
      decimals="0"
      id="F_3520d10a-3522-4ea5-8721-374febd4ff8e"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
