<?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_9e9a1dc4-a887-40df-802a-298855d789c4">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_358e8507-a0bd-4b00-a742-43278c0d666c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_eab277af-4c5b-469d-bc94-7e3559c04910">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_8d931c4f-3c79-42d8-b05e-c05de4ada5a2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_46547a13-54f1-4433-a431-786cc86ca63e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_ba0ada2d-3edc-4592-af0d-8b6671b38d44">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_05ef6052-73b3-411f-8b03-6fef2f0c6630">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_78c6ad15-b1e7-4372-9760-fbcbc1555b28">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_02bc7246-453c-4eec-b5ab-8495ee749190">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_45696088-8e98-43fc-a81a-214d67c29c13">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9e9a1dc4-a887-40df-802a-298855d789c4"
      id="F_9592a590-4671-456d-9b3a-438c21acc9eb">&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;6,361,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_9e9a1dc4-a887-40df-802a-298855d789c4"
      decimals="-3"
      id="F_ea9b8b03-9db4-4e67-bb49-2328c471a73f"
      unitRef="U_USD">6361000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
