<?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_0b167035-25ce-49f0-bd7d-a5a4221a32f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_2bd8d2c9-9413-4534-ba78-d03ef2795fb3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_c5baa278-2f22-4c53-83f8-9fcba9523187">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_7c8928fc-0648-44a5-b97c-1800eb01be2d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_b12dc882-f65f-471e-8839-3f1d9b378009">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_def1880d-c07d-4699-b815-a8b004c9ecae">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_47031c57-ea23-4e76-bf6c-b3be466cde9e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_ce8d01da-96e5-446f-8f0e-bd7f10e40e2c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_64ec5837-6df1-4b82-9a30-1a2aed9963e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_d7a4a68f-6a53-4bb4-a782-71a668686e62">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      id="F_c8aefed8-67db-4fdf-b484-e653c5da826e">&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;1,226,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_0b167035-25ce-49f0-bd7d-a5a4221a32f3"
      decimals="-3"
      id="F_4b081ede-a89b-4c1c-a7f5-ac852ad2a1e0"
      unitRef="U_USD">1226000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
