<?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_e5e1122b-cb3e-4338-8175-ef9eb67078bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_9dbe4cf4-3a10-461f-a71e-2b81c382f517">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_0624ae7b-72fc-4647-bf40-faf03b64bf3a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_ad2fc2a9-2f16-4af5-8090-39f71bc60996">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_7001888d-2737-4924-a0dd-3015047560bc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_2a933a42-2092-4a89-9047-41fa6cda3c89">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_20112243-8141-4787-85da-acbf3c2c7734">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_38fcb3d9-af76-4b8f-80b1-58afde8714ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_d2d4fe66-33cb-498f-bce6-5dc39d14a73c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_581982fe-9bb0-49e5-8c41-849c7581bde2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      id="F_e2a51743-2529-4f34-b36a-e9a5714b710a">&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;851,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_e5e1122b-cb3e-4338-8175-ef9eb67078bf"
      decimals="-3"
      id="F_ed0e85e4-fa16-445c-b254-53c7833d9964"
      unitRef="U_USD">851000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
