<?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_1925c73f-1ab4-47f3-9830-243ce4dfbf73">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_e27051be-0a0c-4cbe-a40a-75134a97598e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_62b02535-ecd3-4b3d-a9f1-0b93d347a85d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_090969a7-b23a-4813-a3d3-c8ac07a52c35">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_71e12016-fd05-4513-8820-8b98ab4da45c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_3b57e724-746a-4e0a-a147-7e2da248769b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_dbb199b7-3f62-46e7-801e-5461ed77afb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_8641de4b-1349-48d4-9756-dae9787e3fb5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_fbcefa01-9bf7-49cc-b5d4-db22dea6bd7d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_786b6c1b-2b41-4061-bfa2-09370251fc2a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      id="F_b44d4c3d-61e1-4ecd-b22c-e8e521ace419">&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;336,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_1925c73f-1ab4-47f3-9830-243ce4dfbf73"
      decimals="-3"
      id="F_4efe0e19-274f-43be-90ac-c4b5a09004ea"
      unitRef="U_USD">336000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
