<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_8a8e5c06-b8c1-4fb6-ac25-c8361e1cc11e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_0c927402-241a-49a3-90bc-54da768a14a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_44abc663-a353-4d3a-8543-9c3c34a41f1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_61c567ab-3e5a-4bfc-bddc-440865b175a7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_df0cab7f-474f-4d71-9729-f518bb8d2cd9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_faaf5dcf-8c48-4734-8681-44bb973019c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_e387e59d-9a8c-43a3-a000-b20498dec4b3">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_233f062c-799e-46f0-8b64-c2bb768d9990">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_55a15e5d-65a5-4ab7-9332-67f2ea549859">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      id="F_4230d790-f879-484e-97f3-8d406966fb83">&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,937,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_06b2ce0f-06c4-499e-82f4-1fae8fa9ed3d"
      decimals="-3"
      id="F_c48d2e10-48fe-4b72-865a-a2c24fc6305c"
      unitRef="U_USD">1937000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
