<?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_eb420037-2b3c-46d8-9734-160abd8eacec">
        <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:OffsetTableNa
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_a6ce9c12-4b6c-48e5-b04e-b152574fa58a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_ffc53fb0-00ff-4e46-a7fc-91011e05a8cc">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_8beb8c93-f608-4932-841d-749be78c021c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_f23ad524-54b3-4018-9773-e19b3ed96b8a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_fc0fe663-ce49-4855-b8c7-92dc513fba30">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_5ff53cda-d991-458a-acb9-190503960144">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_e5fd6718-5554-42a5-9fd6-fd840fffc82a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_c18ee7a6-0f6c-49e1-9d1c-a71961a5535f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_b70ee73f-27e0-4c6e-aed8-9420d09aa105">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eb420037-2b3c-46d8-9734-160abd8eacec"
      id="F_98a4d29a-3813-436d-b8c9-337016b92916">&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,616,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_eb420037-2b3c-46d8-9734-160abd8eacec"
      decimals="0"
      id="F_6b577693-4bda-4b49-a65c-d4750357adde"
      unitRef="U_USD">1616000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
