<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_4239df32-626a-4f92-93b6-d9a83b522881">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_c8ee9456-5621-470e-bbe6-79b80623f76c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_b0c3dc84-6e0a-4c44-92fc-b952de1e59d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_24d9a5e0-be8d-41cf-a507-863b529ee889">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_538b818e-c57f-4bd9-b269-8e31888c1a2b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_879a26dd-2f39-482c-a4d3-020ac87abeac">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_ce1dea14-4acc-4f71-bd52-5cac8d9929d4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_738d03a7-b77c-4510-a418-18ce5a485237">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_c55c2d55-944e-4f76-81bb-fc100bc72dec">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      id="F_acf1b59b-3cdb-4733-9cec-6046d4ed493d">&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;548,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_bb090a05-93f1-45f2-9f6e-fdaa646bb461"
      decimals="0"
      id="F_2b322818-9483-4137-a3eb-913cb312a4a4"
      unitRef="U_USD">548000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
