<?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_5cffca42-c1b9-4caf-aea5-5cca26b923f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_621bcba5-1942-4d39-ad74-4c60bdcfdfbe">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_414a73fb-b98a-4dcf-84da-65ede23115ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_a3871934-76f8-4e80-b0f4-7e3d2f1394e5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_7536f310-de87-4843-9825-69ea66da666e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_2ae87f18-45f6-4514-9c14-f07e3d7c3b9f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_b34ef9e0-8640-4a21-9b41-3a533a6bf234">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_abfae8e2-ba24-4237-8ca5-aa2eb0768108">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_05a462e8-035b-43c3-b2ea-aa9a16661ba3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_288be59c-1946-473c-95f8-57a3a4d76be3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      id="F_29adbc2d-01b2-4798-94ca-08c952fb8ac0">&lt;p style="font-size:10pt;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;292,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_5cffca42-c1b9-4caf-aea5-5cca26b923f5"
      decimals="-3"
      id="F_82c5e5b9-a604-487f-92ff-ee9f9abc102b"
      unitRef="U_USD">292000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
