<?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_f4d6e385-c362-4d3b-ad90-422741c90e56">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_470edfa0-fa83-4af7-99a5-0859b43665f3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_920e3754-4d80-491c-9908-eacd89528bf1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_aa992fbf-8dd0-4ac6-9e5e-40afcdc52213">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_8ad3f883-c92f-4a7d-8585-d8eba15dfa65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_cbe9bf13-edca-4cd9-a122-82042bc6eaba">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_d2e059eb-9842-4bb9-9ee5-ed78a48241e9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_2ace974e-c8fe-433b-91e8-21344bca648d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_f434e873-f961-417b-b974-d93f182f23d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_92cd7eed-bea5-4dc9-904d-b9f524f3202f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f4d6e385-c362-4d3b-ad90-422741c90e56"
      id="F_8b9a6cd3-99ac-4932-a3c3-6d8ce17b7079">&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;3,843,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_f4d6e385-c362-4d3b-ad90-422741c90e56"
      decimals="-3"
      id="F_fdd016e7-cb93-442e-9c1f-7ffb0a37fc2c"
      unitRef="U_USD">3843000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
