<?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_0b2beb39-c5fc-4071-98d8-85c9058ffe72">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_99711d0d-7657-4118-b36a-5c79e7d7bce2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_bfed95df-40e2-419d-a7f4-86ab321c61d9">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_e5f47a37-4968-4b02-a665-7503a73d272d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_43a774f7-dd98-493b-81a9-fa01d01fd454">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_04c0a110-93d2-4a51-a619-4366020d0c27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_504f3cbd-8d70-4962-877b-c52174fbca0a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_2061a0be-371c-46ba-b24c-6127fbc290a4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_65a86e93-b39f-40f7-b46f-efdef932a74e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_8c8cdb79-ed35-4dbf-bebc-53262adb8493">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      id="F_26981494-b74c-4bed-895c-26ba9bf49825">&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;6,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_0b2beb39-c5fc-4071-98d8-85c9058ffe72"
      decimals="-6"
      id="F_c9909d2f-b5a1-4934-be75-bcfe91de7420"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
