<?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_f9f98e1e-9f34-477c-91ad-97fa352187e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_ae9424a0-823b-439e-b7cf-3ccb90eb30e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_9fec1ac4-f5ae-48b1-97ec-9a9539153089">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_878b01d2-83ab-4ab8-899c-0b6cbb6940ea">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_e194fae6-96aa-4037-b9ed-ef1d1644fbd9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_7cb1d291-7564-4457-8ed7-7703dff537e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_3bd62432-b4b7-4255-9f78-8216212c756f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_01101dac-0192-40c3-a865-154582ca94c0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_ce2ba350-4f10-4740-a1da-baecae62f8f6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_9071a259-135f-432a-91b4-c9d880340a55">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      id="F_dee10f18-4ff4-409f-b1de-ed7534801f61">&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;939,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_f9f98e1e-9f34-477c-91ad-97fa352187e3"
      decimals="-3"
      id="F_47a694e0-8080-4900-9f1f-4bbc0033b187"
      unitRef="U_USD">939000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
