<?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_cedc6f71-76b8-42a9-9089-0ee090f60dca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_68203ab7-df34-4073-843b-20271159087f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_ae6ab2d4-c8d3-46ae-adcf-b4a202340ef4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_9605e3fd-b3a8-4221-abff-b28f40daa829">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_0b13b48a-7753-4d73-8c1a-c80d2fcb11f8">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_7e720e58-5076-4bae-b3bd-0ad8803809fc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_95332411-ece1-4b92-98d0-0dd8ab111856">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_20f14aec-5a4b-4c99-9b79-2be829723561">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_e608748f-c16b-4f6b-89bc-aae097ad970b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_cea46dab-1a4d-4e30-9043-9300261c568e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      id="F_cc2c6e72-a27c-4199-8868-854189fad6c2">&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;747,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_cedc6f71-76b8-42a9-9089-0ee090f60dca"
      decimals="-3"
      id="F_4aa43870-defe-4f46-ac79-64b86b531c9c"
      unitRef="U_USD">747000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
