<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_e3cf15bc-6339-4c47-8fea-bb831c96742c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_626db793-6f87-4370-b308-963d78cf149f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_e95d7552-06e8-40cc-a323-cfbc8b1cb101">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_f5cdc7fb-d1f5-4b83-afc0-37cd365a0ee7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_ffac0ac3-2f43-4d98-8bd7-1aed0ea7fde6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_03d9ef2d-7959-4e44-b693-d00bd93fc6cd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_be5be2aa-abe2-43f6-8794-046c5aa47d63">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_734d50cf-b4ed-49bb-9377-8654ce36091b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_5afb3ae2-6df1-442f-a349-eb88adac8f15">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_3a49f4cb-06e5-4732-9fce-41020706fc1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      id="F_c98f20f5-52ed-4b18-83b1-840ad775d91e">&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;12,103,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_e3cf15bc-6339-4c47-8fea-bb831c96742c"
      decimals="-3"
      id="F_59b2979b-ad34-46eb-8337-daf86e73306c"
      unitRef="U_USD">12103000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
