<?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_1109c97d-7c88-46ee-ba67-22509f30be17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_cbecd5c6-1a45-4a16-a948-6ec8fb6c8547">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_96828b16-e80c-48c5-b410-61de394c9168">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_1b7629d3-91a6-438c-beee-1237942e7a04">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_604bccbb-815c-4022-8635-320498aa5177">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_f14c6cc5-5dfd-4a6e-b19d-377286a5935c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_830d6ec4-3912-41a6-acac-16b07084a32a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_ff956899-7acd-45f4-b880-9d2bec60f3a5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_5865fccc-885b-4840-b3c5-3af3f4048e03">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_3a351a20-30f7-4261-85d3-b6826c7de085">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1109c97d-7c88-46ee-ba67-22509f30be17"
      id="F_7eadb005-c741-4141-be85-5d0cc9b177e7">&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;290,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_1109c97d-7c88-46ee-ba67-22509f30be17"
      decimals="-3"
      id="F_d43000be-a556-4b99-b449-fc202496f082"
      unitRef="U_USD">290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
