<?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_caa0a756-05cd-4f01-88e2-685539952e72">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_b7cb1f29-d48c-486d-afe2-e4086d8ccb89">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_4d59d445-599d-407d-90d6-75bcb51c45e3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_8c70bf21-3a42-441b-a745-5ec5a3d02baf">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_58735a88-164e-4347-884b-d768385930e6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_f4349c6d-078b-4949-a67b-29896ffda28d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_ca1ac44f-ac8e-406f-b716-336a8fc319f1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_cbe892ba-b542-43a7-a49f-339eb14d86a3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_7a201677-7189-4b66-8ec5-807eba69e541">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_cf037367-6a74-4264-81ed-2d839d5c6606">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_caa0a756-05cd-4f01-88e2-685539952e72"
      id="F_6cc28f4f-e3d8-440c-bdf6-01b24ca8be4a">&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,563,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_caa0a756-05cd-4f01-88e2-685539952e72"
      decimals="0"
      id="F_98aea193-1a91-4268-8050-5317926e1aa4"
      unitRef="U_USD">2563000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
