<?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_ac6513fd-0a86-4a37-a07d-28b5d7305976">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_aa3d872b-7121-47aa-ac01-75dbfd641ce3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_622df886-4b88-4e4b-82c0-7777af446591">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_acb0793d-000f-451e-9e33-8f595a2b5ef5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_37ccb258-c912-423c-a130-40be33a15f5f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_d6f39bce-a88c-44f9-9942-13817e8b2165">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_86cf4989-8300-4cec-bd60-df1f1f20c682">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_c811f7ff-2005-471a-881e-4e353d147d27">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_193087d9-4c87-4980-b7f4-36fac25c4460">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_d305d329-1792-4470-83ea-4ab0ad0c2ee7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      id="F_ca5b4604-64dd-4f1f-a8be-ae418c688d64">&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;4,037,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_ac6513fd-0a86-4a37-a07d-28b5d7305976"
      decimals="0"
      id="F_a8f7fe8f-ba79-4d85-b16b-f13ae7faac3c"
      unitRef="U_USD">4037000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
