<?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_bbc3c1e4-256e-4bc6-86cc-46f88f420e63">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_950a4507-804c-4464-b8eb-a78b6a8498df">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_94fb5d54-c027-4e6e-af2a-8ebf32325adc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_553d168d-899a-4f7c-9094-48f0f700b4a2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_b0248f92-5acb-4eaf-b41a-c753d5405af2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_c45da28e-8c63-48a2-917c-15d09fb54731">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_2390f570-4194-4141-8ff5-a253a7f3b334">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_1a43766f-6564-44b5-a261-eb1928d5a074">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_2f3b590d-ed45-40b8-8ecf-2a5b2df53bd6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_f2c7bf11-de88-4896-b51d-b882833c1a5c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      id="F_64439ff8-657f-45e2-8139-464b0fe2311b">&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;1,000,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_bbc3c1e4-256e-4bc6-86cc-46f88f420e63"
      decimals="-6"
      id="F_bac489b3-5231-4349-aa7a-3d1b336647f5"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
