<?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_acabb055-500e-4d48-b5b2-30fc314c5794">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-24</startDate>
            <endDate>2026-09-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_d88e320d-5ba4-4c9f-9aa4-50fbb1fef781">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_a7f230bb-369b-4282-b5c4-d426e4cefe02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_6ad15760-61a3-4f51-bd24-93a961905d6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_2b1b1bdd-1316-4de3-a0e9-6555d423a239">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_51d90f5b-3718-4b53-a2c7-5aae7c127f8d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_854615ad-49a6-4510-91ea-33050c276ffa">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_d150312b-bc5a-489d-8f4a-f5470ba841bf">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_b7df6cd8-bdd7-46df-afb7-88d0abaec50b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_78f0dc0b-283f-4b45-9b61-af6c67b772b7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_acabb055-500e-4d48-b5b2-30fc314c5794"
      id="F_d9b7dc94-7696-4736-a47a-d7c538393fcf">&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,793,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_acabb055-500e-4d48-b5b2-30fc314c5794"
      decimals="-3"
      id="F_5f5519f3-98a2-4346-a4eb-5d06159851a1"
      unitRef="U_USD">1793000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
