<?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_be4d90e4-3cc8-44ad-8e6e-b2168592b458">
        <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:OfferingTableNa
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_cc56acd0-3e8c-400b-9149-ac39d8ee7197">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_bf9dd30d-e901-4b00-9be5-7a5bbc5115ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_9b4ce74f-befa-47a1-9475-181a3b3e4908">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_81bd3f71-09fc-46fd-b3f8-e2e957ea1742">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_877df866-2aef-4256-b6a3-5b5ce35f3450">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_1d19c278-f307-42b9-9c1e-ae0f9d377b2b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_991505d5-addf-4196-8aa1-5e8c5fc08b31">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_187bd222-c751-4579-a611-cdd1e8dd3ab7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_c5dc4c10-1740-4bc4-add3-f2bef73253db">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      id="F_69b660d6-18b2-4214-abd3-97e2b13a95f2">&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,818,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_be4d90e4-3cc8-44ad-8e6e-b2168592b458"
      decimals="0"
      id="F_27c2ee04-bbe1-4e31-b468-1b3356c82941"
      unitRef="U_USD">3818000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
