<?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_8f3cc52e-389f-44ff-996a-fade9dca555e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_3447ac03-153e-40c8-b2f0-7f023473fc79">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_2df29b20-0225-4f07-a355-57d7bdd88a21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_9a98bc7e-62a2-4158-b08e-081ed085acaa">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_c886bc45-bf8c-48f4-954f-cc9b36b05ebb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_702aedd5-0696-4da8-978e-77e21228518f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_1f5caeef-365d-4621-b8b7-d7e234133606">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_0b9e7ef8-cec9-47ee-97d2-86bacca95f9f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_5813c5a0-95ea-4f1c-9461-0621dcfc6df3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_12f121a2-64dd-4c07-9159-f923877abe99">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8f3cc52e-389f-44ff-996a-fade9dca555e"
      id="F_0cbbf205-b563-4a7b-984f-18efa4cc30f1">&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;250,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_8f3cc52e-389f-44ff-996a-fade9dca555e"
      decimals="-3"
      id="F_deb612f8-0eda-40e4-8f90-d4f1670e728f"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
