<?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_be52309e-8d80-431b-93be-1cfad7fc9fd7">
        <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>
    <ffd:RegnFileNb
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_cf0654a3-a061-4e47-aca2-693e391ead7e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_bdd26fc7-4b28-427c-96aa-ed7ad2d4fcff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_f61293a4-d726-41af-a212-3737f7723098">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_3eccf507-e5ec-45a7-adcb-0feb3a76d586">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_a25730b3-6361-4e78-9fd4-a703b06385db">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_9499ccff-9fe5-41a9-a77b-1da4e4ddefbb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_f8a65a77-c7ec-4ee5-9585-8954901f7d94">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_39aefbaa-89e6-42b1-ba9f-262204450994">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_8e59321b-884e-4077-bbe4-d45eb47b7988">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      id="F_00fee930-6e9d-4159-9c5e-a3573d750035">&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,075,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_be52309e-8d80-431b-93be-1cfad7fc9fd7"
      decimals="-3"
      id="F_db626ad7-ba38-47f3-be86-6302226fc8e1"
      unitRef="U_USD">7075000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
