<?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_7fdbc484-f85c-434e-ad82-0d9018e9dc39">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_e036ac01-16d3-4e08-b00c-f85009cebbd5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_768dc534-3ab4-4fdf-a983-89c995eda8b3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_e63e997e-8810-4542-aa15-fccc20b1e403">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_96f62d6d-40c3-4b2a-a0d7-1ab57767ed06">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_e69b3b3e-f257-4edf-b6a7-85f6fcce0d1e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_9da01897-2078-4379-a8c5-dea114558205">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_a59c4130-2868-4997-bf02-5ebf39bb3acd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_90e49681-7b26-4a5c-a2fc-fc79e517d6bf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_2d05dd69-65ff-4c31-a82a-4e04ecf32eaa">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      id="F_d966d3a3-cb88-4263-8b07-31616b9d5ede">&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,422,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_7fdbc484-f85c-434e-ad82-0d9018e9dc39"
      decimals="-3"
      id="F_8cdf4a77-ec5f-4eeb-9a20-ed3e2c5fda97"
      unitRef="U_USD">1422000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
