<?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_a90dd3c6-3dae-4f95-9859-a76b89f37a88">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_aa3d52ba-1ebb-44f0-8861-274162b57d76">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_8fcd1617-a9e3-4660-824f-ca9cb9761b8d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_b6aed8b5-efbe-42bb-8d75-377791c6fd05">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_1518c008-37d3-4970-a3f2-350826ffe8ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_46f488cd-3454-4733-8247-f6e825a6daa0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_27ed2463-e71c-465f-9621-8037612bcab0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_c0771d92-2241-4aae-a7f7-05d0302680d6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_2d59038b-e1f8-4a21-9015-1e6bbe39ce02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_161af53c-daa9-4ac3-8eb8-d2187d5e9206">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      id="F_b4c15228-f84f-4d4a-b330-af9a89881ed3">&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;22,658,200&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_a90dd3c6-3dae-4f95-9859-a76b89f37a88"
      decimals="0"
      id="F_159bdebe-3fde-438b-823d-795d2ed41273"
      unitRef="U_USD">22658200</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
