<?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_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_01cec919-fd07-4728-9722-86b824f725d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_b322a821-b6c4-4224-8c96-ea4e28a7f9b0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_5e51c860-8545-4f48-9874-558065c5f352">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_7f98b9df-f6af-40e2-91ae-4cd7e975c6e3">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_aa3bdbaf-3f4c-4827-8427-6e85ed7ced68">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_604d97a8-f406-42be-8d21-8d37f2ff6040">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_47c87c69-9082-474c-9978-785a28cb2a2a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_126c433e-fc99-467d-a26a-350cdb6b9d6f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_dd0db01a-21c5-4299-8c99-e637209694ee">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      id="F_9dc4c335-d4da-4454-a1d4-900a995be276">&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;1,474,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_83ef980f-fb85-4c6e-bfd1-40b0e1b5fc6e"
      decimals="-3"
      id="F_65198208-3689-4e5f-93d0-9a7ff6586f97"
      unitRef="U_USD">1474000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
