<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_c28858d4-65cb-4145-863d-ca68509972dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_853d2cd2-95ba-4e9b-bbf2-2d572b540241">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_964591db-bcd8-4dae-b715-fb17ab217260">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_7e188b7f-139f-42cb-a77d-74cfc3a48792">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_b0bdfcaf-c503-46cf-9242-8955f3d9a2f0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_b594def0-a73f-449b-99e5-c13392acee82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_b87a0f7e-836c-4653-ba63-73525cd33325">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_2bc184c5-df0a-40ff-9af6-59c2fe31722c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_34c7a24a-b439-44fe-ba9f-355ff00217f5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_46f4ae0f-4bc6-4606-ac78-bf74e929f8bf">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c28858d4-65cb-4145-863d-ca68509972dd"
      id="F_0bf6de8f-27a4-4d75-9387-b5851c0668d4">&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;2,290,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_c28858d4-65cb-4145-863d-ca68509972dd"
      decimals="0"
      id="F_b3289074-5872-4984-813d-5adfeec8ad1b"
      unitRef="U_USD">2290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
