<?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_28b184f6-d5ec-4751-8588-cb4ed27bd014">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_d07965f2-90c7-4de3-8123-9051730ef5e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_b900c6fe-a054-4f44-ad6d-1da35ed53c65">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_5095cb8e-8475-4c1d-943d-6336800f457b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_aa886657-bf79-4191-a8db-8003c7b960bf">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_6478138e-a5ef-4fd4-a44e-fa4ea5117a19">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_fa6629c4-5565-44a5-a05f-92c72189a010">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_9871135b-a55f-43f9-81db-4e64c7ed70cf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_1b4995ce-d57d-4ab9-bb81-94fa4bd18360">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_adc63060-e1b6-4b65-bd0e-29a2e84db066">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      id="F_a4c1b293-b8a8-40be-9bca-c0c62e72c09d">&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;3,757,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_28b184f6-d5ec-4751-8588-cb4ed27bd014"
      decimals="0"
      id="F_70a4bf92-77e5-4de9-9023-21bd56b73b5a"
      unitRef="U_USD">3757000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
