<?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_ab803476-758c-4ed6-84ec-d2273f8d7b4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_14db32f6-5e96-450f-87d0-d022c1b49fcb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_3868b6af-7a3a-458a-94a8-54ac5cef7c00">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_35438728-6cb1-4d03-ab0c-b11531d26678">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_c1d2a66d-b289-4c2d-893a-79374f19bee9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_7bccb1a9-f437-414d-910e-23acf6349370">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_11375253-81b6-4b1b-a1e6-f15d3c715ed4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_9f2e9f4f-971c-43e9-b7d0-df491aa138e7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_23a8de4d-b16f-4d9b-b2d6-76151ad86aa6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_9dbc16b4-7133-4ba1-85ce-c34d6e46a974">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      id="F_7ca38515-6a81-412c-8ff0-160dd09c4575">&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;2,286,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_ab803476-758c-4ed6-84ec-d2273f8d7b4f"
      decimals="0"
      id="F_cd1e59c5-332f-4361-845d-e5fe87fc26f0"
      unitRef="U_USD">2286000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
