<?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_7a34944e-f317-4665-81aa-b326fb822b69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_2f0674b4-73fb-41c6-b09b-8e326f8b0042">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_1e3204ce-f550-45b6-a545-783aaf62d85d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_0528d451-03da-4aee-a383-b7c15f21c455">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_2619a8e4-2acd-49d1-a104-d9e9a9a48c46">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_7d1bf38e-4439-4d42-8741-9e846a56d8f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_5a963f8d-831f-48a9-b67d-7994dad2cca8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_87505542-a5a9-4b0c-aeef-539628667c9c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_b70a27af-3853-494c-b1dc-65bba7c4f8e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_55c75528-dad1-47a2-a487-5ee392cd3206">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7a34944e-f317-4665-81aa-b326fb822b69"
      id="F_f70e3e9f-102d-4ded-808a-527c2695f774">&lt;p style="tab-size:26.66px;font-size:12pt;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,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_7a34944e-f317-4665-81aa-b326fb822b69"
      decimals="-6"
      id="F_58cc97a5-7f4c-4ed8-9311-b0906d6b364f"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
