<?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_0c046e02-4cbb-4821-8db3-c1e52ab6878c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_d6f0591d-b3d0-47c0-972b-513a8c9c16ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_75f3024a-9be7-4e31-a926-bf45ff334722">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_b60fc4a2-ffab-46bc-b4e1-bfa75e39ceb1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_05965be5-3bde-4979-8f6c-c82479890110">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_19ef530d-a4d5-4552-9e0d-bd6a12e6096b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_dbf271c7-2998-4f7a-af1b-370c786bdb7b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_591f08a3-3b56-42c7-8135-1f07042c6356">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_ebbb7c39-9111-4950-b392-ac0ab17bef77">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_f9bd8cbf-1089-4273-b004-a3601d90438e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      id="F_4a63a454-900b-4278-a87b-16b11ce5601d">&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;17,206,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_0c046e02-4cbb-4821-8db3-c1e52ab6878c"
      decimals="-3"
      id="F_9cf744f9-214b-408c-ba47-ca8f311733ee"
      unitRef="U_USD">17206000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
