<?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_491e240f-14c9-4518-9e62-14ade4287e3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_ebbd78c4-a693-4e82-b01f-7bd46a9e8f32">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_9914ced2-659b-44f8-8cf9-5208738953de">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_3e6ef0de-1878-44c7-9467-8f0374d64dbc">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_128c5b02-e394-42b6-8322-32accb724e80">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_f4a8aab9-91f5-4898-9a07-65a594826296">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_24733059-014b-4fc0-a28f-7c5e9195ac36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_c1222edd-e3b9-487a-b604-d8a795894694">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_b60fdf88-4596-44e1-bb03-fdc3c349fcf7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_16988de1-2d30-4858-9b26-4af6800f4a7e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_491e240f-14c9-4518-9e62-14ade4287e3f"
      id="F_31950915-183f-4d0d-8460-76a01444a121">&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;250,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_491e240f-14c9-4518-9e62-14ade4287e3f"
      decimals="-3"
      id="F_dbdc90f6-ce1d-4c34-b0d9-0862d11b6bb5"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
