<?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_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_d3bdfd70-a054-4e4f-a973-68d3e3931c2c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_8cd3c42e-ce97-4930-aba2-beaf984aee48">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_70271593-28f6-4be1-a940-09aec6224bf3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_55014f29-2ff2-4a97-b662-92f564ab56a3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_76f14980-799a-421f-81de-c3c397d6b089">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_5e81cf38-bb50-4d1e-b0b7-e1ed6e18381d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_11647412-cf90-4a1d-9028-b5fe7b7337c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_398a2ce4-e4ba-4f80-895f-9b5c9b9c15e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_b34597e5-86fc-4e3b-a478-f5777600e168">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      id="F_771b4d9a-3bf4-4ab0-9004-9b9b91a5b82f">&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;18,250,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_4da15da5-b9e3-4c91-8a98-c4732ffe3bd5"
      decimals="0"
      id="F_9dabe11d-072e-41d8-9dd5-ebadc2e80ec6"
      unitRef="U_USD">18250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
