<?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_3af939d0-7214-486d-b92b-65155987c928">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_e545b048-f62c-4f6b-a541-85ab19cc69b9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_0a0de470-f7b6-4391-97ff-6e065f93b724">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_a015105c-75e2-493d-85cc-34a6cec51d74">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_301816c0-0d2f-4573-b191-a40508055906">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_4905ce87-5c0c-462e-a539-7d269ed708e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_5fe686c3-b9b0-49fa-9ed6-2a8bb72cbc47">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_9c0c5983-d6b5-44b1-a519-4afba5600311">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_3eedada5-7484-4829-9e83-6f7418e79c0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_5c0ecab3-ef43-4c4e-bb59-2d23baf25e66">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3af939d0-7214-486d-b92b-65155987c928"
      id="F_fdd30e72-933e-496e-b026-d2a082de9cc4">&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;3,365,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_3af939d0-7214-486d-b92b-65155987c928"
      decimals="0"
      id="F_1e714155-5825-4593-8a26-330758d99708"
      unitRef="U_USD">3365000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
