<?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_98c6bcd4-21d4-4a9b-893c-9899911b6ae0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-26</startDate>
            <endDate>2026-03-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_5e6921ce-44db-4f0a-a456-6ef3762bd498">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_fd14415c-49bb-4685-a4e0-f57e0ec5145a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_a0d38393-663f-44d1-8d0d-624131ffb9da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_3d1202b0-e5e5-436b-bfc4-92cf8b2aed09">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_06d494f2-53dc-4990-b73d-5b5d98409b9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_08064be0-afb4-4dc7-858d-312ba4a6741d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_b5539760-501c-4102-861c-4c6f85dc495b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_d3534a49-57e2-47ff-b795-7ae194bb616d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_943b2834-2b84-4114-a98b-e050faa5d62e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      id="F_bb8b27a7-d673-4267-8891-2810ec94cb0d">&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,000,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_98c6bcd4-21d4-4a9b-893c-9899911b6ae0"
      decimals="0"
      id="F_721b0a20-dfe1-4d9e-976e-36b6d3fe76e5"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
