<?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_8fd73dfd-7959-4f7c-84a4-057663834bcc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_1bb6c365-81aa-41b1-bd91-dcc0749d5266">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_780edb9b-6a53-4a31-a2fb-f58bbf16041c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_26baddba-5164-4719-8e9e-a985834eb4a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_6b77855a-f67c-42d6-9ff6-243945f3e963">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_a3f6a83f-1ef4-435f-8264-73b6efcb81cf">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_5c8b61d6-ddfc-4719-a1da-42975920007f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_e1921dbc-576c-4c97-a4c4-d4cec085e256">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_8034c8ab-0a45-4bb2-a045-eb9e6f3d770f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_0f56b3e0-92a4-46d8-a2f1-1c1c86194210">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      id="F_26743693-87ea-448e-9b36-053d807de471">&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;510,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_8fd73dfd-7959-4f7c-84a4-057663834bcc"
      decimals="0"
      id="F_e7ce6162-e994-4ed7-954d-307f2ec07c6e"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
