<?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_3fd0c45a-e299-4961-b61a-25856ea56e44">
        <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:OfferingTableNa
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_56ea2ca7-f17f-4897-b739-f1ac27d64e8c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_02fe8292-e6b1-4f91-aa10-440c90100b13">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_973c27da-e38e-4203-a53f-63f6bf477378">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_8d1d4d2e-9e0f-4e57-aeeb-92fd4d9f751b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_c4571fb2-7644-4c62-8247-86c2be1ed7ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_07945c76-6fdc-458c-a291-97229fa6e1b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_dec0181a-bf5c-4abc-9766-d9f88def7240">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_b401a3af-8ec6-4445-a671-6dfb5155a3e7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_67a75203-aa31-4eaf-9137-80590f4a3cad">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3fd0c45a-e299-4961-b61a-25856ea56e44"
      id="F_d3494e72-d869-4857-8750-6820d9989141">&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,175,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_3fd0c45a-e299-4961-b61a-25856ea56e44"
      decimals="0"
      id="F_2824ea6b-aaaf-4193-b715-bdc3d11495ae"
      unitRef="U_USD">1175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
