<?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_c586a4e2-2739-4219-a2a0-aa7c15e53013">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_8f08f99a-a0a0-4c73-ba66-1007ca20df5f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_71879722-8267-4dd6-806f-f29379c5aee2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_fa3b7520-1653-47d7-8c47-05f6b892985a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_2b12101f-d69e-4175-ad62-dbc400fd3f6a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_09ad0924-e91b-4445-99a9-c9490fc5f000">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_73995f6c-da30-4f22-bc19-77847e00faed">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_14f06937-71a5-42fc-bd82-c0e3284cc74d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_5d970c02-2c0e-48df-96f1-d1154c113392">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_a211b6d2-48fe-4dfb-bc1a-f24b15a23f6c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      id="F_49cf4cc6-ad12-4c63-9e05-00fa0924875d">&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;4,636,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_c586a4e2-2739-4219-a2a0-aa7c15e53013"
      decimals="-3"
      id="F_1777f61d-3c2d-4241-abfe-3cbbe88f7dc1"
      unitRef="U_USD">4636000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
