<?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_6be5a959-ab98-47d0-a75f-a17c02330326">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_1c9c2bff-c469-4081-9872-c5a39b147b7d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_25059a65-b5d3-406f-b8ae-56d36546d2ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_806bd387-770f-448f-af37-cda97cacb860">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_aed454f0-8359-4402-988c-3f75d095a6bd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_cad3c5e9-edba-4fce-83b0-08bb97111aee">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_fa34c097-7beb-4012-b2ba-f9978386df2e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_1b642172-b102-41b2-be4e-50fad613c792">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_75218a54-494e-469b-882a-2eca5949a2f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_d47831ff-c7a3-4b2f-8341-e77b288cd67c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6be5a959-ab98-47d0-a75f-a17c02330326"
      id="F_c0c1435f-72b1-4085-8b5b-7a6813dea3b0">&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,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_6be5a959-ab98-47d0-a75f-a17c02330326"
      decimals="0"
      id="F_68f636db-e04b-4de3-9c5c-5284750e5cee"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
