<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_8685b3da-4621-40ea-ba76-24512566864c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_cdd4c36e-cb83-4665-93b2-a61587cb3ede">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_51c42595-8249-47d5-a9fb-ee8b2f24ed40">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_46ec6112-59fa-4a37-b316-c89d0c205baa">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_4063c06d-551f-44ed-8440-11c6092b2ff9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_e9217dda-6b58-4a66-bb82-649f65518743">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_31144c49-9fb2-4dc0-b4ea-c8816c306b81">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_821331d3-ad37-429d-8682-8e0d4364bacb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_72876b3b-7c66-4b59-9523-f242da15c3c9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_d1f58081-c7c0-4e4a-812d-75e99d370a65">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8685b3da-4621-40ea-ba76-24512566864c"
      id="F_b2b5d0c8-de6f-498e-8871-bcc7cb932dcb">&lt;p style="tab-size:26.66px;font-size:12pt;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;550,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_8685b3da-4621-40ea-ba76-24512566864c"
      decimals="-3"
      id="F_352a83fa-059f-4887-b9f8-3f662b5ece5e"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
