<?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_786c43f2-351b-4b59-9c50-8da589981fce">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_a3afbe2b-708f-4a6e-9544-12465a8c0dbf">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_b26d6413-7818-4762-a5f0-3f13b09ab71b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_1ea8e6d5-9c2b-4eab-a550-7ec110866d75">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_f13aed43-78fa-4262-8dcc-459f949651e1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_b6273cc9-2fdb-404e-968e-0a9422ba02cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_e4c89b85-170f-42d9-8d7d-9ff36b845846">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_ab6d1b76-7fac-4c27-af16-cdb1a62f5a79">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_cfb807a2-2a81-46d9-8f29-739df9a1e873">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_2b084ad2-a145-4974-ae74-aae12f7ae8cb">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_786c43f2-351b-4b59-9c50-8da589981fce"
      id="F_35e9df14-9de1-4933-b038-5c62cbd54cb8">&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 $&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;362,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_786c43f2-351b-4b59-9c50-8da589981fce"
      decimals="-3"
      id="F_66377598-1b2b-457e-bc22-4910e90d9a70"
      unitRef="U_USD">362000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
