<?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_59b8b86e-c9ca-4825-812b-0b338dd231fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_623f2f3d-5d58-46ab-9996-59da7adbff69">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_4e250f8d-9803-41b7-adca-56953a7ee853">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_c74c6ed1-be72-4b97-a765-641e91ed671f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_d04ff05c-959b-414f-b6d3-7154504c9aa5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_d97d257a-85f1-4e14-b9ec-545ff34d9043">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_46fdd5a9-5cd2-4843-ac1c-0fd35e487597">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_b25789a3-e1b0-47e8-9394-da3f30496ece">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_d0071cfd-58f6-4c55-b075-47f73904c118">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_e0d3c8ec-4f77-4f8e-b690-d4d9f16277e9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      id="F_6cf2f4cf-3e15-41e8-9ed0-7818c244870b">&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;95,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_59b8b86e-c9ca-4825-812b-0b338dd231fa"
      decimals="-3"
      id="F_2518e280-737d-4f5d-8b09-f44f41c4bc25"
      unitRef="U_USD">95000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
