<?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_749de9be-685e-4643-b411-28ebc6105f5a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_79b6a9ee-69ec-4f6e-9eba-9a2303b1e9f0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_9dcfe099-03b0-4c21-b75e-1e3c51b62c83">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_ee0ba14a-4812-46bc-a103-e5da488d74dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_63c71a1d-be98-4db0-91d3-5ee05dddf19b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_c2911032-a9a2-41ce-a02e-b8c198cc02e4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_20438b0f-63a4-482a-917d-71114faa64eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_50074956-5ca7-4ad3-8bec-e4aba690df16">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_408e436d-5768-4dca-94b2-6bff8830e719">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_f3ccbf13-4c7e-416e-9ef9-fafee5c387e9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_749de9be-685e-4643-b411-28ebc6105f5a"
      id="F_14027835-d809-40e2-8759-9e3037fc2e89">&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 $&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;7,307,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_749de9be-685e-4643-b411-28ebc6105f5a"
      decimals="-3"
      id="F_8f488240-f570-4853-8275-c349a24f3e88"
      unitRef="U_USD">7307000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
