<?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_680ef773-f1a8-4c54-8e49-b4bbb3352ef9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_876b21b4-ec57-4943-9968-cbf03f6182ce">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_4c770f07-0b87-4ad0-b3cc-ef60ef957514">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_95ce99af-fd51-4e62-9bcd-889980523aad">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_8fb93ebe-9189-41e2-8b01-22c945792024">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_8b87ee4b-f828-4f23-93da-758ac2daa8ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_de0853d1-ca71-4d56-b313-547a585beb66">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_466cacb3-1dc5-4284-97cc-faddac291aec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_1bd761a1-3af6-4259-be53-9b76501c47f2">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_da4ce677-f442-4549-9eaf-8964dd29d276">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      id="F_851b6dcc-ca24-4487-9791-7b3738702ab8">&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;1,185,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_680ef773-f1a8-4c54-8e49-b4bbb3352ef9"
      decimals="-3"
      id="F_89c19979-4f55-4673-b97a-01e73e7cdeec"
      unitRef="U_USD">1185000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
