<?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_9f64e472-e634-45ec-8f9a-1d68b0f61c0e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_60e68ad0-b8e8-4998-a980-2aef7339d713">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_9b586e67-82d1-419e-bd47-51b0790491f7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_421de1b7-240d-46f8-9467-8e97f7d6811f">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_fe3fd886-77fe-4b2f-b0f7-7e88d38fbdaa">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_a39bcbd1-dd95-4ca4-9cd7-2486d4080331">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_3640ed7e-1750-4163-a31e-556dbaeb68ed">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_a817be0f-7ad9-4401-a0d4-789e0068d67e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_a47f5d57-f55a-40ec-8914-36dbf4231ddf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_43434f65-dbb5-45d3-9cfd-afca627e74ab">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      id="F_aa46e7d8-b1a2-4591-89fc-a3834c72b208">&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;726,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_9f64e472-e634-45ec-8f9a-1d68b0f61c0e"
      decimals="-3"
      id="F_95d0b566-16ca-41ff-b4e4-e3005584c636"
      unitRef="U_USD">726000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
