<?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_cb76c873-7dcd-4cfa-ba8c-ec07b781b257">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_42ddc14d-8efb-4f4d-9e91-29552ecfd2ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_e3ec55dd-7620-4398-8c46-42113deb3349">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_306ce93d-ab73-48c7-a97b-aabfb3d00005">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_fbbee704-7712-49a8-8c3c-3d49163facd8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_ddbe2518-3514-4172-9920-9842595c5df9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_d2b687cc-b5f9-48f2-b920-c50f78ddae9c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_5b19e62f-86bf-406e-87b2-44caa5ccff59">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_855bfc67-5759-4388-aab5-7362504afa23">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_97737e8e-915e-4471-b191-de4912ae37b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      id="F_763ab758-7c44-4f9c-a9bb-0fb9b2d115f0">&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,192,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_cb76c873-7dcd-4cfa-ba8c-ec07b781b257"
      decimals="0"
      id="F_ea7a1830-7dfc-4a63-af6c-a65f3c7da258"
      unitRef="U_USD">1192000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
