<?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_c36beb1e-34d4-458e-9877-4094431c345c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_678f9412-752f-41eb-816a-2188f6e0089e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_7e932d8f-af4c-486e-8659-dff649ff7ff3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_59dc39ed-7e35-43d1-8e5f-f4b37847f693">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_e7d944e8-2dc8-4744-a272-ef19735917ca">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_403674c7-520f-40fa-8630-d2b9ba5786ad">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_752964a4-fac9-488c-954b-3d483d423356">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_f852f673-b79e-4eb6-8be3-f37798b6e3f1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_ce52283c-8ec2-4291-99f3-a182d32c3375">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_ae14ef38-62d6-422e-a079-5d75c6ace587">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c36beb1e-34d4-458e-9877-4094431c345c"
      id="F_4f5ff603-3bb8-4f1a-ab74-8785a8bb3a15">&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;1,518,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_c36beb1e-34d4-458e-9877-4094431c345c"
      decimals="-3"
      id="F_7275d3dd-390c-40b6-99b4-89472c001034"
      unitRef="U_USD">1518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
