<?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_0a9f3424-8a2e-42e5-9acc-e578903461a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_0220dc8b-94f6-4321-af1e-45b210f6e7f4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_497eae3d-9c7a-439c-9181-52dd0c05fcd4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_3e4c53f6-efa2-4c62-a827-4f212e3195dd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_ff92df96-251d-48ae-99e4-a122a6e34010">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_dd0f1568-d839-404b-818b-36df24a79fce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_b02b9a83-357a-4cb9-8101-9ef790a891f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_bb7f1a8b-2d90-44a2-86b7-c2be3f2ff3bf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_685663ee-012a-4c70-9594-002d40b7de43">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_2da5a824-d4c0-4ce9-9495-cafd3a1bc083">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      id="F_73008a67-6a21-460d-b7b2-59b4f8cf230a">&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;6,765,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_0a9f3424-8a2e-42e5-9acc-e578903461a8"
      decimals="0"
      id="F_4aecaa9d-8cf9-4382-bc07-acb65bdb2861"
      unitRef="U_USD">6765000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
