<?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_c120ee08-ab92-4fdd-adee-1e1d9a385e34">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_fddff091-8305-404b-8b5b-2b104d95ef55">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_fb6854bf-1aa4-4870-b9b8-dadccd2d33a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_f0187c5e-8aeb-40ea-9aa5-ceb4b7b15b39">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_645de71f-8cba-40d2-ad12-156783bcfb06">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_39f278e6-b59b-438d-bfa9-30eb216825f5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_5b0d11ee-6699-44fe-9942-d1b54d7e67c4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_8518027b-f111-4562-82b2-1ffe991cebae">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_3dfff667-acf8-4dcd-b070-affdf0bb471c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_c11a047f-688b-49ca-85ba-367a4f9a5e0b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      id="F_b53a3b0b-9556-4a02-942e-7236ecdd52a5">&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;500,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_c120ee08-ab92-4fdd-adee-1e1d9a385e34"
      decimals="-3"
      id="F_ce586252-5546-422b-85fe-9e65629ad7a8"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
