<?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_83de01b1-de56-454f-9f32-c1c30321ea54">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_ecaa9138-a1de-4730-837e-c6418ae6ab3d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_fb781004-1618-417d-9863-89a2106f686b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_1759194d-059d-49d2-9f64-a07dd26ce416">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_500f44ce-bbd1-4d08-a19c-034fa1a201ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_3f2f6d74-9c8b-4e37-b454-96b2e507fdc0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_65a3d57f-f604-4766-a41f-49f524c36d47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_d3bbaa66-1122-4e8d-b963-c193bd8ad306">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_6aae1452-c673-4834-b0c1-24d4e66fabae">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_6aae0cfb-5016-47ec-bd6a-1dc897cca5fc">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_83de01b1-de56-454f-9f32-c1c30321ea54"
      id="F_c91b3c1d-5a72-44c8-bf61-e6b1b4429249">&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;890,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_83de01b1-de56-454f-9f32-c1c30321ea54"
      decimals="-3"
      id="F_4f8a5233-4b50-4902-8ef0-faf680cb1977"
      unitRef="U_USD">890000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
