<?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_cc2f939e-2ccb-43d1-b716-2bc08ff56586">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_53bddf59-c7a2-41ad-ab93-59acfd693fb9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_962031a3-478c-4bd2-b976-6d1a1b771c03">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_7c715ba6-ef29-4358-908e-d224f2b9e0de">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_57387f50-47e6-4552-bd07-565d0ed0c582">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_3e32267f-270f-49a3-837c-b130da4f1481">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_e85ca49c-b649-4ab2-a5e2-66cea0b6fa0e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_9172c974-23ad-431e-8a49-1d8d591ebf14">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_0a9d6d8d-0e10-45a2-8b05-b4d79351fb03">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_f7a43103-0029-4207-892d-a16f43c31406">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      id="F_9189ce3f-14f3-421a-bb0b-4db5bb4ea138">&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,505,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_cc2f939e-2ccb-43d1-b716-2bc08ff56586"
      decimals="-3"
      id="F_382e8b34-6948-4e82-9ed1-15e4b1ab378c"
      unitRef="U_USD">1505000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
