<?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_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_aee18361-25e7-4550-96f1-1171c1f564e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_5fccefee-f3cd-4da6-84cb-8405f7b553a1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_dd520ad1-25d1-4b83-8e31-d77fe673e770">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_a81a9168-f495-439e-9658-66415348218b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_ddb88936-b68d-4475-8df4-36c57c0a63be">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_0a0ee445-a500-4e26-9426-cf95a50c8344">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_4073215f-757d-4cc6-9f18-999305232a4b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_a6a66e6f-904f-4e5e-9e5a-594231a35bff">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_c02eea5c-f5d7-4f0e-9703-e3fd9c95663f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      id="F_0001833a-1cfa-4cef-a634-4d3b9d6a10c8">&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;2,705,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_ef56fbf2-0e6c-4ec6-bdcd-3ce1c582f79d"
      decimals="0"
      id="F_111d10e6-3434-474e-bd87-ee6a0030ab45"
      unitRef="U_USD">2705000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
