<?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_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_f2beaf8a-2d28-4ed7-b68d-36e6c1e682fb">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_24dbb696-8f05-4ce7-9bbf-67939c5e13ff">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_a87df29e-c47d-4a96-b625-1221e377f397">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_c813b422-7b0d-435f-8b84-b9f07e52a895">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_8dc8102b-d49a-41e1-bafb-1c0c74e144bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_32a8236c-2421-47be-a0ac-382cecd17154">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_258d1a26-b8cd-4b1b-a223-ffff4a51f9e5">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_a77dfb72-c133-40a4-97ed-9169ba320264">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_c5d385d8-3509-43ca-8c02-0ac3d59be050">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      id="F_6e85defa-cf61-437a-a23d-17e7d8e639dd">&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;747,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_ef582c4d-c255-4f3d-95a6-9a3afe5d5b29"
      decimals="0"
      id="F_b45ed85c-3372-47a2-a9c1-c4847d88fcc6"
      unitRef="U_USD">747000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
