<?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_57d4ca28-0c39-4163-abb4-96dbedffb865">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_1a7e4264-3cd3-413d-ad48-7bb7c21b6b35">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_ae2235aa-5c39-4e06-bf56-f38bbef88271">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_6c54486f-10f4-4389-9401-bf3cc0786290">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_292b3777-1190-442a-9d4a-26d95fff24eb">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_af7d796d-16d4-4974-9c8c-28175b04a53b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_30769f93-bc4e-4a10-afb9-996563433f59">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_99bab889-4c98-48bf-a6fd-83afe4657177">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_465ac194-e5a8-4512-9eae-a41ef200ea5e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_06092b29-91cb-44ee-936f-c4f604107ec5">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_57d4ca28-0c39-4163-abb4-96dbedffb865"
      id="F_6535fb31-ea16-48d5-9e88-8de1d41c9dee">&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;2,216,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_57d4ca28-0c39-4163-abb4-96dbedffb865"
      decimals="-3"
      id="F_5b476e78-1563-4004-b417-9df21cb44a2b"
      unitRef="U_USD">2216000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
