<?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_6d1af03f-7463-44b1-9f0e-98e3697bf76f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_41896271-f851-4a65-9b3e-2384978208fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_48a6685c-693f-42cd-bf07-2f3d343935ac">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_d511f305-4c44-4b43-bd9c-745665d73cbd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_964388d7-f795-4f4d-91fd-86f6798ff8fc">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_577c5471-cb8b-465f-bf45-46f0a2b420ea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_5023b725-4ff1-4ddd-bbe3-d6e2b1bfaeae">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_405d4974-1d1a-4909-bc12-6b3fda0eed21">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_37a02e16-858d-4735-ba54-f78c32699847">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_a16be86d-bdad-486d-869b-a4d1d676a543">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      id="F_2594da66-7129-4a3a-8f0e-1e4c0bb5699c">&lt;p style="tab-size:26.66px;font-size:12pt;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,361,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_6d1af03f-7463-44b1-9f0e-98e3697bf76f"
      decimals="-3"
      id="F_d60e8028-93ae-4666-9944-a12d2346a26e"
      unitRef="U_USD">4361000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
