<?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_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_28eaaf12-af01-4473-b9a8-785939114c4c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_723acdbb-6f83-46d8-bfac-eccdd9cdb5b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_2c20906e-a407-42b2-9309-1153e392c892">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_97ce3f23-3130-4f8e-9585-ed97557bae6b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_bf8ccb64-68d9-40ff-ad45-6ac1ad459395">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_4964ebe2-78a3-4c62-9187-083e3133dcaa">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_3b221996-ab22-461c-9fbc-d20fa2896b5a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_774c5b33-fac2-4ce3-9020-37ad3aff31ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_706d043b-0fae-4482-887d-172d87d8e9ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      id="F_f1f85531-ccba-4660-9a99-6956f8f0a386">&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;800,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_e3bb1f0e-268e-47bf-a6d8-3f243a360ebf"
      decimals="-3"
      id="F_c8625132-09c0-46d6-8ac1-5162a9e3b785"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
