<?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_64e18d0f-db43-4b2b-926f-5e8518958a84">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_e807a8c1-8d0d-4f45-af9e-70ec9708fefb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_3e90651b-8027-4fdf-9809-19ffe2ef2a99">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_908f3b33-bca2-4681-9591-1f749dc86da3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_82bbe907-2c67-4173-b546-a53c05491cec">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_f5eb0197-707f-4201-9e0b-f7e73bcb6fd7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_410c3113-b1a5-4876-9fdb-7fb29e4253fe">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_b99e0397-ff4a-4bdd-8516-a9ca4d18f074">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_cca5d6cf-aad8-40a9-ad45-e3eda4cddbc0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_318af624-3c04-437a-bc15-bbf0049f105e">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_64e18d0f-db43-4b2b-926f-5e8518958a84"
      id="F_e1b56793-a333-465f-88da-8bca1267a3af">&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;820,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_64e18d0f-db43-4b2b-926f-5e8518958a84"
      decimals="-3"
      id="F_f1d1c20a-66ab-4e79-9d8c-6a4183877179"
      unitRef="U_USD">820000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
