<?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_3a98051f-e519-494e-a097-68b63e3244fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_c7cfe5b5-dc22-4267-a2f6-71a5bc8c3d78">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_4d0ff52a-8b9f-44ad-bbe9-be0ef8739d12">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_38e84509-55e6-4f9f-b5bb-d9407c04a8c3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_fe0d23d3-4ee8-4543-864b-d91cf8a8de5b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_3f58832b-afa5-4386-a994-29a98cd21ac7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_6a017033-8f0d-4d58-b7a8-34bc89cd076a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_7103880e-ffac-4e38-abbd-7d84208e55aa">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_68c78c66-b678-4be2-bc5c-14d7273a1449">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_feca19fd-aa38-47f1-bc82-110998b9c84c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3a98051f-e519-494e-a097-68b63e3244fb"
      id="F_48372c72-7d1c-4439-b9da-ad4a5c1ccd8c">&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;1,920,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_3a98051f-e519-494e-a097-68b63e3244fb"
      decimals="-3"
      id="F_95d6b9bc-3bd0-425c-9910-3d0bb2518fb8"
      unitRef="U_USD">1920000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
