<?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_9186cc07-c105-414a-b60d-fd82a46b31d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_75c52304-ec4f-4769-8cd8-e6397af938cc">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_ba972257-49bb-4ed1-b782-bffd8f55f8f8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_ff982497-a13a-4377-ad6a-ea43a76fd615">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_efd5506d-14cf-4f5b-8174-b55d6a409783">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_c0cc0c52-c2f0-421b-b091-7896809b4b24">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_28383aea-d2c4-46be-a603-da3103084f4d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_6fb5fe13-1d8e-411c-a5d8-627585c18272">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_3f5d97de-b0d3-4a7d-bcf3-2426529aea92">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_21e9c205-2428-4a12-8ce7-6a99e7e6ccb1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9186cc07-c105-414a-b60d-fd82a46b31d7"
      id="F_30fbf1fc-758f-44a7-a51e-db882e02a18e">&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;2,466,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_9186cc07-c105-414a-b60d-fd82a46b31d7"
      decimals="-3"
      id="F_9b0e1805-4497-4dd2-a310-9e446ccfb1e7"
      unitRef="U_USD">2466000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
