<?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_95f3f8dd-7634-4698-8b07-f4179660d21d">
        <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:OfferingTableNa
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_cd9bcbab-757c-4de9-a8d5-f7acab18bba3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_edeee772-b7b4-43ed-9cfd-6369b1b7bc6c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_2ef8bafd-dce1-4a5e-8596-98b9f277c233">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_a6ac55f6-7d2c-4e7a-b582-bb684604166f">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_13af0fd5-772b-429d-99d5-1f3da1d30daf">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_57f8646d-d410-4058-aada-fdda9e5bf28f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_3168c0fd-9f62-4dce-9ae5-3f3e297d7c75">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_b7f3866c-bc22-45a0-9b18-d322873cbadf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_a99f41dc-958a-4630-b175-9398cfa1b7c7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_95f3f8dd-7634-4698-8b07-f4179660d21d"
      id="F_196a8cbe-1972-4663-9ea3-90a6de64c9ad">&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,309,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_95f3f8dd-7634-4698-8b07-f4179660d21d"
      decimals="0"
      id="F_51d8d59d-03a0-4452-bb78-9b07b45c2af3"
      unitRef="U_USD">3309000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
