<?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_d7807ff4-d762-4172-82d1-db7c8e967e44">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_1215b1a9-6e7b-403a-8970-7e15c8e0133b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_6069ed86-17c8-4fc8-8120-00206599a9d1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_ddde5df9-311e-4c07-9085-490e69ed0f74">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_af37ef6d-b9f7-4431-a91b-1d16af63b312">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_3bbc4a75-ec24-40de-bb09-6f17268a5b11">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_e4efd9ac-455f-4ee8-9daf-77ea73330fd2">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_589a6c20-8087-4911-b79f-6d5432977714">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_64c6261d-b719-4c8f-9b05-ff11531ab60b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_fda00c21-ab49-491e-826e-28c2a46e2652">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d7807ff4-d762-4172-82d1-db7c8e967e44"
      id="F_7618ac8a-84a3-460f-a778-ad51075cf90d">&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;1,599,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_d7807ff4-d762-4172-82d1-db7c8e967e44"
      decimals="-3"
      id="F_1bf55d80-f6d3-4165-afe0-e4f2ab418b26"
      unitRef="U_USD">1599000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
