<?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_4fab20ad-0aac-446c-b6a5-6a794835df8f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_85e9f042-2aa1-4a43-ab35-a8f2615f30f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_ec0ca636-83c8-4b84-b6ff-6829f7ea7511">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_5ed5dfe6-67d2-4a48-8481-bd0c9bef49cf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_89adb2ac-f7a1-4c97-b179-d5ef7a073367">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_1c4f3d0b-44cb-4f30-b538-b9d36b47e23d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_1900ad6d-0123-40a7-a415-2e8884a0194e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_47c5f89a-f8af-4159-9bde-005ef34b2ede">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_69a5bde9-5453-455b-93bb-e6eac36c911f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_bcd33233-2887-4ce4-94ca-ebc5fe42f8ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      id="F_b9e9b5c4-678b-4da0-8e0e-c9cea6073628">&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,444,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_4fab20ad-0aac-446c-b6a5-6a794835df8f"
      decimals="0"
      id="F_29ba8760-8620-41b8-82de-55e80ddec735"
      unitRef="U_USD">1444000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
