<?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_885432f2-9e0e-4b8e-b2ae-d4f491415cfb">
        <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:OffsetTableNa
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_205d56f4-e0b6-4e55-887c-1b734b274e4d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_f572ebfa-483f-4832-a44a-9fec5a73b989">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_805b8793-974b-4ec4-87cb-4a39505585fa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_3a5944d5-4761-411e-947f-97b903e687d3">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_4ea9f451-8527-4176-a099-e7498e09942b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_7cb3c168-d0df-486b-b7ba-45797039aa2b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_962a7919-b7d6-4b75-9dd0-c9b7283d80c7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_18800905-1c92-453b-b836-2541f4c4f60f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_e799533b-963b-4e1d-9819-b3241e4542fb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      id="F_06216870-7e95-4a7e-9f39-b1a0971c0703">&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;2,486,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_885432f2-9e0e-4b8e-b2ae-d4f491415cfb"
      decimals="-3"
      id="F_ffc8104e-4e36-4033-81a3-6e437637befb"
      unitRef="U_USD">2486000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
