<?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_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_043acdbf-11eb-4293-9917-b13671148201">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_2ab46f1c-e50a-482b-a0ce-83813acc7c16">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_f36385fd-45a6-4015-9d02-594b885d9874">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_5fc52d22-44fd-440d-b889-7931e700ab02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_a3c0d119-2959-4e8e-aa82-90fafa10733c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_bfb29568-ea08-4e8d-8602-b79c9fdf6ba8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_47846e2a-1b0f-4e71-af12-3fc974a14089">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_47999a28-9436-4cd8-af3d-a550b05d7de7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_c9e2cf9a-7520-43b1-b1f0-57a7b7c6ef23">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      id="F_6211fe6d-17f9-4a83-a2d2-4215b22db66b">&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,175,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_e02ad320-2b04-4d68-ac56-fd1a7c97fbd5"
      decimals="-3"
      id="F_9278ddf8-9b0e-40e1-a5e0-26d0449b0d66"
      unitRef="U_USD">3175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
