<?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_36711e98-8d42-4523-9e54-61cf598bbd09">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_129c3534-2f5e-4970-8661-9e011f921850">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_3afb64e9-ec8b-494c-ab75-65fb7b0770d1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_2cfe3a67-17d2-4b4c-adff-402f5304599d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_50f943bc-f4da-40d1-88a9-80957d3d3fd0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_4ec2b693-116a-45c8-8af2-41ac0439c6bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_fe96fcc1-6d89-4a61-b28e-6b7545adb80f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_aa1193e7-82df-4a9b-98ee-d0d11dbaf715">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_19308683-58bb-4498-97f5-b7542865168c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_fe22e8cc-5154-426f-985b-a5fada99ec2c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_36711e98-8d42-4523-9e54-61cf598bbd09"
      id="F_bb22496e-86f6-4c92-8c1a-c5e370ca44e2">&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;9,000,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_36711e98-8d42-4523-9e54-61cf598bbd09"
      decimals="-6"
      id="F_30e7ca3b-0e7f-4e7a-aeab-9e4295766f45"
      unitRef="U_USD">9000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
