<?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_9416c746-723f-4396-b4de-04a5d3209d1b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_2a0a4634-a62e-4609-85fa-7ccd90d9414d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_880df4ad-993a-4b82-9107-c125bb7ff224">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_9e11afdb-0dd9-4a3c-b6fa-1eb04f96be4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_704375e1-578d-44c7-b4b1-87bae9435041">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_e2d15c7d-7f95-49b3-959d-a0b9798b44dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_724a9e8b-e9c8-4298-80f3-98ffb3ebdb33">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_7b478862-1ea9-4c84-a1e2-d2e04d6bcdad">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_8aea8886-863a-44ac-b22a-7d5c7bc0ac24">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_ca19b816-d153-4177-8c71-aade5607da7b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9416c746-723f-4396-b4de-04a5d3209d1b"
      id="F_a0a219dc-ed53-4ebf-a966-7b04a8aa8c52">&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;2,200,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_9416c746-723f-4396-b4de-04a5d3209d1b"
      decimals="-3"
      id="F_5ab04c7f-66a1-4c3a-b61d-60d8f43d6f2e"
      unitRef="U_USD">2200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
