<?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_bdb0da39-0b12-4007-b910-385a5ab81f41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_531d145c-6410-440c-9300-9cacd1fbae45">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_216e61ab-3629-413f-b829-56c0dee52d5b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_ff8fa255-1d30-4575-ba0b-cad1377ff698">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_d5edad8e-d632-4fa1-9263-0589c413888e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_97392be9-c0a4-453c-b7de-8c9da8e5d5ad">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_2789b009-6a35-4e83-bea8-c79eee59b07a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_d7984640-14f5-45f0-a04e-d3c1d3a25462">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_8969bbf3-f479-450c-96cc-442d74cceff3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_5fa433ea-876a-4181-b133-62a8a4d633f1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_bdb0da39-0b12-4007-b910-385a5ab81f41"
      id="F_58ccf123-39b6-4c28-95a7-3c2619cd0aaa">&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;995,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_bdb0da39-0b12-4007-b910-385a5ab81f41"
      decimals="-3"
      id="F_8b0657b2-5cc6-4290-8e81-1a433b856994"
      unitRef="U_USD">995000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
