<?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_01e8912e-20d1-42a7-9c0f-6456e5f71493">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_4551650a-f4b3-4fdf-973b-79c8d15b1a82">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_8f6ec7b5-fe37-4baa-ba38-53b25f459b64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_0f4c5796-27ea-4a7b-a2af-a7f6ab107bbf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_e239c751-d963-48c8-934d-89c3203a1ef2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_e2ca5ccf-e89a-4be5-af85-dd7675d4f019">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_49c13327-e6ea-4839-ae8d-9eb414b41461">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_b3c24dcb-cb7b-4503-915e-ccde8bd6255a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_fc4095e3-9b10-48c6-aca6-adf662496a29">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_23608493-03a0-4781-815c-7961e55b6a8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      id="F_3c6dbcc7-e2b1-4bdc-ac94-5daf52410de6">&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;17,096,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_01e8912e-20d1-42a7-9c0f-6456e5f71493"
      decimals="0"
      id="F_c7f71354-62c3-42f1-8b7b-a59b2073e265"
      unitRef="U_USD">17096000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
