<?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_8eea2ac3-3371-4265-97f7-8f6b3abe5f71">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_2dee723f-0bfe-4294-93f1-8f80e6405140">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_b2082052-ba1a-42a4-bf90-d7cf62933c4d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_fd7d290d-640d-4f1b-9958-4ab1e6d2c8ec">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_ece2b07c-184a-48c7-b312-63e932ec485c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_8e5c08e7-a517-4f2c-b87d-f0075917bae9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_a1bffb09-c92a-43e5-89cd-fcc2e70699ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_a63ef18a-e8cd-421a-beb6-8be9903919e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_b9c957cc-f3f8-4110-aa4e-f3b6f392b60f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_ced4e4c1-61e6-40d1-9be8-f0c6371bbc25">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      id="F_311abf6e-e1d5-45dc-9831-c4134966b3aa">&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;1,326,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_8eea2ac3-3371-4265-97f7-8f6b3abe5f71"
      decimals="0"
      id="F_b6a2f958-226b-4c9e-a1a7-3fd98183665a"
      unitRef="U_USD">1326000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
