<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_1c4dca6f-06d8-4c54-9489-706271aa00d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-18</startDate>
            <endDate>2026-03-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_4d213156-ea42-4f8f-a37e-d11dfdaffe82">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_5a8b0a8f-dc6d-4135-8cab-d6c4950a5e6a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_c39f982e-d50f-4d60-87e1-5823c9235713">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_d4b2a89a-ac2a-471b-9516-36567701a8a1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_38675009-1822-4129-aa34-e74cbdfb21ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_54bb0e82-8cf6-4058-bfed-1c279ce38d93">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_595f5914-4174-4fc2-bf7e-c4047483d985">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_a3c6c8ea-c178-42a7-bbcd-4729aa3ca708">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_dd71039f-14a4-4ec8-babb-e1501594fbcc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      id="F_2ebf6c89-bcfc-4502-b991-9268acb79145">&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;3,155,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_1c4dca6f-06d8-4c54-9489-706271aa00d7"
      decimals="0"
      id="F_a6557835-6a64-42d4-8c79-64fde5505d51"
      unitRef="U_USD">3155000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
