<?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_57272780-9c9a-4269-9f60-df1a6cbf766d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_75b62256-70aa-4a32-9b3b-73f3bea64d9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_2b5e49b8-052b-4e35-8dda-245aa726bece">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_23753464-c86e-404c-82df-bb467903fac2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_a5a06d8f-6c83-4183-a253-1b510bc5b6a7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_4e3592b9-817d-4511-aca7-03670eda42ba">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_9daac09c-7769-4ef9-914e-22a7688e5f44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_f5e1ecf0-3718-48bb-abb8-8c594c4840b5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_a99398af-bc93-401f-8a21-ee2a710e934f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_9c69dc1f-122d-4341-af7c-b7112aec1543">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_57272780-9c9a-4269-9f60-df1a6cbf766d"
      id="F_0626c029-ea02-42e2-9a8f-f6dd97aedcc8">&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;3,000,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_57272780-9c9a-4269-9f60-df1a6cbf766d"
      decimals="-6"
      id="F_8efe7c48-cf78-4410-ac42-aa7afe0a6d20"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
