<?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_b4c2a01a-1894-495d-a97b-a185ba5e983a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_43498d97-5b12-4139-a772-cfb2d231d3b8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_48dd2979-c055-443f-9206-ccfc1e408d97">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_4f53e2e7-fff3-49d2-b4b9-18dac16bc415">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_ac9a3171-54ee-4635-8b51-9176fb668ae0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_119bbac2-d96e-4457-8d4a-ed48a0e96b12">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_5ab6d872-6bc3-4548-a087-ea1c8e61deb7">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_6b8ffb65-98e0-402a-9dfb-573be0ce5368">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_a8aee86f-0c93-4562-9d62-1b0c323b7644">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_9385e434-e856-44db-9c0c-cb537e17d12b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      id="F_d5056be4-bc09-43e6-af3a-e5d8ee603aab">&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,252,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_b4c2a01a-1894-495d-a97b-a185ba5e983a"
      decimals="0"
      id="F_28aca0ac-56f8-4a77-b5b0-8a395d2eae54"
      unitRef="U_USD">4252000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
