<?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_c5591a28-00f1-47d5-ac1b-2b47c9674c97">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_c51f6bfa-7f83-4e4e-b001-118e701cae56">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_353e4ed4-c305-485b-a17f-ebb3745f8647">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_989a26da-bbd3-4900-9d8a-7f09ba73734a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_3ccab52b-62c3-42b5-bc54-19d3f9f95ce4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_087153cf-2b68-487b-9867-f81a84c89df4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_a8f3a695-d70b-4d93-9278-c7d30fde948c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_3814febe-dd33-4ddc-830c-879ae26432c9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_34a1b627-74bd-442b-aba1-1b63c78adfe0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_e43acb3d-de0e-40c9-a306-0108e66b8292">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      id="F_b6151d13-adf6-4dc6-8373-3016a893382d">&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;28,337,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_c5591a28-00f1-47d5-ac1b-2b47c9674c97"
      decimals="0"
      id="F_db5cc383-1e74-4530-8536-efac11977024"
      unitRef="U_USD">28337000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
