<?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_435edee6-4316-4c4e-a545-918baf654a8e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_0e122f12-5f59-49aa-9a36-ddad31399aab">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_735998ca-4765-4a3b-b0e3-f7db37ffc56f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_d2591b25-a3bb-4401-a8fa-c1a7e6a707f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_5b88c69b-34b6-48d3-b739-f52de61674fc">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_f7ff910d-3c97-41b6-b90a-a28536ab69e7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_bef6c6f3-8e82-485a-a591-f1e2b4f29ad7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_d2c8d082-fbf0-46b2-a838-1ddf912db03e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_5070244d-503f-4baa-8af6-4e71fb96f776">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_96d9398b-f9a3-41cd-8a8e-21b18c0d0426">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_435edee6-4316-4c4e-a545-918baf654a8e"
      id="F_5b4d1eec-029a-4cd2-8995-ce5bb6a5be02">&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;8,836,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_435edee6-4316-4c4e-a545-918baf654a8e"
      decimals="-3"
      id="F_946fc579-af83-4b9b-8caa-7cd5a8ed60e3"
      unitRef="U_USD">8836000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
