<?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_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_ba9ca59a-dc86-430d-8088-1ca3b1a25716">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_7b52a84c-6b48-4b50-b031-6af7637277b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_1e43e4e1-dcda-4236-a6b3-c3096fe7d2bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_00e5500c-04f3-4bf4-99d5-405953600743">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_3ca772fc-504b-4def-abad-26a9718cae16">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_31fa41b1-92c2-4198-9254-128b0fb21c5a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_6a759015-320d-461f-a915-a9c074d12428">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_27b66e08-93e6-43a0-9e06-8b1fe68e1ba9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_c0d9ce3a-2d29-4b6e-a8d7-c3fcf6d9a7af">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      id="F_926be1b2-7a10-435a-8427-11f0970811be">&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;7,070,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_1577fe36-2da0-4dd1-9cfa-5674d98ca1b1"
      decimals="-3"
      id="F_af7c9564-03c8-4fc9-9c71-6be4552b0685"
      unitRef="U_USD">7070000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
