<?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_34209a0a-0616-4707-bd3b-0a2f176df95d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_4b94c4cb-9351-45f8-8734-4ea081419455">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_abe466fc-d1eb-4f99-a28b-75efe16ba5ff">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_3d6435ee-a006-468e-bc8c-321241c17ca9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_c01d0935-528c-4698-9951-5f1ec277834a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_abd5a216-4bd7-44a5-bdcf-4c49dfe754db">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_783b1071-02b9-4b7c-8408-9aecbb354cae">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_bffd3b7b-e1f3-4b0e-aa20-c46c7bcfc626">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_2752e224-ab14-440e-afe1-457187551d27">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_95519a49-71be-4758-8405-b8dd4ec18606">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_34209a0a-0616-4707-bd3b-0a2f176df95d"
      id="F_700bcbec-c47b-458c-a59a-d1914beae02f">&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;25,000,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_34209a0a-0616-4707-bd3b-0a2f176df95d"
      decimals="0"
      id="F_ac7fdd20-4668-4c8c-bb59-4b7ff74ac636"
      unitRef="U_USD">25000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
