<?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_361b03a9-c051-4a9b-9568-bb614ff996a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_9a6ec663-1d57-405d-b7ac-0e5a15b14639">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_a1226464-1e49-4b09-8b6c-cc1c024d8f7c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_454ee661-06e6-44b4-b239-6bb8ccf3e27d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_219c3a62-5049-4412-9438-bf09ead427eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_11b75831-7ed4-4dd2-8c14-64eb061c9e5b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_538c2ac0-21ba-4fd6-aa33-54423b61a5ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_7b5c87d3-fba0-4da7-a653-4e06979f9831">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_7aaf48b0-85f3-45b9-89a3-2c7df5a62458">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_d7e2a368-c872-4385-8dcc-7dcb48c6cc82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_361b03a9-c051-4a9b-9568-bb614ff996a5"
      id="F_23e30d85-beea-43f3-a32c-468274665c51">&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;950,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_361b03a9-c051-4a9b-9568-bb614ff996a5"
      decimals="0"
      id="F_9fa80255-83c5-45d2-9e52-d8dee2ce5afc"
      unitRef="U_USD">950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
