<?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_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_abcea949-f20a-4e8c-be54-e5c93fc6a6dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_361277fc-2692-4702-8cec-e8849cc1704e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_9636b8c0-4bf4-4a02-97ea-1ef048dbc99f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_0f61fb1b-6d9c-46f6-86fc-e6f568f5fbad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_82b926bc-a1c9-45b5-aba7-4e77dcc65e97">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_0ae0fc9f-cbd2-41cc-a41d-14c49e6ea436">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_b3e09991-a5d8-460a-a08f-dedf9513cd32">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_c4cca655-0a0c-4ad0-9347-4255a3100159">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_34ea6dde-ce07-48ca-9a07-ff0c298051d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      id="F_61da8c77-8e85-4ddb-b29a-b4825696e636">&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;3,520,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_6fbc9f7e-28db-4cd2-8dda-ac14f8c1465a"
      decimals="-3"
      id="F_dab5b8f9-9cea-4650-8bf2-2f48c26b327b"
      unitRef="U_USD">3520000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
