<?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_44c84759-6bf0-4bdb-a032-427ddccd32e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_31d9ec24-14d2-4f97-ac8b-daad674209ae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_fc7af9d4-6b9e-4540-bdd7-0d89a1d5e8df">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_aa0aa510-ca9b-4433-bc15-a887e6abec94">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_430363f8-c246-4680-bd21-00389d7ce483">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_c125f866-cc1c-4dcf-8a47-484d55cde234">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_809ef253-3d2a-4b92-b3c8-5f857096eab7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_a194400c-9f1e-4832-a296-b4b6f83c8a28">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_fb95b47e-5974-45b4-972a-7f727051ea69">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_c623f0e4-0188-4a8b-a45f-92ebdf184a6f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      id="F_df4bfdee-b57a-4821-ba3b-6a550ecf0927">&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;777,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_44c84759-6bf0-4bdb-a032-427ddccd32e2"
      decimals="-3"
      id="F_331451be-1523-48af-99eb-280377b1b101"
      unitRef="U_USD">777000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
