<?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_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_5d3343ff-0fc5-40df-933c-b615d5b6612a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_8f97c625-bc33-4515-94ef-5f70ce60b454">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_dce608f2-e74c-4fdd-81eb-0e8e8e9b79a8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_ee4ff7e0-b501-4066-851f-dccb966782bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_09891e83-a988-4080-b13b-5516a7801ffc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_501292a8-4bbb-47cb-8373-db7088371126">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_24fbea1f-a087-455b-8d28-9eb2bfcb7c47">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_400eda9b-52b8-4fba-a8e0-f748a9b0ae1b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_3ff6f242-23b5-4414-ba75-cf33a5bbf278">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      id="F_e27c7e37-2542-4dc6-813b-99cd18039ef1">&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,000,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_42f1ac18-66a8-492e-8b1d-f4a50a2c28cf"
      decimals="-6"
      id="F_22b887da-d84a-4754-89c8-d90afdb444a6"
      unitRef="U_USD">7000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
