<?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_84d9bed1-d054-4647-b7ed-5651344728e2">
        <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:EntityRegistrantName
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_c537b4eb-70a7-4467-9396-d57202f2c041">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_3ec7b422-26e7-41dd-924e-54d1d3f879df">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_a5dd81b7-be71-45d2-87e7-4cad840a6fd6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_121ea464-7da4-46ad-985f-324f4162a43d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_756283ec-a7e4-4c01-886e-106e5d19ce74">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_cbc385d8-8fc6-4315-b362-514de42db908">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_ac6d4003-77e4-41d0-8851-a0d5943c13c0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_73c692d3-c5f9-48ad-a462-e54a859a1ee4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_06f0c8d1-5c7b-46aa-ad79-33089284355b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_84d9bed1-d054-4647-b7ed-5651344728e2"
      id="F_49e09a60-9f3b-498a-b2ff-dc2c335d81e3">&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;401,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_84d9bed1-d054-4647-b7ed-5651344728e2"
      decimals="-3"
      id="F_a76c10aa-cad3-455a-8065-766f3aa6fa1b"
      unitRef="U_USD">401000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
