<?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_16f9d612-025f-45c0-86a6-21d5f2a829dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_9678ed33-4a3a-4df4-b81d-bf0fc5f36d90">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_9cadbe38-9dd4-4d7c-a70e-84a6a79063d0">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_823ac99e-5366-429a-804c-4f02be7c603c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_68406342-8495-4434-9f6c-b09825c58c04">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_de69e0bf-fc27-4534-bbf7-ec5a559f5fd6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_3cef17d2-4523-41f6-acbb-89ce4fbc2015">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_cf6fe70c-a619-404a-be19-c2225bb4593b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_d4e98632-c49e-4a45-accf-b4e18bab7600">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_30377b8f-7b84-4f0b-b109-12d46f9605b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      id="F_fe82f38f-a20e-47aa-b2ef-42c6eaaf07f5">&lt;p style="font-size:10pt;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,752,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_16f9d612-025f-45c0-86a6-21d5f2a829dd"
      decimals="-3"
      id="F_eccb62ba-8d70-40a0-a545-4297254936d7"
      unitRef="U_USD">1752000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
