<?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_ca52568c-b5da-41e1-b922-c85ddc0520c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_7b188dc5-bcc0-44a6-bcb7-603614e7a0a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_1025373c-35e6-41a6-b750-5b6b51e2023e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_5d167213-e58f-4037-8950-695fc020f419">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_ca90d533-bb54-4f29-85a4-3aa458e1afbd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_c0ac451a-ab08-4005-86a9-55323b0153eb">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_11d4b0bb-470b-4a8e-9ea6-e9a58d45bc11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_81a16fbd-0f74-405a-9ce3-4f72b08f8b76">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_404fcdfc-8e5e-4e9a-9f91-ee6cb89eeabf">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_b27cb895-285e-401c-bc39-38e108294be9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      id="F_baf5a3fd-c33b-49e7-86c5-c749ab37bb85">&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;31,752,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_ca52568c-b5da-41e1-b922-c85ddc0520c6"
      decimals="0"
      id="F_459d2481-6a5e-4914-aa11-3c7e94e71d90"
      unitRef="U_USD">31752000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
