<?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_5d33ead3-d2e0-4e76-87ed-27475b2e6fad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_d134d2ce-7669-477d-992c-82ae059e14d3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_8056680b-9391-4a04-a27d-d5100dc42762">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_34ae8496-c0b8-49f0-98f2-3479074e2825">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_1fd4dbe0-cfdc-495e-a9fe-7672b5f74da4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_9b420a3c-6748-4e24-95d7-a15e2e3355ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_b167fa7d-5795-4699-939b-288a5543dd3f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_8a166d8e-6ae4-45b9-94ea-679fc402acd3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_dc441b60-3ba1-4edd-8be2-5c9bdd7d1c76">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_b9381659-696f-4733-ab6f-f44008d8e303">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      id="F_3951569b-f14e-4487-8321-5862abb72b50">&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;1,057,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_5d33ead3-d2e0-4e76-87ed-27475b2e6fad"
      decimals="0"
      id="F_d16ed810-f167-408f-817d-12a2717ba4be"
      unitRef="U_USD">1057000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
