<?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_daa33209-4b7a-43ad-96f1-5bab252972c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_7fcd4b07-7298-4a59-9b9c-fee18fcfb582">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_eb4ac146-faac-4f6c-9a3a-b598a36c3244">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_aabdd3f8-50de-45a6-bcf1-25835dd7d87f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_d652980b-6b2e-4ba8-8748-979ed0223a7d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_f56f49eb-9260-4ffd-9d42-236200cd62aa">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_0d877da1-30f3-499e-8b98-35753acd486a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_4394e671-52b4-49e5-a025-a7879cee2801">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_e871b354-62b3-40cb-a0e7-176fbe1354ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_941a2a31-3c63-42c5-b93d-416d5fad07af">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_daa33209-4b7a-43ad-96f1-5bab252972c3"
      id="F_6015bd82-1824-4515-97d2-6b099ba35649">&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;500,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_daa33209-4b7a-43ad-96f1-5bab252972c3"
      decimals="-3"
      id="F_416b0a74-60ac-47d8-a5e6-946ee8f4ce4f"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
