<?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_0b63461d-6e03-46c7-a904-52ded1c07cac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_55c208c3-53f1-4a9d-8342-e1a9dd80e705">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_30f24bbe-a1ea-44de-890b-019e68ce28d7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_2327c987-363a-42a7-bfb1-8dac7dfa6e99">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_6c5a3f98-d8a8-4f60-abba-e31ac38f0494">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_b2668056-cb80-423a-b9cc-701e9b3559ee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_27256820-6c3f-46b8-bbec-d8f461b42ede">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_0c454208-72af-4ae1-ab5e-612e615dbd6c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_1e509f57-defe-43cf-8cf1-a84fa085c85f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_b0e73398-a7cc-430d-b4eb-6fd47592f62a">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0b63461d-6e03-46c7-a904-52ded1c07cac"
      id="F_797327d7-07af-4e64-af77-1d4f9a16428e">&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,270,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_0b63461d-6e03-46c7-a904-52ded1c07cac"
      decimals="-3"
      id="F_58fb2718-0b49-433a-930d-b2ffc7689672"
      unitRef="U_USD">1270000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
