<?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_7c7ac0e8-40dd-4313-9dee-4a2a592884b8">
        <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_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_670b158f-0408-4f9e-9870-20179c470c17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_cc8bebc9-ffff-4ef2-96cf-ae042439e1d9">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_7e835ed2-7a86-45c2-860c-e096c7a92659">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_b146ada4-5969-47cd-9c41-b3699e41113a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_62ac1e1c-c756-4d31-9245-a38174d397b9">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_e3716aaa-f219-47ec-9652-7cf1f5e7bd99">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_17b7e500-cee6-4e21-afc7-881eeeb0266c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_6d390722-b90c-4397-8d95-0d0211a3b810">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_b0950958-ba8e-4f9d-8e8e-66e12ce81ec6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      id="F_6d5fa164-b84d-46a8-8135-a9ef6466434e">&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,067,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_7c7ac0e8-40dd-4313-9dee-4a2a592884b8"
      decimals="-3"
      id="F_ea6cfd57-c3f7-41c5-929b-532f9edfdf1e"
      unitRef="U_USD">1067000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
