<?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_763da5b5-de2c-48c5-864c-072931f8979a">
        <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:CombinedProspectusTableNa
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_538029ae-20e2-4c2b-bbd7-1b822ca5c2dd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_a072f79a-96de-4222-9c8d-1627db92ca94">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_fd5fa92a-d66e-40ce-97db-30daf7027ca8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_f9e55b27-faec-46f4-8ae2-f9905d1bfa2f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_1ba1d585-82d8-4d68-b19b-d40c1b021f57">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_b5ae54a1-1f51-4d54-8bc2-474e31a4bc7b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_136ba40d-b357-458e-b0eb-6e26c8084140">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_ea3f5fbc-df10-4f91-b7c0-f00980ec5388">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_40f26418-81df-4b13-9a74-58fac393ee69">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_763da5b5-de2c-48c5-864c-072931f8979a"
      id="F_1c0a9add-a0e4-47e5-9f95-d1640a7f6b92">&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;2,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_763da5b5-de2c-48c5-864c-072931f8979a"
      decimals="-6"
      id="F_62d9056a-1271-418e-8efa-98dc36dde284"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
