<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_057035e4-beb1-4d5a-9e61-02720ba563e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_a43e5e2d-c593-44c3-b213-baa4f2191095">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_b4ebe0a8-1db0-4587-ba7a-2b49b0ab576c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_73fa974e-0404-471e-95e4-a69409781bcf">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_e6ad3295-ba2e-4dde-a927-a0ee38f0610e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_160318fa-747f-4cbd-bdd3-0e0292f38a7c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_bc4dc712-5f60-418d-81f5-1852b2853dc9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_1b0d2112-465e-42df-ab6f-4262fa15e8f0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_8d13919b-1917-4270-b638-d929d02b2d7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_4798ba98-b07a-4f6c-bd38-16dd05638a8e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      id="F_ea8dcad2-1e99-47b4-80f3-8b771ca12131">&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:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is an amendment of the final prospectus for the related offering.  This amendment increases the maximum aggregate offering price for such offering by $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;880,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_057035e4-beb1-4d5a-9e61-02720ba563e8"
      decimals="0"
      id="F_1dd84376-2444-41ba-be9a-eb5cbb14c7ba"
      unitRef="U_USD">880000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
