<?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_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_92c493a8-6205-4d31-8c7a-ec1c5077fe0d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_df62ee12-94d5-4356-8ae6-275d19de04c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_f186af5a-64f6-47cc-a965-2a1f5aa32c9d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_fb7c45ae-5c4f-4ba1-b05d-e2f51cf75e21">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_3962607b-64ee-4d66-ae72-2e76fc14e116">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_532b6115-f978-4b58-8b66-c2668e847b6f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_afe4c324-f475-4af3-94ca-42fa809c8769">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_74090437-451e-4589-949d-aff10c123575">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_272c58b8-17d6-4018-ad89-c0abf558c789">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      id="F_0e977990-991d-46ab-9a7e-91422811aa43">&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;40,328,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_f8dbcf8f-cbb2-4b5e-9c76-b215e1007315"
      decimals="-3"
      id="F_ed49bf6e-feec-4d9b-b403-a2fd7af34e67"
      unitRef="U_USD">40328000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
