<?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_1b257731-9447-47d7-a069-3712003175d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_af2361d8-0cf2-49e7-abc3-b3c51f87235c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_dca22fb4-c81c-4e89-8261-04c8b64cd20e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_473673e9-fbb9-4dbd-8136-dcad022cf338">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_53797dbf-f605-4d29-a424-8c964629bc55">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_a3f3852f-8ed2-4c91-a404-b9135f64c9ff">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_bce24cba-8863-48ed-a1cb-ab72cd685a55">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_6423c424-cc7c-4ab9-81b6-39b50b8c9981">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_4092b191-3c31-4c75-8a74-7f4439e637f2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_fe565641-846c-4e03-b5a4-1d2b18b36daf">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1b257731-9447-47d7-a069-3712003175d3"
      id="F_736b6d23-a78c-4e6a-ae81-7ee73a520dd7">&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;6,333,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_1b257731-9447-47d7-a069-3712003175d3"
      decimals="-3"
      id="F_7b41b545-7e87-4cb9-bb9e-bb5fc7c25b0e"
      unitRef="U_USD">6333000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
