<?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_563ad47d-9625-4c45-80fe-d393493b1eb2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_e202115e-e174-44a5-b0d0-3f2798e39095">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_e25b7eca-2bda-4fc7-991a-c36cd6009f6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_2644338d-5cca-42c8-b02c-6cf684429940">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_228cafe7-c3fe-4469-a4fa-51647a7dc5e2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_3ab7ad3a-6a14-4fa3-8855-8f086f7e868f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_d1e67d0a-0720-4d05-91ed-0d6649d4c89d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_4caa6360-03a1-4c3e-a145-efd6933e7608">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_53efbb27-0b96-4903-a562-5a31b21e9438">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_3c06ac4b-ec95-4898-ba62-188671be576f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_563ad47d-9625-4c45-80fe-d393493b1eb2"
      id="F_2860fc32-cdf4-4c20-891a-38a0eee65d68">&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;2,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_563ad47d-9625-4c45-80fe-d393493b1eb2"
      decimals="0"
      id="F_62768e83-faa7-4a1e-a195-25c283985bd3"
      unitRef="U_USD">2413000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
