<?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_f81a4623-5f34-42e0-9c0c-215b73e47e6e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_b0d5dad4-3773-437c-88fc-091cf97ef224">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_054a8a40-35d5-47b1-96a6-36dcd1b5ad77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_ddf8b6bf-3883-4fc9-b392-fcaedd7628bf">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_ae5074ca-e711-4151-bf8d-83f73318bdfe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_ea550b9a-14e7-49bf-aa91-3af45d25981b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_54eed1f0-48c2-4053-b545-7c507913c508">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_b0143300-0fdd-48d1-9840-c5dc460eda0a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_8a8e8616-bc36-4c2a-a3c9-3f7ca09b612b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_5eeccc9d-56a3-4488-b210-ac2ed8a1cf2e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      id="F_612f84c0-e090-4204-88eb-dbe6c5a9458a">&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,559,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_f81a4623-5f34-42e0-9c0c-215b73e47e6e"
      decimals="0"
      id="F_127f1ddf-55f1-4ae4-b719-5d75ddbb332a"
      unitRef="U_USD">5559000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
