<?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_b2a0997f-b171-410a-80f7-708df616a6e8">
        <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:RegnFileNb
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_61f26350-156e-48db-ba22-4b90aefe6045">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_47661b0b-c6eb-434a-b417-4b8bbebd4558">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_3a721cb4-88ea-48b7-9439-e4f797a65cfa">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_8c8e7920-b42d-46de-b67c-a253ea5e6dd1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_05f34d52-cd52-478d-947b-c3fd68b058e1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_1f0b3491-fec0-471c-a1b9-ec0ca0132506">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_5eb6b5a7-34b5-4809-8a8c-ed43a715d89e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_50f271f0-50ed-4562-92d6-574faedc434a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_befb312c-3b8f-488d-b003-630d0b8c597d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b2a0997f-b171-410a-80f7-708df616a6e8"
      id="F_16bd9c1a-75e3-44b0-b1a1-3b39d983dd12">&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,163,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_b2a0997f-b171-410a-80f7-708df616a6e8"
      decimals="0"
      id="F_dd0c007d-f893-44a9-b519-5352b3f5158d"
      unitRef="U_USD">1163000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
