<?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_8efab162-f7a0-4fb4-a491-f481c008036b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_edc1ea9e-0bc3-4885-8560-f1f07ae29978">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_f6013bf4-1f1f-43c7-8abb-7e026efcb9e7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_20a5e9b6-e83c-4af0-bbf1-b1568e70c67e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_e19c94cc-179c-4b0f-b8e7-c6781ad980e7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_e615cb1d-67a9-49b8-b4b2-b1fe13596204">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_2ecc0792-f89b-4fc7-a045-c12d81fd5294">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_6396113e-191d-4197-b1b4-fb9ef4491ec8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_06bf53da-cc88-49c9-a0ab-605e556313fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_87b888eb-7bef-4049-912b-67d4514a460e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8efab162-f7a0-4fb4-a491-f481c008036b"
      id="F_c0bbd092-121a-480f-97e7-2419469e7846">&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;1,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_8efab162-f7a0-4fb4-a491-f481c008036b"
      decimals="-6"
      id="F_7b943332-6d67-45dc-94ff-87a6991fb215"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
