<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_7256d74f-0026-4d40-82cb-4061bcd46e8e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_eabb3560-25d3-43c3-9dcf-aa1b3de84faf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_1c2dca82-7a96-4e8c-8c12-c184ba4a5b60">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_2f4c5029-d3bf-4e26-a190-481dcf30f7e3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_e236bd09-a2f5-45fd-94b3-36a986417cf8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_cec27453-a086-4261-925e-dfd95d428d49">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_41248516-28b3-4cdc-bef8-b45030a0989e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_9b93d87e-7feb-4862-9129-86100e3210dd">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_5c57f9d7-c886-45b6-a1c3-fb99c5edfddc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      id="F_cae4197f-d924-44a6-a875-95c6b488b649">&lt;p style="tab-size:26.66px;font-size:12pt;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;319,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_df01dfde-6aa1-444a-8d1d-a4b26e8f2575"
      decimals="-3"
      id="F_a7c27835-aa1c-4f02-8808-0da0529cd42a"
      unitRef="U_USD">319000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
