<?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_43ec966b-d66f-44b3-a780-ee02e7aa2943">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_1cd7e7bb-5320-42d4-81eb-fc995d68353f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_dd32f6d3-e200-4584-8d86-b7ac1d5ba186">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_6635d6c1-d314-444f-9eae-8bbcc4f108df">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_4dfa517b-6c0f-4bb9-8a45-7f64e6ea1392">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_4d8b5b0e-9d26-418e-ba17-bd6053091d36">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_ed2080aa-5071-412a-8738-3d9d1a2603c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_2d861c52-8645-4426-a1a9-2c4a7e1be9d8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_4514dd7a-26df-4309-b0e7-cc96c0bc51b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_615b54af-8c86-4d47-a289-ba20e1403b80">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      id="F_46c2adfd-2302-4809-975b-f0ed19a02842">&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;9,678,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_43ec966b-d66f-44b3-a780-ee02e7aa2943"
      decimals="-3"
      id="F_ec81e49a-2472-4c45-b5bc-73695c241762"
      unitRef="U_USD">9678000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
