<?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_5623d839-5a16-4652-a2b7-d0051372b698">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_a7bdf077-09c9-4963-a0b7-bec8daba9cca">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_092be981-b7ea-406a-b1aa-9cf894e9ba89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_dc9b1c6e-7c80-4b45-86c0-bfdab8caa50e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_f7426303-8280-4529-8d60-f53f53537ac8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_e12322a3-e47f-4ce5-99eb-9fd7e5a9b29a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_f736d041-cc55-4535-9338-9166c50c2e94">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_c5aaca45-71d9-4720-8deb-46affa64c157">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_e162e3e2-012e-48d7-92a3-d54b94233fa6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_5bc3070d-4253-4de2-853c-dc6568e59805">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5623d839-5a16-4652-a2b7-d0051372b698"
      id="F_e58f79e6-717c-45e3-b57b-1e2a2370d9b6">&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;1,388,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_5623d839-5a16-4652-a2b7-d0051372b698"
      decimals="-3"
      id="F_d3097265-24d8-4d1f-9f6c-62d71b97340b"
      unitRef="U_USD">1388000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
