<?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_2afab391-a835-491d-abf1-e9394f49b5d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_0389995d-51f2-4fff-8353-f057294b65de">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_5997af06-0953-4f03-b288-3328ef21686e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_ea875825-592b-4315-ac0f-33c94ec05040">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_376d98e0-6b8b-4233-9305-8e76dc8114da">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_5aea14cb-99e2-48cb-aaaf-baffe32834b0">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_45105cf0-0086-4ceb-9496-3e37e3ea590d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_31df6d9c-9ec3-471b-b679-b0d1b43ef293">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_d49487bc-a17b-471a-8a18-b27fa845d434">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_52fc8b4d-8fed-46b9-8327-930fdaa9ea20">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2afab391-a835-491d-abf1-e9394f49b5d6"
      id="F_8250f245-d12f-4b74-bbaf-be69994943eb">&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;720,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_2afab391-a835-491d-abf1-e9394f49b5d6"
      decimals="0"
      id="F_2c421e7f-8a9b-4ee0-a866-f0376f67214f"
      unitRef="U_USD">720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
