<?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_43931b36-548c-46be-b107-bc7139ab57f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_ae701fd2-aedb-4881-9481-62e2e55b016a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_f959003c-7a32-4d1e-ad81-233f73ffcefb">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_f9d8fb3d-e5da-45a3-acf3-50d2b4d767f7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_45525c73-e796-4e58-b71c-ddc0b06dc03a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_5257ce9a-779b-44c1-a421-72bc8508c547">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_6e20edd4-bf1e-46d3-b7d5-41c5be8269b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_ffac7b9f-5f50-489b-adff-81c614d94707">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_b3445a2f-a955-496d-aa35-8d45f677b016">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_52e35d31-c4e3-4eda-b645-d18d0d7e20b9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_43931b36-548c-46be-b107-bc7139ab57f3"
      id="F_cc734a7d-badc-4951-a16e-2780847814d3">&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;6,567,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_43931b36-548c-46be-b107-bc7139ab57f3"
      decimals="-3"
      id="F_fbff3482-0184-4afe-a750-1e6ee030580e"
      unitRef="U_USD">6567000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
