<?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_149eb3d8-698b-4377-944b-d46b6a78f8b2">
        <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_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_63167504-95ab-4f5a-adef-c4d36c5965fc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_7591d21a-9a39-423f-9e2f-ca61b106b830">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_57d6fd02-1966-49b0-9d2e-8867f152d3cf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_361fc77e-7c8e-49ae-a901-c7351289476f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_0538bb31-ab87-4986-bb6b-98541d6f5695">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_1d3e19fb-6df1-49ad-a189-7d26cd101bea">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_0a6c28a5-fa77-487f-99ef-f783654f7805">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_d600703a-b408-4a15-877a-3642b04dc986">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_94eb1b6a-0ee4-4250-b5b9-b3a9f0234c7f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      id="F_fe813bbc-f78f-4666-aaea-e523fa539cb9">&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;1,971,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_149eb3d8-698b-4377-944b-d46b6a78f8b2"
      decimals="-3"
      id="F_816cf492-2c4a-492b-b265-122815b4b6cd"
      unitRef="U_USD">1971000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
