<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_639b04a5-d63f-491b-a72c-deb742337dd9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-14</startDate>
            <endDate>2026-05-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_59fee303-153a-41ca-a8c1-ba3af36a205e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_38a3b782-6b4a-4885-9d34-49666bbaa594">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_0b7e6ab0-4dc8-4e19-94d1-ccdc942d1bc8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_58720644-ca71-4d9c-9ec2-d7cfc38d1f95">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_3daf2a03-7d42-409c-bf44-7b3f4d44405e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_f99a4e02-c864-48b7-989c-eb6da522805d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_bc442414-39bc-465c-bf0c-ae59a9460f3f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_f94f15f0-b6e3-475d-b009-ccb281b7948d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_b752c04e-b2a4-48d8-a40a-65849bd0efbc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_639b04a5-d63f-491b-a72c-deb742337dd9"
      id="F_53f7c571-b9f1-46db-be3a-04b8c5a24ca0">&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,538,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_639b04a5-d63f-491b-a72c-deb742337dd9"
      decimals="0"
      id="F_75a4037a-0431-4b9d-a19c-ad59f55405dc"
      unitRef="U_USD">2538000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
