<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_4dcc3d29-4983-482c-81ad-568c9d405f99">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_1c12e3c0-d37c-4ab7-b7b0-466a1e295ac3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_469c78e6-76f9-4e54-849d-2d494cbd6bff">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_1bab6932-d540-46e3-84d4-6f49c7d3ad1b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_dd514f51-b7bb-48c9-89c1-0bb40bf63c9a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_143f8e0b-9fcf-4255-9aed-169d33f3b946">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_66bfe093-1bea-4654-ae2a-0ab62d748835">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_f08476b7-37aa-4f87-8aba-2f2171742470">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_48e430cd-7466-4737-b0b4-1ad8404bc6c2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      id="F_e0ad363d-710f-4f88-9bc3-fe9e79a55dbf">&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;16,300,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_726d1de6-4156-4d55-8a88-b76cec0eb7e1"
      decimals="0"
      id="F_b006a384-9226-4e69-8ebe-fd1695e1ea51"
      unitRef="U_USD">16300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
