<?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_38732d3a-7ddb-43b3-827b-9819ac2e7c57">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_23b63196-6953-4b78-8669-52933d2c3f67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_6590cad0-d693-40e9-b590-3feef6386a14">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_d3b0dcab-658f-4534-aa72-3c4810c1bffc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_68bed986-07a4-4cb9-b8d7-de5f003fc463">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_bfe06f26-fd31-4487-b85b-11189f69e1ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_82eb8a10-e15d-4a79-ac41-90ca7d23cfad">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_89ca0b60-78a0-446e-9ced-50e0b2e6a057">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_5c898fe7-2cbe-405c-8b91-a8258676007c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_bd33405a-3592-4926-8b23-8d74ac5f95eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      id="F_22194490-a38b-42c9-b642-0fb1fc1651f6">&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;4,149,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_38732d3a-7ddb-43b3-827b-9819ac2e7c57"
      decimals="-3"
      id="F_3add4f7b-73b6-4a1a-808e-cb8860d9e611"
      unitRef="U_USD">4149000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
