<?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_f78b9c74-0adc-4feb-93a3-a88cea75445f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_25f4047b-439f-43c9-a934-5a913638b7d8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_33443300-57a0-4d43-bfc0-50ba5dd34c4b">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_33a66d10-5b7a-4fd7-b754-7f7036fd51d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_3033b291-bf8a-4777-a5e9-834e40149be4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_e890fb96-bd2f-4e6f-a3fc-4a1d9cbecf21">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_c1c2bbfc-1984-4225-a9db-3ebf88fc8cbf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_7d669203-acd1-4585-b761-b7a764904fe5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_32140ebc-da28-4144-8159-4216ab420958">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_ec338dd8-15b4-4497-94ed-1c214d11cba4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      id="F_071dfb06-2e9e-4ef8-815e-e03ff8eaed81">&lt;p style="font-size:10pt;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;565,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_f78b9c74-0adc-4feb-93a3-a88cea75445f"
      decimals="-3"
      id="F_d52b08c4-ab8f-4c5d-9408-00a5d0adbea3"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
