<?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_a109664c-0107-4ff4-8409-0a191a23e25f">
        <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:RegnFileNb
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_a6099ed3-4517-462a-8e72-80ddc8c38bed">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_a4b7e19b-ee60-4f42-a82c-b120c42b7c48">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_76f785ce-b6c3-4ffe-88d0-fd9bc9775ec6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_a33fcc67-9116-4b8e-9ca1-d7aa37cdcc3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_08e833d5-50be-44c8-91a5-30765245bfd2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_e1091d5a-ff34-41a7-a74b-a5d82aa4d3ae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_68e1c6af-f796-44d9-89a9-87ecc8b2af97">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_c01bd13b-7740-4659-bb52-32b67a0c5955">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_ce281316-0578-44e1-9ec7-f7a21a7332b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a109664c-0107-4ff4-8409-0a191a23e25f"
      id="F_b4edc0e0-242b-4bc2-a826-c640105e3801">&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;537,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_a109664c-0107-4ff4-8409-0a191a23e25f"
      decimals="-3"
      id="F_fec9e458-6dfe-402e-a231-5f5d9c8158a0"
      unitRef="U_USD">537000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
