<?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_1c0fc892-b261-4c31-8e75-27e47594c8a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_b7e84bdc-f9ca-43fb-bbca-899c8ba4a41c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_98a2e786-15a7-411c-a418-950455c73c9d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_64df3c84-a2ae-492f-b37e-4e293eff2df4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_6e2fd028-8c2c-4ec2-9e6a-29a3c5366fbe">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_1ea63228-4963-4579-b3b4-b4a41996a255">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_6cf74d7f-1a6f-44ac-a9f7-fdf720136237">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_7692c1f2-46dc-4473-b226-8bd40fcf2db8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_690242cc-b3f3-48df-b08d-cd79c08fd30f">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_9d8ca7f7-ac92-46e9-a3bc-890dddb8956d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      id="F_1e7dff17-0a7c-497d-aa27-167326bb953a">&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,977,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_1c0fc892-b261-4c31-8e75-27e47594c8a4"
      decimals="0"
      id="F_07b9f330-b44b-4921-ad7c-0acfe8ebf5fc"
      unitRef="U_USD">1977000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>