<?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_17b83857-69da-40a5-9e3c-79bb268ad152">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_9f793145-0b7d-4e12-b22f-70f1e57646e2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_bb18e74f-bbf9-4b0a-b95d-757c091d9d66">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_1bdc342f-6cc6-42a7-8617-182993a90cc9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_1f67bb61-db96-4191-813b-d0be772f590b">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_287b926e-6483-4467-85ac-a88681322d52">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_8bc7f30b-aa50-47fc-a023-ab72bcb6dc64">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_e4e59e3a-44a9-48f2-b3ad-dfd0bb00e61a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_17d2d509-f984-41bc-83f6-ea67ec60936c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_bbeb9245-72c1-4371-80c9-1aeb8072bcc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_17b83857-69da-40a5-9e3c-79bb268ad152"
      id="F_ec587c0e-7f8d-4f4f-ac22-9d8e1458a70d">&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,113,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_17b83857-69da-40a5-9e3c-79bb268ad152"
      decimals="0"
      id="F_47284e1a-47e8-445b-9c6c-7ed57e01ec2b"
      unitRef="U_USD">2113000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>