<?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_0ab7249b-1f7f-4959-be99-0dbdc56471c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_175ace17-418d-4044-a0cc-aaf199f2edd5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_4cf94d1b-ffa8-42ec-b210-e590697a22e0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_601f1a70-fb9f-45dd-bc03-dd1fd71de3d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_b84451af-244c-406d-917e-76c272b5ddc7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_bf638e4a-5146-43ea-b148-3a83d707caab">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_effdb93f-1edc-4e07-b1ad-8d9520f8adb1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_f9dd9379-33ca-4e9b-8e61-50981e3c868e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_185f302e-39e7-4b00-a166-0aea370f8339">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_262c5569-732c-4915-b52c-96257329508a">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      id="F_fc0e5219-17fb-47d2-9ae6-990efbc0f5c6">&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;1,140,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_0ab7249b-1f7f-4959-be99-0dbdc56471c0"
      decimals="-3"
      id="F_84c750bb-59ff-4f01-b3a3-840f802db087"
      unitRef="U_USD">1140000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
