<?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_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_886b7582-400e-4d8b-be22-fed4c4ee5b36">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_8adfc2ee-82a1-49e0-8791-4a2d9f9c0e8e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_4e429a59-4adc-4065-9abb-49ec4f54cf36">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_dc6203e6-368b-4c46-b74e-aaa784d2e4b6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_62ba1f0f-c13f-4fbc-8b51-837e92de7cf5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_e6436763-bc14-4382-932f-ad455349d6f7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_5d2b5ab2-473c-4d0a-9658-4f6686301f58">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_920d47cb-795b-42c9-a7cf-8f9a0c5d5848">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_1959e77a-1030-43b3-ab1d-7c989e797b68">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      id="F_c8d79791-ebc4-4457-b126-e1523b8dac4b">&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;2,260,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_5fcf38c6-fb77-4959-a3fd-acfb5fbb3ed5"
      decimals="0"
      id="F_0736f327-b13e-48d2-8c78-75a34d0f286f"
      unitRef="U_USD">2260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
