<?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_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_f831a5ec-6599-43f3-858f-5522c060dbf2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_c1e854cd-142b-4653-8706-f539688ace46">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_ad1105fc-36ea-4406-98eb-c586fbb2ea35">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_01567fcf-dd4b-4a8d-bfd4-b3ce3c7e1efd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_050927ce-1641-4785-9a9c-d289a0e2bfdf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_40867eba-bb8b-4ae8-a310-6a2494c75d49">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_fb56d8f1-5e0c-4909-bb94-5aeceeb48739">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_8c87b01c-0b3a-49c2-9f64-7b7300c1f5b7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_f990f98e-b935-4d9a-a347-ae60b6cc142e">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      id="F_5cea0939-35e5-4a61-8965-853e9b45275c">&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 $&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,302,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_b5edb6a1-d93f-4d6e-8fef-88da4ba757aa"
      decimals="-3"
      id="F_54895fa6-7675-4ae5-9e48-2a753ccb524f"
      unitRef="U_USD">5302000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
