<?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_81db2d97-488a-483a-be72-56cff053d08f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_d94d2424-328c-45c7-be56-8562d7ed237e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_d0a76f33-e2bc-484f-830e-f43cf050805e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_de129bdb-2083-4c40-a100-b34925441a05">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_dcae7e10-f2b8-4447-a5db-34b9e46dc550">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_5daef844-35a0-4d30-bd01-b851835d79ed">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_70fd338a-471e-47cc-949d-09c37989008d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_835ae86d-8e06-4af4-ab46-5100c390d75f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_7ac4dce8-7510-4992-bd99-6d8a967286e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_1ddf026b-853e-40c5-b293-c78854141a71">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_81db2d97-488a-483a-be72-56cff053d08f"
      id="F_122e3be0-31a6-4e0c-9faa-2a1c620508e1">&lt;p style="tab-size:26.66px;font-size:12pt;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;653,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_81db2d97-488a-483a-be72-56cff053d08f"
      decimals="-3"
      id="F_a8a5f819-0c66-466e-9d6f-adea8e89ae0a"
      unitRef="U_USD">653000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
