<?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_3eb13e0a-3f92-45d4-8840-2c9d301f3f87">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-06</startDate>
            <endDate>2026-04-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_b1b2eaa3-6c39-4b26-90f0-fb5691be148c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_b9ce60fe-ade2-4a1f-b601-95166479868d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_b8e803ed-fd54-49a2-947e-1752d214017f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_ba2363d6-c90f-443a-98e9-10376bc58a99">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_927edb21-6201-483b-b6aa-641f038e8496">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_e6cef4c1-f579-480f-8d12-9e17ab6c607c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_dabd3c50-c8ec-465c-86fe-350bae11e815">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_4b7719b1-25dc-4bcd-8935-ec6f5960f65e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_db622226-2b0f-4178-8537-7f1112b33895">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      id="F_5e99c246-405d-44db-b335-8552f770c3f1">&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;4,047,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_3eb13e0a-3f92-45d4-8840-2c9d301f3f87"
      decimals="0"
      id="F_a202bc81-0979-42f2-97fa-4f0f02b570f2"
      unitRef="U_USD">4047000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
