<?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_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_e2ade83d-e6a6-4221-99a3-e2e47a78fabe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_f54e5a91-86c6-4c2d-846f-89425c47d32c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_f2bfb8ce-8822-409a-9fda-242edffe2e24">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_009226c7-46fd-4c2b-9719-0200f8af6d82">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_38831c76-9ec4-4614-9022-90c36d2e40f8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_d7be1337-b92e-474b-90f6-f3199d424b57">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_96634bd3-ac75-4c7e-8795-3bb9195528e5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_8a1656ba-4133-4b3d-9ba1-3f4127e598c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_57c98fa5-1752-44ae-a56c-b814b51b5b85">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      id="F_47cdbed0-8f91-4e80-960a-06fe2f81bfcb">&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;7,354,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_e9c80d34-a35c-4f1d-93c8-faf61e3fd75c"
      decimals="0"
      id="F_a21e1e0e-0069-4f84-88c5-52863658539a"
      unitRef="U_USD">7354000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
