<?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_454167e4-c92e-4140-a08b-875465cea8b7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-23</startDate>
            <endDate>2025-12-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_5feec90a-32bd-4103-b995-c6c7df195a9a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_b5c0702d-5f71-47c6-b0ec-068e2bab86e0">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_07eb2f57-ae44-456c-8a9d-c70d561c20b1">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_e543189f-a083-404a-bd17-5e0dac2c7361">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_7608cea0-5b32-4f09-99d0-4ba705699ea7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_a07c71ec-9e3f-4041-bb35-30cf7e6fd217">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_76378f35-17b1-4e94-b54e-ff56c82dc2d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_92a7c3cc-9694-4ac7-a223-a9e7149657c5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_b29837ef-d5a3-4e7a-b9f7-6dc62d6f16b9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_454167e4-c92e-4140-a08b-875465cea8b7"
      id="F_46bfc0a0-8a82-40da-81de-f0c5b63a7546">&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;1,160,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_454167e4-c92e-4140-a08b-875465cea8b7"
      decimals="0"
      id="F_69d797f1-4928-45b1-8490-1be2abfa4e58"
      unitRef="U_USD">1160000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
