<?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_a781f4b0-d914-4fa1-ba32-c95c5fd33153">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_ac8a00c9-085b-4d25-8073-b1840da19370">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_5933e7d4-93c8-46d7-9eae-8337196b9442">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_8ed9437c-f3f6-4ef5-8bbc-85006f49690e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_bad665a4-23b5-4b9e-a181-fb9eb5d830b4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_e20accc0-a27f-41f2-bf87-c29a26e2448b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_dbc5113c-627c-4164-94ca-02d1d212a1f5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_abdeb399-34c4-4ec3-9dbe-acaa542daad5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_b32f5aa8-5edd-4f3e-b013-6b8b88828af4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_bdc68669-9f80-4cd2-a661-e5a33535d28b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      id="F_cd80b8b6-b89c-4dc0-bd67-64086fe8ed26">&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;2,658,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_a781f4b0-d914-4fa1-ba32-c95c5fd33153"
      decimals="-3"
      id="F_1c093bb5-6be0-471d-8d12-62d22ab00edd"
      unitRef="U_USD">2658000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
