<?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_9abf409c-6af1-4dd7-b739-fe0adf7dfca7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_94d52e23-13f3-41af-9b24-eca8f4dd9b8a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_ac4b10d7-1b12-460f-afe2-38176b794e1e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_9038c64a-a6ee-4e8b-b99d-5d83bccab6e9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_c0325d9c-1b87-4546-ba1f-65310d354f8e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_929e7653-c301-4a45-b48a-61fdde33187e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_717c4d59-3e62-412f-a1b3-3070a82c3dc4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_e2acadb8-7f80-45f5-babb-2f3342fa1250">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_ee186d75-82ca-4b0a-8623-7fb706635bf1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_e855278e-54f8-4dc0-aba9-ef4d7d0de343">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      id="F_634a1716-1aa2-4a6b-89c1-7feb34cc2559">&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;4,980,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_9abf409c-6af1-4dd7-b739-fe0adf7dfca7"
      decimals="0"
      id="F_2ca3afc8-6c2d-42e7-9995-4b3e99326cbc"
      unitRef="U_USD">4980000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
