<?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_acac0daa-66c1-4834-95a3-8d7d1d300d8d">
        <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:FeeExhibitTp
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_909415c7-85b9-4360-9511-f38174a48b74">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_8bc62762-2b97-45a7-927e-f5fe9ece7ca2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_53bf273a-d9f0-4f34-badc-3065c0ffb4f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_1bb55e82-05cb-4e9b-b9a5-be4c787f08ac">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_8569382b-ca6d-427d-96e3-db178d8317cf">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_9620457b-4920-4beb-aa73-607c8fa364cb">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_d1824122-3167-46d5-bf60-29394e859fdf">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_a001dbf1-ca67-4407-ab4b-1d98efb65dd5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_d35179d8-556e-4c8c-a946-b1cbec8f748e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      id="F_07f4e1b4-dd46-4a07-8545-f217a34ef23b">&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;552,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_acac0daa-66c1-4834-95a3-8d7d1d300d8d"
      decimals="-3"
      id="F_e5392004-d048-4c12-8c5b-b0cbfd81e6f6"
      unitRef="U_USD">552000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
