<?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_00a89ebd-b11e-499f-bfbc-e3a3995be7de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_1d32b7ed-c9db-4ce9-87fe-e29483537453">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_3b692a34-48cd-4b07-bc48-2dea3bd85ba4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_49a8e764-0155-48a3-a37f-2ae92ccab0cc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_b3d7c039-6cf2-44dc-9b56-9e81477b02ad">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_091d75ba-31eb-4caf-98b3-2cfa150551ef">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_f283ffe1-3149-4871-88f3-4f0353ee4a13">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_701ae87c-e080-4e64-847b-802e9906d7fe">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_7065898e-b388-487b-b7a8-2c517e330acd">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_c57cc31c-8340-455c-93a1-fec2de267c0f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      id="F_53346af8-9e09-4def-a149-78eaf890ce03">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;2,535,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_00a89ebd-b11e-499f-bfbc-e3a3995be7de"
      decimals="-3"
      id="F_8496fa0d-95d2-4fbf-a532-708bec977813"
      unitRef="U_USD">2535000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
