<?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_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_212d7869-edab-4690-8168-45111d6cbeca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_3cbab283-8998-436d-bf62-8b0ade17de14">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_d0f92178-b3bd-4dd4-b21f-b410effea534">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_1f5873cc-7a6e-46c5-94f3-80e6c8d75a49">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_8cc9f1d3-c1a7-4988-9103-17e3cdf06228">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_816cbcae-1f8a-4704-96df-e5102fa69d3c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_efbbcddd-7ab9-46cb-9c1f-be8daae24cdb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_43334f54-8d76-4cf5-a24a-fd5516a6ff5d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_9ea11f4a-1b56-469b-9976-f62927398339">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      id="F_76207ecc-37b4-4b5c-b7e1-9696f69d1533">&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;3,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_8ba7e23d-bb7b-4527-aa4d-36cf6d66be0e"
      decimals="-6"
      id="F_f0c112b6-4e8b-4319-916d-29a8d04b8e04"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
