<?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_9f6ef2bc-774b-4490-9ee0-1e21eed1172a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_c16aac9e-2afa-4366-8782-86e7fb01f7c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_cda66f5d-4b40-44fd-a543-6f8327f41b4f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_fc0734f7-42a2-4bbb-94ce-2fa1934ac7ac">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_f32d9d5b-14a9-4154-92ae-14293d3749da">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_6da9cdfb-fec2-4e0e-8931-b58dfb29185d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_e0907124-d6b1-4cf1-951b-0e34773163a8">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_39c20ed6-8ba7-410f-aa94-e68b5946391b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_abddc666-b803-4e46-a3e7-9b2dd47c1e62">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_ab7e8c7e-7b67-431e-bbcf-76f9685b5e85">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      id="F_8c28d14d-512a-4f3e-88b7-46b77b34cc23">&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;2,078,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_9f6ef2bc-774b-4490-9ee0-1e21eed1172a"
      decimals="-3"
      id="F_2614bd48-0882-4e14-a3df-5ba71e6ff8f2"
      unitRef="U_USD">2078000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
