<?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_47ac1d8d-00af-4ffb-8613-f6d46661121d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-25</startDate>
            <endDate>2026-03-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_ed1cb099-7fc8-46b1-830d-303f65941930">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_f5480762-9d71-4dfb-a7d3-b5a3cf2f60b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_c6856d2d-4009-4f82-92a6-4c6d7584ecd1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_fde24271-f6ef-4678-89e7-83497c185b92">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_1a439b34-ad90-44ee-99ab-8f9f68c614ef">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_a49da4fe-60e4-470f-bf9a-f65948e64f5f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_c07180f3-8f41-4c8a-ae27-42e44e180cd2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_6a0c7acb-4c4b-4339-a32c-98fd1cfd3f19">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_61284acb-92d3-4f21-b543-589312835dfb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      id="F_1b9aad88-b073-423d-942d-ada3227dcb81">&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;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_47ac1d8d-00af-4ffb-8613-f6d46661121d"
      decimals="0"
      id="F_6e4a0605-86d4-4f36-8052-de005572c276"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
