<?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_fd69ba96-0d15-4fc1-841d-c90875f13dfe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_d63bee57-4065-40be-8408-853a05739976">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_753152a9-a4f5-4a5e-934f-e07446b79fc5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_2f5360c7-be18-4041-a371-e5d5dd76b427">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_a9d1d2ff-b6c4-415c-8f3a-6e44b7a429f0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_4bf2ac45-fc90-49e4-99a9-4c91043ed0de">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_3a6a0c16-00b6-486b-bac0-a3f8b658a3eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_bf804ebd-d678-4664-827a-e8bf5ad2e95c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_1e3edc0a-44a6-42ef-b30d-6c539b3ea811">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_c6d46255-ed26-430f-8128-5e78a56c74f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      id="F_16c24c9d-9f10-4b9b-a8bd-80c2b88f1ff9">&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,155,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_fd69ba96-0d15-4fc1-841d-c90875f13dfe"
      decimals="-3"
      id="F_d1da96dc-9bce-4aee-9df9-3e636e417a27"
      unitRef="U_USD">2155000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
