<?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_c0cb14b9-9819-4757-a2e3-d774506d9453">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_850bd5b6-47e6-4a28-9a13-70b359206cda">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_af2dfc0a-5aea-4f1a-9780-2aae05fcf7b1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_ae2a5c9e-ca5d-44ef-a264-1bba6244fb73">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_03812c75-7714-4bf7-a41d-b7d8536c387c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_40ed19ae-6572-4202-b317-3fe740580bea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_8a3fba3b-c1bc-4b4b-bf68-f12b25eedaa7">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_4ac0484a-a1bd-4457-a69b-70365a94855d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_5283cb0c-ef42-4f83-9ba9-dae1ebdc6e3a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_339754d0-8620-4e24-a975-ce3e7169a702">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c0cb14b9-9819-4757-a2e3-d774506d9453"
      id="F_66edda63-dff2-4bbe-938a-6c8663316ca1">&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;6,457,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_c0cb14b9-9819-4757-a2e3-d774506d9453"
      decimals="-3"
      id="F_1a4e0a10-064f-44fb-929f-f219360bb34b"
      unitRef="U_USD">6457000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
