<?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_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_7495913f-141e-4408-a086-0f764bb6ba04">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_40a69d73-7246-4cf1-ad86-8ff54d23f199">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_30a4309b-c65a-4a30-ad80-d8426274a045">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_c8a26f36-e06f-4731-bfab-d5fe112dfd65">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_e79d5d2b-2930-42f3-862f-414c40e497eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_db560bf9-713b-439e-8ffc-143a72fcd160">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_997ba2b8-8c30-474e-848c-7e4d34eec5de">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_f1c76fe7-ee44-417c-8709-19ede99f497b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_dd524c70-a9ea-4b61-bca5-9661142b50ab">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      id="F_db94cc08-4bca-44bd-bf7e-6991934682c9">&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;5,712,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_5a41cab6-0bd3-4b60-a49c-e4faa0141ee1"
      decimals="-3"
      id="F_e216306e-d123-4c79-a5ca-80c96c876428"
      unitRef="U_USD">5712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
