<?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_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_d2b2630b-5a11-49b8-8e64-cf2329ad3ad3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_0cd5ea2f-34ee-4ac0-8e28-7f2829f24054">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_e9ef551a-778d-44ca-a831-e7e1a43af961">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_7a85f461-07d8-4fc1-a1c5-ad95ec9b7057">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_df04fc80-d41b-49ed-b160-9c6215eb6945">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_3ac4d14c-dc6c-47d4-8156-9260c5f1d496">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_2184e4c8-5df3-4485-9e6b-73785dfec179">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_5684f1c3-ea93-4bb4-bf19-3e1af393054e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_bd827345-e0e0-433a-b280-fd9c45fcfe5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      id="F_f1dde1dc-58cd-4051-a513-3a6bf3e9f21f">&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;1,078,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_ecb0ded9-eef2-4270-8d18-e7c7cbcc0ce7"
      decimals="-3"
      id="F_c19e388b-d7c1-4346-98e9-3d05a35b4dcc"
      unitRef="U_USD">1078000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
