<?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_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_71f16e22-5e2b-45ee-bd17-719738b82c8d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_e8a20b2a-c64c-4644-a99f-a0f92c3d4e60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_0feb1bc2-0ca4-49b3-a151-3b585f9d8024">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_2f52eee8-c5d9-4dc9-8a04-612371829c32">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_78636c87-300f-42a4-b097-2017346786f1">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_5e47241b-6691-4d2b-9d64-eb935d072bd0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_1fe9ae01-efd1-40d7-a05a-f2b19ce5281e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_9e311173-67be-4623-8671-f3da7119c2cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_19246832-c9c6-41c6-8480-1b2a7fdd51dc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      id="F_b12ec2ac-8947-4f62-9c14-24f47b02168a">&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;1,600,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_8fcbc18a-131c-4913-a48c-5f7c83d9bfc9"
      decimals="0"
      id="F_0e17e80a-6ceb-46ed-b4f2-4df27977d247"
      unitRef="U_USD">1600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
