<?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_a116d181-1ed8-4745-abdd-083d84679ed8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_31de6d7b-2e5e-4814-bad7-4ae5da3a7764">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_620a1797-3aa7-4d84-a754-7d22859755d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_b26fd9c7-53fb-4fa1-a541-7026e51e822b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_21df55fe-208f-4178-b1dc-f8e383d359fa">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_9d05aa3b-810c-471c-842f-f2fd4c4fdc46">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_679b4dcf-57ea-44f9-8989-be02987754db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_35600c02-7b47-42fe-9e62-3a32aa47ab27">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_743bccc9-f0c2-4a56-bb67-91c8a32fe7a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_85826565-7a1c-4285-8dba-cb4896581dd0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a116d181-1ed8-4745-abdd-083d84679ed8"
      id="F_a2108800-837d-4bd7-8cd9-2a6b3411fa7b">&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;10,845,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_a116d181-1ed8-4745-abdd-083d84679ed8"
      decimals="0"
      id="F_30c5e84c-f8ce-4ef6-ba62-7089ef16b008"
      unitRef="U_USD">10845000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
