<?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_0adfe0a0-0572-440b-ab77-d26ba98a5d0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_9776661d-c56e-4f8a-b40a-76d789f3342c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_5ef948a4-b7eb-4837-8d59-4c3980ad538b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_450b27af-dcc5-4949-a479-8ba02c3172b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_5434147d-1f43-441a-8ab7-689a9df04705">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_63408ac5-6546-4265-8dcb-9fee3cf1366b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_c6929f51-1032-4b32-b496-2e29d0220944">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_fb9d409c-ca55-4e3b-9664-25145bd8d322">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_acf578c7-e4ca-4a0c-9972-a272777e7f91">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_f5d2786c-0618-475f-b2c1-90b7beafbe56">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      id="F_fa7fb277-ec4b-4656-9e62-86b9914f45cf">&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;69,951,850&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_0adfe0a0-0572-440b-ab77-d26ba98a5d0c"
      decimals="0"
      id="F_4e7a63c5-e0c6-4098-864f-d4c0727607d4"
      unitRef="U_USD">69951850</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
