<?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_c7478890-837a-4cc0-b7c2-1789720233e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_6041e14f-6c03-4bdb-bf02-4b4c0dae954e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_19774529-b34d-41a2-97af-3370862cb21e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_9d9a916e-a550-49d5-9569-425100c2e660">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_e953ec40-3c26-45f9-97dc-ed287d39a944">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_3fe98bb6-3a4b-4d1e-8aeb-88a31798cb15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_d691689a-10c1-47e6-b8ab-e464a18a3ed6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_2d460f02-63f7-4bc4-8f49-7c3516f8fab7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_5c067c00-c54b-4be6-b709-64360531c42c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_e8d36f00-9e72-46d8-89f8-4680907adf9a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c7478890-837a-4cc0-b7c2-1789720233e1"
      id="F_52d496cf-3c8b-4d99-843f-f5c61888cadb">&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,550,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_c7478890-837a-4cc0-b7c2-1789720233e1"
      decimals="-3"
      id="F_06ee4e82-ef1a-425a-89ac-1acc45b66578"
      unitRef="U_USD">1550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
