<?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_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_24f39b35-3073-4532-98fd-73f9c59c55e7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_3c4fac68-3c89-4db1-aa02-168c8b82ec7f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_d6a8b568-24cd-43f6-a58a-bcadce7529a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_bce256f6-a15c-494b-b977-b48c98ad07fc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_7562c56b-274f-4b1a-808d-750d3ceaca1f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_d2ef4272-bd48-4b6e-b38f-1bdafb7677fb">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_37685ca1-1180-4a21-a6d4-1a4c18c13bfb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_b468966a-2527-4722-bdf4-69a03d2cb232">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_0094e68c-6611-4de0-b6e5-303667b6e4cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      id="F_0c8a9b8c-7901-467d-926e-567515354e9a">&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;2,295,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_8c89a8ba-b4d3-4057-a5d3-6bd6958b8cfe"
      decimals="-3"
      id="F_2662b33d-7510-4d7d-bfff-c9ce35aa96de"
      unitRef="U_USD">2295000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
