<?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_f169a317-f399-40ca-bfaa-8deea1ad20e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_215ae5ef-2101-4cc2-84a3-55ab9801ab2b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_9879c99f-31cd-4c7a-bc00-9d7ac1e74565">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_1dc8167d-7588-41c2-999f-712ad43bb5ef">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_085f9505-89e2-4351-8e20-dca47f433d40">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_d4d5e45e-6255-49a1-bb6b-d59c84194689">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_6914bb64-f9d5-40b4-b78c-26474b6010d9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_91b2587a-6917-4566-a4bd-c234fceab35a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_f0d25605-5fc5-4f6d-9909-17566db7d20f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_679cccbe-5cc4-4e00-b109-996f115c3556">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      id="F_326b643b-e4bd-428b-9b2a-1cf2001c00bd">&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,259,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_f169a317-f399-40ca-bfaa-8deea1ad20e2"
      decimals="-3"
      id="F_7cf7be09-2f0f-4877-a8c5-deb98a92b8a2"
      unitRef="U_USD">1259000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
