<?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_0db444b8-5010-41cb-9cc3-97800f322344">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_dabac9d8-840e-4d8b-b6cf-03edc1874c48">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_cd96e648-bc0b-4432-abfd-c89c448a0f5c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_88bff859-98aa-4765-af7b-599966f39f0e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_9451e078-54fe-4bca-94f8-d2598fc42743">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_a731c678-4613-47df-a620-950c8afe2896">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_937c4dec-7ae3-4ce6-ad82-710fcd037121">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_014510f5-6e74-43e2-a764-192688fa4f30">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_91f49eac-3c3a-4baf-9ead-619d88aa4ad7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_d79cd6ad-d437-4378-ac28-609a38ceb686">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0db444b8-5010-41cb-9cc3-97800f322344"
      id="F_a4246ef5-a6e7-48cb-802d-899630f12a2c">&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;4,256,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_0db444b8-5010-41cb-9cc3-97800f322344"
      decimals="-3"
      id="F_08072eab-f46d-429c-b8ab-6762448e619c"
      unitRef="U_USD">4256000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
