<?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_c522e5a2-68de-402f-a2f2-1c62f85b80ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_c7ff19c2-686a-4ce3-ada4-7004895ded4d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_bb40feab-6a4b-4b7a-b521-d1a176c42607">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_1b2c47e9-0ac7-482c-93c7-128b072f930b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_c0a738a7-8ba8-4c39-8757-895a8f738a83">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_b52b4cb5-cacc-46db-955f-d67673cde9a4">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_5944d28c-d6e0-4678-bbb2-e11637d74b6f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_862544eb-f515-42c8-992f-ce74b05fb5fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_0c79c366-117a-447c-bf10-0971b982b382">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_f60c75c2-cc89-43b5-8637-c459a95fb634">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      id="F_430c17f4-c71b-4b00-a534-7f56632a10f9">&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;29,381,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_c522e5a2-68de-402f-a2f2-1c62f85b80ad"
      decimals="-3"
      id="F_7b3712db-b96e-49fc-ade6-82566387e61f"
      unitRef="U_USD">29381000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
