<?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_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_9ade95a1-9c8c-4099-a607-ffb66c7915b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_d204023c-414a-486b-89d1-06bb5dfa0d27">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_c8d1a051-2c6a-4409-aa02-0dcb71646d7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_31acfaa0-a02c-4485-ad5b-aae56f705884">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_d74c4f7b-3fde-4ec7-a87a-f029ed4e45c4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_dfb1f823-3736-401d-a20f-75d8a44bf153">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_4b8b0b92-3319-475d-9b3d-1e36de1dbdf9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_8a1daa92-fb54-48fa-bcff-1983130e294c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_3443a3c8-e06d-4657-8db9-66114f5a9a68">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      id="F_f69207dd-fa05-4c61-ad88-75a7ceba6189">&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;3,825,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_c4ecb3d7-d2d6-4048-a6eb-eb0e22f81aef"
      decimals="-3"
      id="F_9e8d793b-e953-486c-9bf9-5a3a34d30062"
      unitRef="U_USD">3825000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
