<?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_31465384-81ca-489a-a7e5-044a076be490">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_79cebec6-ac0f-4110-aef9-3f0822e02279">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_4a51300c-8b85-48f1-9710-b04738eb8603">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_0dfa3e47-e07f-4a76-9922-a3a06061056a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_be321dd3-d4fd-4ca5-9fcb-26e054614aae">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_09f062d8-2b6b-4d8a-8ce8-5fbfdeb6dfaa">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_590ace00-7ce9-4e1c-bdd0-23ca10daaa82">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_3955bd0f-7850-4853-9716-df5ae474cb34">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_6fb5300a-846f-45a5-b8de-7a95c7ac61c6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_92c436ba-22fd-4712-85d8-3b494268f917">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_31465384-81ca-489a-a7e5-044a076be490"
      id="F_2873ec08-8da5-4482-acf2-d3dfd631d898">&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,059,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_31465384-81ca-489a-a7e5-044a076be490"
      decimals="-3"
      id="F_5f75da07-20a8-437f-9e0b-d4641ff8ea5f"
      unitRef="U_USD">1059000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
