<?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_e3fe4500-73c7-4ee7-a281-243668f03d86">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_76c58a19-edb0-4bc7-8610-fc74f3ac221f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_4e8e6299-7275-438a-b59e-bad073762f7d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_89d98aa5-e1dc-4b2a-ae47-9efe51b15312">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_19e727ef-0407-4a7d-9a7f-d569878b9480">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_a4556b09-4a72-4df3-91be-73956af93f06">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_ebd37d6a-04b7-4cee-8459-f55d7faa768e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_41a06bd8-ad4e-4cfe-a6c7-4176957d3a0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_0418f9a5-4605-44b9-bcff-64b2ead7bebb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_e329d5b4-15e0-45ea-9f79-480ba89d4df7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e3fe4500-73c7-4ee7-a281-243668f03d86"
      id="F_926d0468-b523-4999-b53f-b24a6708e0d2">&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;5,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_e3fe4500-73c7-4ee7-a281-243668f03d86"
      decimals="-6"
      id="F_163d1e81-7c73-40b5-ad7d-38c5117ca76b"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
