<?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_354bd5e7-8ea1-4c45-b7e5-c45fb84da373">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_3879c1da-a515-488a-aa43-bc7b810d88cd">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_7a2a3772-60ef-4766-98c4-1f080705fb7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_fea30b3c-8076-433a-807d-51364212ee90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_e0cf6e26-49d5-4bbb-bc84-d9e1ed00cf7e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_b2282986-9d7d-42a2-8272-33ce7c0bda3a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_381dbc39-3988-42e8-aa39-b009755c5029">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_6fbfa5dd-ae7a-4a11-bd44-57bbd63e0221">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_d557d4d0-b6dc-4641-92ca-34c9568c44f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_6db265bc-5d75-4a05-8772-7ecef4e93282">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      id="F_472a4dce-9541-4c87-9414-df64b0944cf7">&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;5,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_354bd5e7-8ea1-4c45-b7e5-c45fb84da373"
      decimals="0"
      id="F_e80081f0-c07e-49d2-85b9-e4587cf2ae03"
      unitRef="U_USD">5000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
