<?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_442d01c6-204e-44dc-b683-8ca13ac66856">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_9b3ca13e-efd0-4874-b705-3b8f508db1d4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_c32c1778-b2ec-4d95-8a69-954bd7111034">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_990e5b3c-e975-4b6a-bf20-e9ab337fbe34">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_7e19aff9-6582-4ba4-ae75-68e8cba7d29a">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_69849ebf-16bd-48a8-b02d-046846062d06">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_183f0ca9-ac0d-44d3-bf8d-52e597910019">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_46ef3bca-4ee5-4015-b76d-28415f0aa316">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_260548ff-079b-4ddc-9e4f-004718eaa72b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_7f24788e-1543-4845-b70c-728c9854b2bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_442d01c6-204e-44dc-b683-8ca13ac66856"
      id="F_dd129456-f929-4931-894c-867870c515b6">&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_442d01c6-204e-44dc-b683-8ca13ac66856"
      decimals="0"
      id="F_8cc21e0e-b643-461f-b6fc-4fb7348f4bfa"
      unitRef="U_USD">548000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
