<?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_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_82f43e22-5cf9-4a92-890e-44d45f159d49">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_f48e92dd-3703-4562-bee0-4f5b198acf07">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_2d769e52-3bee-4020-a37e-7d3d65b089ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_716c2eb0-5c32-44b7-bc72-8be43a10b233">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_674dd599-d10c-4ac9-bdc2-73698a45f263">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_bfae0db1-1240-44a6-901a-184c842ab7b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_97b202ee-9313-4aa0-be3e-b3c64624a87d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_29636426-5e7c-40c9-8031-37d06b9da5f0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_11a4de81-d5a3-471a-9e6d-7858ad565d7e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      id="F_dc3f4f2c-b688-48b6-9189-8b9ab30bc1c3">&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;4,676,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_a9ef5dcf-463b-428f-ae6b-cd5075ddc0cd"
      decimals="-3"
      id="F_4e866f33-92bb-49bb-98d4-66d55d4299ec"
      unitRef="U_USD">4676000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
