<?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_807e2a80-e2db-457e-9ffa-c67a5954396a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_a9f486ba-bf30-40ca-ac17-77a8340a16ea">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_f3c28a89-5585-4c22-aec5-582600b836eb">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_98bf5270-95e1-4a42-a1e5-4d6e6ca9a19b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_e6db4b33-b79f-4fac-88e3-260dd9cb641b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_ed8bea19-576e-4c5d-98b1-c1f2a7827f3f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_d093766d-a37f-48b4-97f8-a44403051898">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_11fb6208-40c8-4627-a4e4-e4e1fe1f8eed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_29767e36-8b40-4250-a58d-2a42e3ad0dfe">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_98d68ebb-3557-4ddd-a7b2-14e47d15140d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_807e2a80-e2db-457e-9ffa-c67a5954396a"
      id="F_693d90d9-ab93-4ba3-87ff-5d525a94fd8d">&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;7,320,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_807e2a80-e2db-457e-9ffa-c67a5954396a"
      decimals="-3"
      id="F_de0cfb38-0bc8-4e38-b0af-365ae0020550"
      unitRef="U_USD">7320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
