<?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_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_5e88540f-b731-483c-9959-40b4169d531d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_0dd78d33-4f6e-47fa-9944-7234a1dcc49a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_4274515c-912a-4998-9ca4-41ea88702ffc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_b09dec82-c112-4e47-924c-3e90f0d61371">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_048524d1-9cd4-4e9a-a373-1d8d12071b85">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_26434285-0785-44dc-aea9-c4ee59a44879">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_60976833-dcd9-46fa-89f1-20111c2ad8df">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_9da209bd-8e54-43ed-ab09-d07771ccd270">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_e3b38cd9-9369-480e-9844-64b60da23828">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      id="F_0c517522-92ac-413e-aaad-31404b878c1e">&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;5,864,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_664d7e7b-5b90-4aaf-96e8-3e1c38bcb457"
      decimals="-3"
      id="F_9b17c9cf-b388-42d8-b0a2-5b9afbbb19cd"
      unitRef="U_USD">5864000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
