<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_125302bd-c825-4c56-8ffa-385a9654ee13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_0dba629f-2010-4d84-baa8-420c3912cd1e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_8537ce47-9f4b-4691-9d6f-0aa9b6c4b4a0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_ebb88a27-3b02-4f59-93ec-887746222395">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_7daa9922-e8fc-433c-9d34-f86c14fc104c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_175cdfc3-20cb-4299-a850-f9039a302c8b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_1eaa848b-713e-486b-bda3-2ec5350b70c3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_8b3296bf-f87a-4b7a-a6ef-08c79365807f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_ac1d6cd8-b007-4268-a263-080d515d5f46">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_55411f20-af0a-4842-b779-0caf7bc4dd82">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_125302bd-c825-4c56-8ffa-385a9654ee13"
      id="F_0cf3ac78-c132-4536-a688-87fc14739100">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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,001,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_125302bd-c825-4c56-8ffa-385a9654ee13"
      decimals="0"
      id="F_3983c083-8fb7-4b4e-8f6b-f21ddedcb5ea"
      unitRef="U_USD">3001000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
