<?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_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_c3889ab2-0986-4ca6-aca7-5dddd5937563">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_a5a16e54-e62f-4510-8c4d-c84b006cf987">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_7b594d68-8c1f-440d-b57a-05250da21e2c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_b6298206-54f6-490a-8b7b-8d864a833e44">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_d50f9664-c00d-491f-9b87-76454a1676cf">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_5e0e7ad1-4490-476b-bf00-c7ac32473b9e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_9f4f14bb-4514-4128-aaee-712726e38939">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_22f63dba-9eee-48e3-8465-007027451b68">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_a9aefe85-f180-4390-8556-b8efb75fbc08">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      id="F_add84ecb-64ce-4ce4-a49b-4807a8cc6b04">&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,214,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_e8ffa336-4ee0-45db-b1a7-d5c3dc884a31"
      decimals="-3"
      id="F_91ddb0d4-046b-4f22-87d0-a5af9cbd815b"
      unitRef="U_USD">1214000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
