<?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_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_9421b4db-f686-4e07-8cb0-753c293d55a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_ea59c18d-1499-4073-8473-a8500e96d30d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_734f67b3-7c0e-429c-a05b-274d4f468e30">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_5f6fb978-9654-4681-993c-c2f64f753b99">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_9b0ea1ae-b713-4c5e-b995-a1e53db2fa82">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_22af3297-6f5b-4bc7-ab38-b4d9fb897f0c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_6da270f9-ef58-4535-8caa-a97e875f8553">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_924a7a2f-d788-45e8-8e07-f6435416067e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_2ae81d99-0926-4e23-84cf-e2f6764e15a5">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      id="F_4a9c7842-972d-486e-939c-a6a4b0219b3a">&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,023,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_4d2c981e-8ebb-449e-a4b8-65ad3321d9a2"
      decimals="-3"
      id="F_08b83fef-3aab-4efc-985a-61349a27ddf4"
      unitRef="U_USD">1023000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
