<?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_b12b860d-0d84-4592-96d1-b7d41dedea8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_5b4fd3e3-32ed-4048-814c-2298a6a185c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_92e9c5f7-ce80-4042-b267-c89947f46c8e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_60cb46ef-da2d-4520-9acc-71551d9aba40">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_a5036f95-c275-4fea-a66d-2855da123313">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_c880377a-71d7-47a2-aee8-6d3295b9c493">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_cc108223-61e4-4d02-8793-04937fc0d78e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_1a10bf6c-ece6-4615-b3b9-b7aa51abe638">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_482eea79-a3de-439f-a19c-66192b7eeeb0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_278a8107-de39-4266-95b9-6ad44153874d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      id="F_5c07e88e-c310-4ebd-aaaa-e4e292b573fc">&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;7,180,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_b12b860d-0d84-4592-96d1-b7d41dedea8c"
      decimals="0"
      id="F_4840f5f6-fedb-438e-9138-e6c7802995f4"
      unitRef="U_USD">7180000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>