<?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_246ce1e9-9446-496b-8f7f-6d5fd712283e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_1dfbf4e2-3c58-4cd3-9bd8-87f9c6b795f1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_c4e5b8cb-35bd-4c95-9f4a-563bf08f4ed1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_187231d4-3af7-46ab-babf-68adc23bd1ae">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_ce0d7bc9-98da-4d6c-8a2f-d0ad97a9582c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_5658e7c3-cbec-4b76-a008-9a4b5db815b7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_26bb5918-1e57-4a64-adeb-c8249ca5fe39">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_dc2a5fb7-1f76-40af-8e17-c4be552fe4cd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_a5e7b46b-112c-4d43-8618-2de1aa2d85cc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_e599f728-868d-4e2b-83be-16a9833de898">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      id="F_63bb785e-05a6-483c-a03a-71e6d4c823d8">&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;839,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_246ce1e9-9446-496b-8f7f-6d5fd712283e"
      decimals="0"
      id="F_5b725af5-34af-4b4b-8b5b-221f0367d21e"
      unitRef="U_USD">839000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
