<?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_ab21d7f1-5275-41da-bca4-bccc3387235d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_2e3e842d-f9eb-4033-92b6-9e107eacbf36">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_6de2153d-b45b-40c2-993a-605c753357c9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_079ce12a-22ee-491c-9c6f-24d7de887308">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_a39bb47d-d390-4e70-96f6-641a752c38e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_1cf4a177-6e4e-4528-83fe-1ab2d42d3ab5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_3f439233-c260-4733-ba6e-daea5731773c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_63619598-3200-488d-b60c-6e6fb893cef7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_b101de24-4830-4143-bc3c-c441c9ea1ea4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_11b5043b-983c-4faf-9551-881545f00813">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ab21d7f1-5275-41da-bca4-bccc3387235d"
      id="F_483fa54c-c964-454c-b4a2-266d4b5d1b71">&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;9,040,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_ab21d7f1-5275-41da-bca4-bccc3387235d"
      decimals="-3"
      id="F_7c8061fe-6f4e-4100-a9fe-e22755cbe203"
      unitRef="U_USD">9040000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
