<?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_40ddac6c-8f19-4463-8ebd-71582b24a763">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_9786d009-77f8-4213-ba98-8b6d813e790e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_e1a960d5-5cd5-4796-9cbe-5b8031733737">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_844b04a3-3b8e-49ad-9379-65dce4a97103">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_23a464ca-17d7-4d2f-b483-0ee6801a7f98">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_04363169-68a5-434a-8ddf-64d749119932">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_0273336d-a311-4e7a-85db-8f73b35e78a7">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_1771aba5-d469-4d1c-a9ec-711e9705a874">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_0926903e-84f2-418a-ae9a-b35889df7bab">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_a5de508d-b2d6-4d3b-b8e7-bf0584baa445">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_40ddac6c-8f19-4463-8ebd-71582b24a763"
      id="F_ec07bcc7-a5e2-4d1f-988f-06e5a3de77a4">&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;2,156,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_40ddac6c-8f19-4463-8ebd-71582b24a763"
      decimals="-3"
      id="F_5fb6ee7e-6863-463b-9cfb-0cda5976883f"
      unitRef="U_USD">2156000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
