<?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_1b880220-5505-4d4d-81dc-234e68181a13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_9864412b-b3b7-42a9-86a0-bc80b748b1f6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_e1a0af55-1dc5-4972-b09e-a4744f8f0211">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_84411b13-c05f-4395-af5d-267b9f37621d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_30cb2682-b19c-46af-adb8-fba6bcbf0288">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_b14d5b41-6ea7-46e4-bce8-572826be4d0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_41a720ff-67f8-400b-a101-f0ffd18fc5f4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_f0639c9c-95d7-4d43-8815-26783a277b20">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_4ab6c10d-62f0-48f8-9583-f0aa68e1732d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_757a2cdb-bf72-49d2-b2da-f057d7969b72">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1b880220-5505-4d4d-81dc-234e68181a13"
      id="F_a5af255b-0f8e-421d-88bb-7f5a2e2b90ff">&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;1,209,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_1b880220-5505-4d4d-81dc-234e68181a13"
      decimals="-3"
      id="F_b3149466-42f6-492f-9dae-1c1b1115af43"
      unitRef="U_USD">1209000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
