<?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_ebf669ec-286f-450f-a5ae-34c1b170b955">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_089b8627-6e26-47bc-adb4-037e6fdb8f22">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_a7ab43a5-fcf5-4e32-9dcf-eeb0c8be88d9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_266e9b19-320a-4ddc-98b1-2ea0ea80edda">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_9a7b42a2-78da-4d38-b0f8-138a2e975362">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_887ee88c-091e-42fa-96a3-d31c7653c362">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_db39644c-55dd-47d4-9467-aa2ee27e855d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_a256201f-ad67-43c4-80b8-c080707ba284">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_89bfae7d-ffba-4dec-b9dc-7fe555dd4a11">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_b2461f19-d3a1-472f-b12f-80398b5f3814">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ebf669ec-286f-450f-a5ae-34c1b170b955"
      id="F_9eb4b546-ef39-4949-bcb3-04ce811172a0">&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;2,153,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_ebf669ec-286f-450f-a5ae-34c1b170b955"
      decimals="-3"
      id="F_dd27bbdd-ac13-4f12-96d9-461d2042011b"
      unitRef="U_USD">2153000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
