<?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_d83bfb53-54ba-4d07-b5bd-fd44d692fa01">
        <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:SubmissnTp
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_dcf20163-e854-4b3a-86a3-228e682f7354">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_6bbdf676-5748-40da-85f1-140d3da163e8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_927115e0-ba41-4f5c-be4d-36dd27d3d446">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_fc338f49-5f9b-4185-ba20-613310210f77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_cd53a436-7149-400a-94c0-37639192ad75">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_bf624963-21f4-4df5-aca0-ca28ee5a0cb3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_947bbdbf-78e3-4ce3-aff0-9397a1a69a7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_19ae6ed3-b903-4a7c-93d9-a895750a5168">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_9ab8f9ef-4915-44ce-9cf4-85f84b7817f7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      id="F_02914001-ae8b-40fe-b8c8-dc7f44a38a68">&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;4,857,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_d83bfb53-54ba-4d07-b5bd-fd44d692fa01"
      decimals="0"
      id="F_8c9f825b-3f21-4fec-8f40-e672d2b02ac9"
      unitRef="U_USD">4857000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
