<?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_850f7b39-fbd0-4547-adae-0d5ed7679c3e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_10e233cc-1b2c-42b3-a281-716ae7336811">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_340dfcc3-e1a8-4e44-9f8d-e12559fcb1e5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_c647a658-e5b9-4e56-84b2-a9348288be58">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_861294b5-100e-4f86-92c4-d473e8dd13c0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_081c136f-929d-4d04-b991-732c53121da2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_82d5d0a0-9724-4825-83cb-ec533f19bb99">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_9bad9d72-85e3-4b3b-89a7-f17f4f31bdec">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_6010b4c8-03ed-4b05-8ef1-0322545d1519">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_207c006c-3a9b-4e15-9163-712f8f54048f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      id="F_1e59b060-48d9-4a9d-80a7-3e4b541ca6f5">&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;500,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_850f7b39-fbd0-4547-adae-0d5ed7679c3e"
      decimals="0"
      id="F_0b9d00d8-50bf-4fb2-908a-12a9b56be10d"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
