<?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_956a11be-ccec-4c59-80dc-d780ba09b4a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_a96eea43-5aee-414a-8756-f801ba499a31">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_bb79c577-48bb-45f3-9373-4ddf9fa7c8a0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_0a5ebd00-4de8-426b-9c42-ef1e18ab0397">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_64707abf-b1b3-417e-85d3-c143e04a791c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_ae4952bb-19d7-4f80-85c3-a4ee611a0c36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_405a4a0a-6d75-4752-bc29-92ef0eebb5ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_cb4066b3-7fd1-439f-86cb-f2612b74e79b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_fdf711b9-3182-41b8-902f-fb87260e6ad7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_29563de1-20f6-4935-9327-f45af8251df9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      id="F_98792a76-0b33-455d-8d36-7360d96835b5">&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;255,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_956a11be-ccec-4c59-80dc-d780ba09b4a9"
      decimals="0"
      id="F_02b556c3-4bcb-4e9e-8689-6656ee12e111"
      unitRef="U_USD">255000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
