<?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_a1b826e2-6b26-43fc-8076-9f22e1b649e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_f4c21bfd-79c5-4144-9011-4768b3ad4ad8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_2f402eaa-fff6-473a-b4da-58a71d382efe">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_57372d28-9d10-4fcd-81de-dae6120c8dc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_05a22f30-8702-408c-a8af-941da59cdec3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_f22c6071-5c37-4b18-ae70-2b851997df04">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_bffabb80-27df-4996-a441-94efde901144">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_53d24362-4af9-4cf2-bda7-19c19438d973">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_5e6e3f86-8970-46c1-89bf-e8b72f54ee7e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_39259db6-c714-4fb7-a769-7b5d3c67cbf8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      id="F_03e191c6-8a0c-49e3-ba57-33cfdbad1c88">&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;5,855,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_a1b826e2-6b26-43fc-8076-9f22e1b649e3"
      decimals="-3"
      id="F_36f97102-55e7-454e-accb-63f7d67c197a"
      unitRef="U_USD">5855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
