<?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_62a62be4-2de0-4340-9a1f-7fc0a89f5da2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_eea7d6a1-bf73-4c23-a6b9-f9edfa3ea392">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_9b016c29-e043-4df4-8ed1-3de2025b35b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_2bf3245e-5df2-45f5-940f-b9caa3638d82">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_701f4834-aca2-4f2f-9c43-f44ac34d3135">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_37a31454-a91c-46d2-bfbd-eb170f87e69d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_b9b6a554-98f6-48aa-b787-8cf63e16a110">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_66aba327-82ea-4b63-bc38-bf83b3095e9f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_a1fcbcdb-2089-47ff-bf06-26b42f630339">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_5bc41ccc-968c-4293-9dc2-1893ffced393">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      id="F_d2dcfa99-61a6-4125-a09f-1a62848803d6">&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;1,600,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_62a62be4-2de0-4340-9a1f-7fc0a89f5da2"
      decimals="-3"
      id="F_37a11e37-0f79-4ba3-a93d-7c9f82483c39"
      unitRef="U_USD">1600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
