<?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_da19bf04-3ca5-4aee-bb8f-e0eaad4733de">
        <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:OffsetTableNa
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_e19222dc-73fd-4bd5-9762-4592eef12e66">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_517d29d7-c4f4-494d-8e45-17dd8b4f48a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_87d2da4c-72f9-4c66-8c0a-e50e3ec75793">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_8010c32f-9147-4099-b2b5-8cb49b492d53">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_dff73155-6edd-4cfc-a066-59b862bfae28">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_e96cd9d6-4c7e-40ed-9204-5a7c40b802d7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_3cb4b8e7-7f6b-4509-82fa-81f1f06ff786">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_357f048c-35d1-4658-a4b6-fa8198cd3ace">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_160de9ff-51e1-40eb-a042-081023c6710c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      id="F_0d505581-a65f-465f-83c7-c3d948746d08">&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,090,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_da19bf04-3ca5-4aee-bb8f-e0eaad4733de"
      decimals="0"
      id="F_5ab8475a-76e8-4625-9692-47abd957eb68"
      unitRef="U_USD">1090000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
