<?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_0d7c01a6-adea-4d48-92fc-9dc83efe2918">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_9dde71e7-a272-4f38-bca8-94c831cf7030">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_bf5d5749-bc42-4c7c-b61b-256f3656c48c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_eb8d65e7-753e-4e38-9aca-2c040b180755">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_2c80cf3f-32e5-4817-b603-64a20a95fcac">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_c58d5cdf-2a04-460f-8018-abed43588b3b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_ea2af3d7-5ec3-485d-af0b-c877533c5808">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_0d339b3e-4be0-4728-8267-916f2b933add">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_3a394105-b882-4ba7-a064-de34ba5f5fa1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_4e786cd3-7636-48b9-89dc-7c14c47872dd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      id="F_3b22429d-3a86-4f39-91e0-a2aebe61800c">&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;11,271,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_0d7c01a6-adea-4d48-92fc-9dc83efe2918"
      decimals="0"
      id="F_32a9fa8e-cd54-4c00-bab9-8b651919c827"
      unitRef="U_USD">11271000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
