<?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_77ace5c5-3497-4f42-982b-8b9b8d5743ea">
        <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:SubmissnTp
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_736c33fe-48fb-4d5b-a7de-1a5ad25f6339">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_6901c590-404a-4220-808c-d70792d6514c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_98538b9d-2d8f-4cd9-98a5-0e19aa60c031">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_343f8c60-9725-4b49-b12c-41af8e4f7792">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_5240c398-bedb-4015-8f4a-961f157a15c7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_f7da05ce-5361-4300-8cc2-c0b880489ee1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_b5e41305-c780-408f-99b8-1b4d24ca1c11">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_424ebcfc-a33e-4cfc-a1df-59d12afd486d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_93ea342f-4af5-4dc8-83ab-0bab4e1e0034">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      id="F_14c0eb5b-b136-427b-af73-2b6e57718639">&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;500,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_77ace5c5-3497-4f42-982b-8b9b8d5743ea"
      decimals="0"
      id="F_e7338720-d00f-4c0f-8e4f-0bfe8d545d6a"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
