<?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_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_1a29ace6-8f32-44d2-b9f7-257c293fb05e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_08540558-726a-4e9a-96f2-3989d045bde0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_542d1f16-9291-4a64-8836-e928bd28163d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_c638f4b9-4b11-4811-810b-693acdc816d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_e0899d18-6127-46e7-8e1b-578bd0875686">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_d03eae04-e6a2-403a-b603-7ddb2861533d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_2ca2f331-5df4-4c47-8060-38b458082571">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_3ecbd01f-efaf-4a80-9a6d-efeb07ee478a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_2eb7cdb9-d74c-4dbf-82b1-f1879e34c97b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      id="F_e620077c-0c64-4111-9bc6-19c4a64f1980">&lt;p style="font-size:10pt;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;5,047,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_0df0b0ee-9225-4ec6-ae9d-d052ebfee53d"
      decimals="-3"
      id="F_a4d72d66-e8b0-4172-b196-e6b5aa24b75b"
      unitRef="U_USD">5047000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
