<?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_7d4d70f1-5775-4594-a1e7-85aa290ace77">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_066ec8e9-9e17-4a99-9940-127a071e41b2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_6c2cabae-210b-4534-8246-967262e8fa4d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_1a8916d2-3bdb-42c2-9ddb-449847ce405f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_60682798-eb44-4933-b1d4-e20ecfcb9330">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_2135e1d8-5d41-4bcf-98b3-9a7418d58c4a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_d632c71e-ba76-4064-a462-321ae4dd73c9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_0d6a1103-63cf-43a3-a308-ba0be312ee83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_d326e4e4-3736-4426-ba1c-40f5bbafc445">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_21b7cb0c-bfe8-46a2-82e5-dfb04f008ce6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      id="F_61bf1e53-5dc1-4bef-9b27-b1ea0a1d4a71">&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;729,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_7d4d70f1-5775-4594-a1e7-85aa290ace77"
      decimals="-3"
      id="F_ae62d48f-8c93-4e73-8084-0e69b1e4ab11"
      unitRef="U_USD">729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
