<?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_535af362-33f7-464d-8199-07a2addec9b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-30</startDate>
            <endDate>2026-11-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_e9ec29b0-8e9e-42a2-9ddb-adc3c25df4c3">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_ba1f2ff8-2a58-4879-8275-bf93a71c8a6a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_0e226061-6453-46ce-9bc5-e69732c7b08d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_2a74f495-0dfb-4867-8990-c8fd0efe3620">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_2a9b1d99-da9e-4332-8e07-f1062593f643">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_b16f8864-cfec-49ce-b01d-15fefa78c60c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_144749e6-b44d-4989-b0f5-d9317cb75043">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_63529a95-31ba-4873-b380-b885850ffde4">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_3a61defb-eb48-41ee-87dc-e0bcd9ea1b37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_535af362-33f7-464d-8199-07a2addec9b2"
      id="F_5f7c2ca3-3d3f-4e3e-8c10-6045fc178c5d">&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_535af362-33f7-464d-8199-07a2addec9b2"
      decimals="-6"
      id="F_b7c02f37-42c1-4d2a-89fe-3661eb48bbac"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
