<?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_56d83096-c053-468a-89f6-172b1159e009">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_843355aa-593b-47f7-a764-36a8a150c188">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_5c97c321-8ace-48cd-942e-7d5141b20fd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_54cdf2f4-1ae6-4de7-8076-48f8cf9e30c4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_ce47d30f-e3d3-4ebe-833f-1f8f9a3bd9b2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_4f5584c4-2321-4022-bdae-7ec48991866a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_7b723d41-0a15-43ba-844e-79c39fe6e58b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_28efb1db-c496-4ed7-8efd-908307d44c99">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_073251a4-eaf0-44a4-adc5-222afa7ca12a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_6a124869-d265-4b9e-9490-b6c1e1a8ecd3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_56d83096-c053-468a-89f6-172b1159e009"
      id="F_f6341ebd-be4b-4797-aeca-4e0117d833fb">&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;1,670,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_56d83096-c053-468a-89f6-172b1159e009"
      decimals="-3"
      id="F_fe94e8b8-2b4f-48a7-a32f-7b3f69bc7ad4"
      unitRef="U_USD">1670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
