<?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_832d84ce-814f-4d3a-8425-a4ee506100a3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_47c0f8d3-b8e4-4eeb-ae23-792fbdb65a2b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_e4670ed1-b08c-4bf6-ba00-29389ede13ae">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_d8168813-8c39-469d-a619-33cae0c7cdfc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_e3261f85-0a4e-474a-888e-675e2d3c3a33">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_ae38f048-c760-4e49-92a6-428d269bfdbe">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_a248c877-29df-44fc-94e4-c4e9ae6f3e07">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_a2de1e19-0a38-42dd-abf5-1dc7cc41569b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_01aad98c-0952-4559-82c1-7f1e38c12740">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_f041df62-c08a-4eb5-a804-1388cac26495">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_832d84ce-814f-4d3a-8425-a4ee506100a3"
      id="F_ed385de0-b97b-437d-8890-1126c0056a28">&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;10,449,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_832d84ce-814f-4d3a-8425-a4ee506100a3"
      decimals="-3"
      id="F_2470b656-7e63-4edc-acca-9262d87571d3"
      unitRef="U_USD">10449000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
