<?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_9dba9103-91d7-475e-aa41-64cd98013bef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_00850213-e18e-4a34-a2f0-0535fd5b117e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_ebb9d039-5241-4a07-b22f-75ccbe5f07d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_fcab48e4-155b-472d-93e5-bdc259ea0059">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_71f25568-0d08-452c-a121-2083f5e199af">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_19753b1d-0008-4f4f-bd80-15c4d41616d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_5b95c8af-6aed-4c57-844f-bf942521516d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_d3692799-2229-4b14-a812-8344c2af3812">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_35e57161-113d-4774-a2ba-763fbad70101">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_05c3be3a-8325-4bc5-bc90-5062629c5db0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9dba9103-91d7-475e-aa41-64cd98013bef"
      id="F_1ac9c012-3bf4-4d85-a985-590ceb1ecf3f">&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;450,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_9dba9103-91d7-475e-aa41-64cd98013bef"
      decimals="-3"
      id="F_75233f7b-874a-41bc-8eb3-a23a0770bbd8"
      unitRef="U_USD">450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
