<?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_00e39d5d-3750-4a50-86bd-787cfe0d354b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_b04e29ee-d743-4029-b673-4fdfc39dc857">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_64166675-48f0-44c8-83c3-fc829bcf50fa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_97f4400b-5487-4139-bff5-c898f718351d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_d2983de0-8d32-470d-bb0b-369c33e20a80">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_f9eb1685-0889-4ca8-a4ee-7f50f631a161">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_64ed469a-8ac6-421d-ae4a-1af11380bda2">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_63dfbae2-d08e-45ff-847d-384141a4bdad">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_af6fc5e4-be3a-4356-a7f2-5fecc538895c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_1ce36609-0c56-4b05-b470-8e1e1ce209a5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      id="F_b3f69085-4220-414e-a870-9cf89f91d1fb">&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;271,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_00e39d5d-3750-4a50-86bd-787cfe0d354b"
      decimals="-3"
      id="F_17967c74-c380-46da-9f01-1e2eceeb7343"
      unitRef="U_USD">271000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
