<?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_b08dc66f-f7fd-43d0-8abf-997481d4db0d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_2ff0f3b3-a6b9-43ef-91d3-9fb54ba7c917">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_f8ec1b5f-64a5-463c-9667-6bb9152e1c3e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_f371bb80-c35f-4697-b13b-35ffe1e3b38d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_e1bdfb0b-cbf1-4a50-9968-c55bc6e3f6ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_2cb1c8dd-0ce1-497e-9775-c2507a3bf437">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_2aee0def-3736-4e06-b2f0-6150bf87b0cc">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_5274abfc-0ad6-40a0-9e2e-68af09ea59e9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_e11ee79b-d576-45f4-9040-4278ef647b6e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_3f5d6e6d-cf56-4e2a-a264-b62732818cbe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      id="F_b9168806-142a-4627-9ec5-c3991b150dbe">&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;15,104,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_b08dc66f-f7fd-43d0-8abf-997481d4db0d"
      decimals="0"
      id="F_bd951cb3-919f-47cc-8bef-7d54a306e246"
      unitRef="U_USD">15104000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
