<?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_ddef86a1-d2bb-4397-9fe1-2e2d899e8413">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_665cac51-b1e3-407f-b3c2-a3f1f80fbd7e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_67471ac6-3614-4567-b7c0-d5d5834f3b37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_01003f75-a847-421b-93f4-d36ef5fc0c6c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_e08cd691-8074-4833-b1c6-e0991489c7d6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_99764c07-a00c-41de-87ab-18099b889248">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_25f1e257-5d88-41b1-bd15-5b78da1c3155">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_eeed3944-fdbf-4a8c-a030-5afb9ba7a6fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_2fd58996-c8a5-486f-9a22-bf97765f4011">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_732f5a24-22c4-4daa-ad37-429260ea0998">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      id="F_655f36aa-cc3a-44d8-a9c5-23e122499700">&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 $&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;25,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_ddef86a1-d2bb-4397-9fe1-2e2d899e8413"
      decimals="-3"
      id="F_14827b65-07c6-4614-baac-3f73da3781b0"
      unitRef="U_USD">25000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
