<?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_cb69cb34-9cea-4ee3-9d73-4ddb4185c599">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_31119763-010a-46f5-883e-74dec1d87eeb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_eb069b89-5bda-48fc-ac6c-57d2cc2250e6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_88d0eeda-269a-4da7-a5e4-6a869e4141a6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_2f030ff4-09e0-4970-b2c3-a9200acee06a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_0aa51400-d6bc-43cb-ba97-21d5d514b527">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_0803f3e6-0e5b-4cdf-83e2-d532f040c4a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_c870a1a0-2334-4d52-9780-b2d7f0456844">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_e5ebcca0-51a7-4abb-8e20-a5311174a951">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_61739542-38f3-45a7-a487-f5ca7d264f7d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      id="F_b0b16647-af3c-427f-842f-a7eadd22c792">&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;5,160,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_cb69cb34-9cea-4ee3-9d73-4ddb4185c599"
      decimals="-3"
      id="F_a6d16192-c9e3-4f29-bd87-84be2bbfad26"
      unitRef="U_USD">5160000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
