<?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_cd719eed-751d-4842-8e58-f68570f126d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-23</startDate>
            <endDate>2026-07-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_6506407e-54de-43bc-b8a7-f5e3fa8937d8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_6a2fe3ea-240c-4941-9c7b-131a5826b386">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_d33bc278-3eac-4837-bf8d-97f9378d2729">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_3ea69aeb-a728-4a86-bcdd-489f1e7f7d38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_c002c645-0232-4166-b9ae-d66ce901d807">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_46a2fbf1-e541-444e-bd98-0b92126f0818">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_1b3054f8-f3c1-47e0-b474-dddba6cd6ea7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_a4d8901f-8250-430e-ac31-7a81d9dcb88f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_ddd6937c-e748-4f79-95ef-0c2ed6a7ca02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cd719eed-751d-4842-8e58-f68570f126d5"
      id="F_708150c2-a5b1-49ea-a06a-01318e3d4bbc">&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;3,482,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_cd719eed-751d-4842-8e58-f68570f126d5"
      decimals="-3"
      id="F_3ee02a82-4485-41b5-a0c5-adeb58eb26b1"
      unitRef="U_USD">3482000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
