<?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_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_5a43a6f1-ceb9-47f8-aca8-bbb9a88a1587">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_c84040ff-396c-4ef0-8717-be20c6303688">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_99afebf3-432c-480c-907c-dc1734d98169">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_2bd5adf2-99d5-4dd2-9603-a5a5e9a67e0e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_80e3214f-215c-4fbc-8b46-e39086f8ca49">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_91c0d788-5041-45b2-b493-b55f3ba500df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_b44de331-b543-4779-b0f9-d7babaa897a0">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_edb5bbb6-8400-4eed-8a21-b769f9bb6dc8">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_1a3f405e-c6c3-4925-907e-027db7121d1f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      id="F_12e93b57-b210-419e-a0be-8f2d976c4a88">&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;2,000,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_c7cd8a5f-e3d2-45d2-9dc6-f64a26862e48"
      decimals="-6"
      id="F_1a1d4e0b-54fb-4563-86cb-d24be2625b3a"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
