<?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_8f7882a7-9920-41aa-8edb-9fd563b076a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_69451848-db12-46f6-852e-45b2f3a91241">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_de8b6301-5485-4d90-a9b7-c7d1b334420c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_79a878f1-3962-4ea9-829f-348bbf3eaa27">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_d24e25f1-9eaf-49e4-8c4c-68b5b537854a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_0299e007-9d02-48a7-9671-3e50df0688fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_c67ad0dd-f575-4a87-80f9-a05a1bae97c4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_8d765af2-0e45-4c24-84ca-e378a53efbd8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_507c63dc-4194-4c8e-a4b8-21afb8c57b5f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_d9ce53d5-74d3-45e6-b65f-4fb9bc4d873c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      id="F_b9eae841-c0e3-40c1-8490-a80627cd3d15">&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;3,700,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_8f7882a7-9920-41aa-8edb-9fd563b076a2"
      decimals="-3"
      id="F_e3093645-fe74-450a-99ec-3d2c38b20c5a"
      unitRef="U_USD">3700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
