<?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_9976c6bf-44be-4011-8db5-06acc849327a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_c9bdaf3c-3315-4d2c-ad0b-16dd393f2b6d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_c371a539-eccb-4972-aceb-ce91a5cc4a47">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_77860f73-b491-4ffb-9aad-830003f73611">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_483416b7-3259-473a-8d6c-93a1c577a1c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_c6298fda-ee1b-4363-8a58-47fc7c3b0d72">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_457f2a5e-42ac-4f69-9a16-105780d9b7ab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_f7d6384e-f43a-4b26-92ce-4240068d5c3e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_4df57723-64a9-4e9d-81db-db9ab3aa36db">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_d4c75f54-90ee-4a5d-8f97-323067f91d05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_9976c6bf-44be-4011-8db5-06acc849327a"
      id="F_1a8e3aeb-7325-4bdd-80c8-055e0027bf38">&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;360,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_9976c6bf-44be-4011-8db5-06acc849327a"
      decimals="-3"
      id="F_7fbed6e6-fad4-4de3-9824-8577ce5a48a4"
      unitRef="U_USD">360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
