<?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_822712e3-2eb4-4995-846b-74006f0a6b0b">
        <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:EntityRegistrantName
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_85e9fd00-04b8-4947-a493-8b4823741b82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_c0f6560b-e18c-45fa-8bef-99c6c8021c96">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_98c68c13-ef0e-43bd-9937-9cdf02145041">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_e3caca2f-a0f6-483e-874a-075639c68818">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_2bf4383e-02bf-4202-8704-e9ddb2f7c026">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_f2337972-2866-4096-8dc4-1b8ab85e854b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_3a942f4f-2a3b-45ef-85a4-5ac669e0f29c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_40699cee-5710-4215-9ace-92023e478c83">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_8f9032e6-99b3-48dd-93ad-8fe7597dde63">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_822712e3-2eb4-4995-846b-74006f0a6b0b"
      id="F_ed071d1b-df2c-4344-980b-fb21860bd2b4">&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,652,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_822712e3-2eb4-4995-846b-74006f0a6b0b"
      decimals="-3"
      id="F_585bb616-5b46-4de7-a08a-979c97240442"
      unitRef="U_USD">1652000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
