<?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_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb">
        <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>
    <ffd:SubmissnTp
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_d03bc261-2c92-484a-be8f-57b09c63a384">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_aeed7987-3dcf-4676-bd5c-3a845b955811">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_5dc5f20d-987f-413d-8485-68694c1857f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_19524f6e-dbae-43ec-aff8-1ede74df9f95">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_73d061b8-7ec0-4619-9d99-7885e0a31468">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_ec971a74-4280-4011-987b-d9d4a99099ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_88e08777-96b6-4f1f-a493-8db331573ad5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_783b4c51-1f66-4438-af9c-caee7f6b2742">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_06e124e2-f6e9-4102-bc06-942fd8e31290">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      id="F_9acf20a5-ca25-498a-9deb-50859cc6a6a2">&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;9,625,370&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_bbc89d1f-91c5-47e9-a645-a8b35ab8bfcb"
      decimals="0"
      id="F_14eca1c2-3df0-4cfb-ba91-68add5c7caa3"
      unitRef="U_USD">9625370</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
