<?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_9f97388a-8ad2-407c-8d30-9a0f7d186cc9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_31855875-7bbe-4809-ba9d-ebe79cdcce5e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_ebd794f4-c0a2-456d-885d-dd92f54f885b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_b6e46727-57d8-4a4a-9a38-4766fbdd0780">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_2c790402-ce9d-4e56-b547-9304cd5a669a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_2ae6964d-a181-4e9b-9acb-d10c776cf521">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_ca77faea-b80c-4590-adcb-e9078241fa12">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_0efa0286-e45d-4344-b8a6-e688f55e1bc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_174c3ca1-9eef-48b6-87a1-f4d01c8bc39a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_c50f9187-2348-4835-97f7-3ec1d221c8ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      id="F_8ad4a464-5a01-450b-a249-a941c92b1750">&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;2,405,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_9f97388a-8ad2-407c-8d30-9a0f7d186cc9"
      decimals="-3"
      id="F_c26ba2c8-e11d-4216-a95d-ff11a0a3a323"
      unitRef="U_USD">2405000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
