<?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_024d63af-e9d5-4558-ab1c-15e5a926b8dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_06827155-b060-46d7-8d95-46f6a768a602">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_6bbb1f20-7c0a-4d67-8794-5bc39ca5b96a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_dd47f0d6-81a5-4c1a-94b1-6dbe2ea3285b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_31b1f8f7-50bd-4d71-84f1-84f5d771ea9b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_87069f65-447e-45cc-853a-58abc679a72f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_36a0b639-a596-4923-a9ee-dd4a4d63d646">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_dcb976be-35f9-4b0f-bd3b-bca107e4b990">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_72d14564-0c9f-4d2d-933e-74dbe33409d2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_6f74ef4c-c5ea-4d4b-8543-2434771f4e47">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      id="F_039eca3c-c6bb-4bef-94e7-5a9db2e89480">&lt;p style="tab-size:26.66px;font-size:12pt;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,809,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_024d63af-e9d5-4558-ab1c-15e5a926b8dc"
      decimals="-3"
      id="F_7ca64b0e-a56e-41d7-b4ad-b8e6b50ce94b"
      unitRef="U_USD">1809000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
