<?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_cbec5a9c-4c00-4f23-bbd4-19d4a8931640">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_a839f64b-e850-48e7-83e6-0876e8393494">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_60950104-038f-4101-ae0c-176a96b89f5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_d539241f-9a79-46fa-878f-d39cc7a5dc15">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_1610f37f-d4f8-4a10-9991-1733d03ed7ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_faeefa92-9cf2-4a24-ab0b-4671a91114b1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_01c3a611-1ae6-4ea5-8785-49cb4e4ca26e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_c033dd66-afe3-4d7c-94a5-65ffeb40558c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_fcb11e41-cce7-4ba8-b6cf-6d8f91b73a66">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_f4d6d926-5ec7-4ccc-bcff-53cd66b6116b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      id="F_84de43f8-0d1c-4a87-a9c7-479c005965af">&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;18,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_cbec5a9c-4c00-4f23-bbd4-19d4a8931640"
      decimals="-6"
      id="F_c13b72b5-e034-4c5e-a987-487f7f8a2295"
      unitRef="U_USD">18000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
