<?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_5b679156-d6b5-49e1-b373-1b743d6af1d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_8c94fe18-c9ce-4369-8a1d-464412c4bcf9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_daa087a2-4510-4c15-abd1-b3759e71f6ea">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_acdf26fd-cc82-4184-880e-a6545070d2a8">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_06185e03-059b-4e46-bd90-bc5a27f9b733">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_72488e1a-981c-4729-a9c8-3f731d7f7f92">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_71406600-5200-42f6-9860-c860e3a5fd41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_37980662-16b7-4709-8d99-b3da42b11ee4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_05173c6d-d735-4f14-bb4b-2de94a020c1e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_795c01f2-fc52-4396-ad3d-b3d9589ed9a3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      id="F_3e2f2009-9cce-460b-a2d4-be03cc57da89">&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;7,500,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_5b679156-d6b5-49e1-b373-1b743d6af1d8"
      decimals="-3"
      id="F_9056c853-84e9-4580-8118-7909ce7a1382"
      unitRef="U_USD">7500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
