<?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_b5be8eaf-d7c2-44a6-bfd8-87555daf0099">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_869ea92f-909c-4e19-aee3-9cb676b56198">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_8b0f5a8b-9a62-46cf-9d9f-25777f7310ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_00eebb99-4116-42a0-afae-5e6b10279139">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_29d89504-727b-4700-8e26-5b8239dfbabc">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_7b6d9942-34da-4ed1-abff-05ea733993a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_0afea7ba-927c-467a-8cb8-f304194a5b69">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_62babe0f-5a25-41eb-afc6-291b66bcca25">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_9a3a9d76-f89c-4a7a-9a82-572704bba558">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_cc20662e-68f3-48a5-a8fc-08262139751f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      id="F_e50d60a8-a97f-455f-99b0-7165dc0ff7d5">&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;7,764,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_b5be8eaf-d7c2-44a6-bfd8-87555daf0099"
      decimals="-3"
      id="F_3bfce00b-ddb7-4d83-a4c3-dd030159882d"
      unitRef="U_USD">7764000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
