<?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_2816cbd0-34a6-4d6a-ba71-280b973ecc58">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_68418c6b-38b6-44ca-90b4-d6c9de6e7251">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_86e57215-43d8-46d5-9d38-c45dbbb254f2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_e141c94c-9bed-43a1-92f5-d8a7bb585d1d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_c8230e87-0e50-4ed6-833b-aa9cebbd81b3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_42f733a9-f00f-4c86-997c-87b880544b4b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_11bab0b9-81e2-4643-9fe3-2a24e4a0b2a2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_eec03e9c-6719-47de-b82a-ef4a8fb79e57">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_07f45de4-d9b8-46db-b857-6b29f97dcc92">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_af77df6c-c08b-4e33-894f-665b50dedfa0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      id="F_3bb6a868-061f-44f3-8dc1-7d94fab29560">&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;16,602,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_2816cbd0-34a6-4d6a-ba71-280b973ecc58"
      decimals="-3"
      id="F_d7bff8b5-8c7b-40b1-bd22-525f2285f68c"
      unitRef="U_USD">16602000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
