<?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_1c93924a-bb7a-4eed-a89e-a88718034541">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_58b512e2-bf1b-4f00-9d75-3c3c1b2ba320">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_d1d22870-33bb-4002-8022-288bd923fc83">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_94dfd3f2-f719-4b7f-a9b7-b8600fd3d80c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_661ed0f2-8f9d-48ff-86fd-8fd149567b6e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_a88f9714-35d0-4b25-94ce-f7a85c052ffe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_3f449704-baaa-4eeb-8d13-cdd117db5048">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_6fd6a86a-3fae-4653-a001-5e2732803022">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_934320ba-904e-467b-86bb-ff24d8b3593c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_b0d10f02-527e-4c25-9d2f-29573008bed8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1c93924a-bb7a-4eed-a89e-a88718034541"
      id="F_e9951d5b-14df-4ca5-8f6e-dd6318e88b1b">&lt;p style="font-size:10pt;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;898,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_1c93924a-bb7a-4eed-a89e-a88718034541"
      decimals="-3"
      id="F_66ed9b27-3ea7-43d9-ad60-ba02772f1bdf"
      unitRef="U_USD">898000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
