<?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_cc390ed9-3a0e-4691-a608-23ef59a98983">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_51f79c77-7333-40c5-a8d8-3955879aeffb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_9f88214f-42c5-405c-8acf-2d5552d13616">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_d9f620e4-e800-4f08-9b69-51e9edd0126d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_e5523eaa-9d31-412a-a937-88474a42ee31">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_eba568b1-c561-4703-9e91-f021ea60685e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_ff43f8be-78fa-4199-81d5-760f7c66fae6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_fe9aed9f-1213-434c-872e-e4347c0442ef">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_7ea1015e-d4f7-44b1-8e34-e63aa516a2ea">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_d957b9a8-9e00-4e05-b760-415f347ee4c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_cc390ed9-3a0e-4691-a608-23ef59a98983"
      id="F_e984c383-4c84-44a9-8039-56da7d58654b">&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,673,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_cc390ed9-3a0e-4691-a608-23ef59a98983"
      decimals="-3"
      id="F_b66cc032-4fdf-46ef-b02b-d816e35e6ec4"
      unitRef="U_USD">2673000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
