<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_02da4819-6895-47c9-a898-cc7d9c8565b0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_a65ef9d1-8ce1-43de-8f08-92ad9033b4c1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_2bc8c00c-282f-486d-9b64-3dc0e57d1171">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_b62f3f44-09d3-4dec-99be-9f7622c8b6ac">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_8c516dad-5d28-4ae8-896f-a0dd529cf628">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_e937bb60-8f36-4631-bde5-bbba6199845a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_7351ade7-b5f7-4b56-9d60-19bc827df2be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_3e151caa-ebd8-4b51-90c4-7f10c9bbfc22">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_da3de369-500d-48d3-948e-9a851cc74367">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_9c732094-74c9-4b4f-a342-ed618c7e93e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_02da4819-6895-47c9-a898-cc7d9c8565b0"
      id="F_81e6ad7f-cf84-4346-9870-3b3b7c7c5737">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,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_02da4819-6895-47c9-a898-cc7d9c8565b0"
      decimals="-6"
      id="F_d269b7a3-b149-496a-a3ab-5537d2fa34d9"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
