<?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_06ed8935-7f30-4729-9b98-6ea65132bbbd">
        <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:CombinedProspectusTableNa
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_1f61fe89-ce84-4ece-a632-96e9213d5a40">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_22e68a6a-d24f-4406-80e7-d155629bea04">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_d36bc1f4-68d1-4f3d-8d84-5cb8405660fb">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_3eb61837-6c39-40bb-b6aa-e1113b5b44d3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_3332bae6-9459-4d9f-8bd4-4a0f17c2f8f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_270fcae1-997c-4f15-8f83-050f38668f0d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_fadbba83-5815-40da-8daf-611467fe4294">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_887ca3bc-67fa-40a9-a05b-e645672845b0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_b21fd19e-b795-4b08-8813-82ff0ce5ee09">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      id="F_af47248e-e830-4a6d-aaea-11d9471fd05c">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;35,000,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_06ed8935-7f30-4729-9b98-6ea65132bbbd"
      decimals="0"
      id="F_d6e48a76-e5cc-4dcb-9fce-53aec2ce4e4e"
      unitRef="U_USD">35000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
