<?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_246b2c0d-3562-4ce8-95d7-40602a78816d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_ae99d8cf-3246-4eef-b68e-5d43cc7abe87">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_276897ff-6571-46cf-969b-dc9a0437908f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_e5ec6557-cbc3-4f4c-a99d-c80e2d9c7ef3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_b9ddc2e1-aa71-4a3f-b943-7a2c9f674ab9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_a9368f41-ae64-456a-bf53-f216dc5d75a4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_fe967f5a-40f4-4efc-9856-10f5301c9e1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_4bbafc6b-2716-498f-ac06-084b89e44de5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_925a7f9e-6a0c-4c07-b301-63dd762dcd06">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_3d98cfb1-463a-4a1a-801b-df8ae5c65ae4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_246b2c0d-3562-4ce8-95d7-40602a78816d"
      id="F_bec3d0c1-e1c9-4b63-b318-ea37a324a3e2">&lt;p style="tab-size:26.66px;font-size:12pt;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;60,963,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_246b2c0d-3562-4ce8-95d7-40602a78816d"
      decimals="-3"
      id="F_e8afe049-cc80-48c2-800c-6292937da5bd"
      unitRef="U_USD">60963000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
