<?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_b0e32eef-c091-4d43-bc13-09d85b912f95">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_94b3266a-8b8e-4860-8abb-949f6b1a8d29">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_afb8b80d-6a4b-4bac-babe-45d361286047">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_6f8200ae-7781-4c52-8532-838b6ec3e2d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_7ca0da36-cc6b-4a4c-99a0-d624e321e057">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_757d5628-51cd-4e59-9be4-56f38294d1d0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_c19fde54-702a-4c17-8b9e-d8077312c22a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_2ec88280-77ba-4714-a191-ea0188c0451c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_a37e6b83-b1b5-49f0-83ee-8653321495de">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_72ed1069-dd0b-40ff-88ca-3d7c1ebec289">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b0e32eef-c091-4d43-bc13-09d85b912f95"
      id="F_216f9e02-9314-4b06-82a7-c38934f04086">&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;461,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_b0e32eef-c091-4d43-bc13-09d85b912f95"
      decimals="-3"
      id="F_1adc936c-42ae-4018-8632-c1a80a081eec"
      unitRef="U_USD">461000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
