<?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_431334d6-4f36-4295-b85c-c4796aed89d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_550cd4a6-331b-4a55-99a0-0568791cdb1a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_0890344a-ffa3-4847-8126-8618e41a2792">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_0d3f6cbb-12f6-49e8-8962-a070937dc01d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_b9b89919-8ab7-4f21-9573-90154fd54e59">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_a02994ba-232b-48b7-b96c-7fdecb633848">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_9a689322-64f4-47d8-846b-d2bdf3900c97">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_8e0e51d9-5263-406f-9a21-3e029500a566">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_25fd42c9-89a0-4406-a687-50b0b75eb07a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_bc26fad8-4c1f-4516-a3bf-8dcdf5b69431">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_431334d6-4f36-4295-b85c-c4796aed89d1"
      id="F_624f6cf2-47cb-4075-9816-49497fc5e215">&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;504,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_431334d6-4f36-4295-b85c-c4796aed89d1"
      decimals="-3"
      id="F_69727c99-cd61-48a0-ba28-8806e56794a0"
      unitRef="U_USD">504000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
