<?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_0c0d9031-3d07-4fb6-970a-a091a3f93ced">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_1549a63e-70f9-4939-93f2-bbb181786f72">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_473af429-8bcf-4233-bd6b-c789ca3cd0b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_914e65a9-155a-4157-aaf8-4253052a12eb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_e8e1e24a-2d92-49b0-8544-f25ae2bcb8f2">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_cad40f88-db9b-475e-84b6-6006ce68d716">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_a887e2ea-2e5c-48b8-9372-cd0b95496c81">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_cf918f89-2048-43bf-b129-83257931e0ce">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_30b01ecf-aac1-4e96-8d8e-bb736d76f769">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_acb56ae4-73be-4efe-802d-1b657ecec685">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      id="F_4c945e51-1499-4ab9-b51f-320421a3ab9e">&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;291,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_0c0d9031-3d07-4fb6-970a-a091a3f93ced"
      decimals="-3"
      id="F_a19428cc-cc47-42b5-95d3-c89bcd38b8d4"
      unitRef="U_USD">291000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
