<?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_b749aa99-a328-4d89-b6ca-984075d17c8f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_e9001c7e-bd5f-42c9-b959-337988425ad4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_30436ebd-89ff-4746-b51a-e6400de249ff">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_e85d8b0b-b635-4920-8644-ab069cec149c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_81954c3c-5ef8-42b7-9436-add5f96f04ab">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_194b7535-d645-4f8e-81c4-47626e37003c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_f798e244-729e-4eb2-a53c-8f4b2f8d97e7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_3cd29cab-10d3-4e6a-ad38-4b84900715eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_4951f26f-077d-4e0a-ac35-dc1d6a87cfea">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_8542993c-78ee-4230-8be6-ef9a155032ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b749aa99-a328-4d89-b6ca-984075d17c8f"
      id="F_4f2a11bc-44d6-4b52-86c2-39d3dad53705">&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;565,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_b749aa99-a328-4d89-b6ca-984075d17c8f"
      decimals="0"
      id="F_b36cefa5-2017-4792-aa97-377258beedcb"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
