<?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_f13fa250-83f2-4986-a8c8-7146eff707ff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_ede9d435-2809-4d3d-8a5e-820da1cb72e2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_c3405e3e-2805-4aa1-99d5-ffde42547cce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_8c47a529-bc45-4664-b57b-67b092f49e13">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_12613edd-0f3d-4da4-b293-f40817911d74">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_55cd0592-2a71-4034-b2e2-e647ef8e278e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_087ee97c-dacd-4eeb-8dfb-1640c6254195">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_3b3183de-6ded-422e-995b-492cbcdf2466">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_9907db11-4049-4e52-ad36-d93e2c4221dd">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_03cef75c-56da-4993-b03b-65b76d7f1e08">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f13fa250-83f2-4986-a8c8-7146eff707ff"
      id="F_fa5de1f5-0a67-436c-825e-65edde171cbb">&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;18,201,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_f13fa250-83f2-4986-a8c8-7146eff707ff"
      decimals="-3"
      id="F_f1e9a7a0-513f-4b4a-a7b2-af3eeb59a739"
      unitRef="U_USD">18201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
