<?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_4f85b564-f3ea-49ce-950c-8278819bd085">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_33ff84a4-ef6f-4676-82ea-d91896aa7581">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_559fcd3c-b14b-487f-8650-21f0f9df7dc7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_d27ed515-1454-4363-a3de-9cbe1e925b46">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_973a1c3c-fcca-4bda-b8de-850cb53ba1a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_f933ffc0-0f17-40ad-939c-87dcb0421b72">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_386a6730-51c2-4cb2-9ba0-79f33a702114">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_e503eb30-e381-4d3e-8964-99f1fa14625a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_9aed838b-afce-43ac-b385-b7e80c3aaea9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_5c36af21-a15d-4b5c-8622-9c7336fbddba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4f85b564-f3ea-49ce-950c-8278819bd085"
      id="F_bfd83cc0-1cc7-4754-b86b-16a3bfba1d64">&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;4,290,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_4f85b564-f3ea-49ce-950c-8278819bd085"
      decimals="0"
      id="F_86dd4a89-5179-41e1-a7ef-9c5ac062c2b8"
      unitRef="U_USD">4290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
