<?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_5131405c-bb2b-4931-98f1-081c001ba822">
        <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>
    <ffd:RegnFileNb
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_16f3f87f-6f6a-4540-8a7c-051a3cce7033">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_960a3099-ccac-4191-b9f9-501952a2cfe2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_f79f6f68-3511-4db3-8c11-2dc9ae449599">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_621f4c31-2de4-4ba0-afe8-8705881ae64a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_dcfa14a8-40b7-4b46-b35c-87b8907932b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_7737b32a-a6e2-441e-b137-49db0c43919f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_80166ccb-6b12-4bed-85f8-de5bb49c51c2">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_075e319c-2066-4893-907f-56fbfbd5c73f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_616b541f-eec0-4507-b917-be6fa5d1a8b7">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5131405c-bb2b-4931-98f1-081c001ba822"
      id="F_596c96ee-6edb-4a27-8b01-48ba25856b2a">&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;1,361,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_5131405c-bb2b-4931-98f1-081c001ba822"
      decimals="0"
      id="F_13830440-4ab3-45d7-8ff2-2bc4ec5e8bd7"
      unitRef="U_USD">1361000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
