<?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_d8deac38-abd7-430d-8010-a3f22565d20a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_61728dfd-5b6a-4fc9-a0d7-91fc3d396029">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_0dcf1fc8-bc71-407f-b9cc-addc85ba70af">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_f55eedcc-e840-4bed-8483-3187baf2d112">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_00b21222-9e8d-44bf-9c9b-4d36280c3d76">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_7ddc27fc-55ec-4236-9bd3-b3987b009c95">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_c7439506-e5d2-428a-b2bf-b5dd951be8aa">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_e9b12185-a50c-46ba-9cd2-fb035f250ddd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_4d2472f9-33de-4f40-8755-f18aaf3f30c2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_b50a5f3f-21ae-43a4-bd8e-c76ad9eec414">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d8deac38-abd7-430d-8010-a3f22565d20a"
      id="F_9e851723-b88a-465a-a38a-61126ffd9d85">&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;685,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_d8deac38-abd7-430d-8010-a3f22565d20a"
      decimals="-3"
      id="F_6f389e0f-664d-4765-a372-fcff19e9f3c2"
      unitRef="U_USD">685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
