<?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_30b73c18-aedf-46f7-bb78-7fc1eaa32189">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_e62d8a1a-4be9-42d2-92ea-ca3bd4dea7c5">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_065f8681-77aa-4523-933e-6a1fadb8e7a9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_02e7c586-5fff-4cf3-871e-52d2d19f0fb7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_a620d546-b3f2-4b15-a931-10cbaa5547e1">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_b23ea2c3-ae12-485e-92af-8f40dcfc334b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_331c82a3-3dda-4e95-bdaf-81709497bf1f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_ec9b0b67-f478-4a87-bea3-6da92d201eff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_c40c82ce-a3ba-43d9-8e1b-924dea63a9dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_56acdec2-e4c8-46b0-b703-221f37450082">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      id="F_8541144a-9d00-47e3-9062-1af2b18e6ec4">&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;14,550,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_30b73c18-aedf-46f7-bb78-7fc1eaa32189"
      decimals="-3"
      id="F_9ab55f9a-5e88-4124-a2a4-cac34081ee7e"
      unitRef="U_USD">14550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
