<?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_6ae6185e-98ad-4aac-a7a8-8edf602e1783">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_46a985ad-5863-44f1-a695-89d2e17852eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_474a9ffe-189a-478c-9119-c6561953c368">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_4ebfee66-00e5-41d3-a1dc-f13acffa0c7f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_b5df741e-85db-47ff-a8c5-a0a20b5fc19d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_d3a03f79-5724-4f4d-8c99-78486610745f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_a5d66cfe-7457-4722-8bf2-d04163cce397">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_4ee5cd97-ee1b-4f6e-939e-6002b4cf205e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_39174e9e-52e2-4c96-a374-8697660918a6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_d1d82ebd-9053-483a-8036-6aa107da74b5">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      id="F_b90e5a5d-f8d2-41fd-9512-13444b5ef6da">&lt;p style="font-size:10pt;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;1,473,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_6ae6185e-98ad-4aac-a7a8-8edf602e1783"
      decimals="-3"
      id="F_15def629-ae35-4730-911e-3a17ebe26d99"
      unitRef="U_USD">1473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
