<?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_fdc6ef73-882a-433b-8072-f44d3cd1b0c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_b9dbe58b-ec61-4657-a6ad-9f9e16fef98f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_3553b84e-b2a2-48a7-9029-7176b4e93636">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_b39eba8f-263e-49fc-9462-ccaceb1845bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_925d25b2-aa45-44be-9ea9-7d50b8fe5152">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_b379a6f5-0c4b-48d9-ba4e-492d705e0786">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_dc154eab-136d-4dd4-acca-e21699c4166f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_3246d73e-2cd3-41cb-8f63-8219454a3e40">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_0173da50-42b2-4ab1-94d9-722e5f06ca90">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_5240adc0-a262-4e79-9fad-988f5175db0f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      id="F_1d4fa960-3dfe-446e-8d3c-d4725c77c9ef">&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,413,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_fdc6ef73-882a-433b-8072-f44d3cd1b0c5"
      decimals="0"
      id="F_6c25b623-c0ba-4906-9a59-8021d8b3813d"
      unitRef="U_USD">1413000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
