<?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_2614697d-99f1-456b-a29f-11f07849b94e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_334c38d1-204c-43b7-92b4-bbf735593583">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_fc406ae7-b14e-47a4-a4fe-511b4d312ab2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_9a64392b-25b1-41ae-9784-09d404e7e4c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_1f163952-1685-4e9d-abcf-96c28f9e4438">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_8f90ad9c-ac38-402d-9a5b-e7b5de797400">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_2e3b2541-2a03-4054-813d-9ab220a913ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_0bf0406c-55df-4ef6-8c23-719ff8fc5e3d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_00679bfb-864f-42b6-bb8e-2f39095d033c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_167fded1-badf-427d-86c2-863b3472a63a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_2614697d-99f1-456b-a29f-11f07849b94e"
      id="F_e67b899a-3527-4a59-a150-d879154a2b29">&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;5,973,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_2614697d-99f1-456b-a29f-11f07849b94e"
      decimals="-3"
      id="F_d264d9fe-fc1b-430f-b628-67aa9c36f3e4"
      unitRef="U_USD">5973000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
