<?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_914479e5-cd21-434e-88b6-540a19159b39">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_4312fd1a-5aea-4cae-951b-95be8bda69a1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_78f6051f-1123-4ae8-8280-b0bde410b067">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_2c18b2e6-2220-4e6c-a93d-6e7a035d4934">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_8f133fad-3687-4231-a1e6-d16521b1620a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_f228273e-413f-42a3-8d46-282b79cfe098">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_94a48303-9ff3-4371-bf17-afae3bc8d576">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_b3ea15b3-33bf-4b05-9316-9c101638a1c9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_0fc48996-a66e-4622-b2b5-208792d52bba">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_4b3e9f7b-cb5b-469b-9dba-90a5578d4f88">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_914479e5-cd21-434e-88b6-540a19159b39"
      id="F_b2e6d0fa-e259-47e6-89be-ef64a3d04641">&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,872,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_914479e5-cd21-434e-88b6-540a19159b39"
      decimals="-3"
      id="F_f3302a8e-51ab-4f99-9c50-940d9ed6690f"
      unitRef="U_USD">1872000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
