<?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_dd48019e-85a9-4f9a-97c0-d97cbf42928b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_ddda7154-c874-43b6-be44-879a77b0a19f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_5fc50769-d449-40b0-beba-8d43de5afbda">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_0410d949-f493-40ec-8bbf-bb4ca453fe86">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_51672715-019b-42e8-a731-29e6f1aa12e3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_abe3b020-0365-4078-9d23-136e9787de5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_53ff7bbc-a460-483f-a6da-dfcd78ecc7d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_735397c8-5e47-449e-bf30-cdf16cd9ee72">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_46e3da86-565a-475b-8c6e-b76ef14f1788">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_da7bdfd6-39c2-45e0-85d7-60175041f1bf">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      id="F_805758c1-d026-4c32-b604-d16e5ad1acd5">&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;7,573,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_dd48019e-85a9-4f9a-97c0-d97cbf42928b"
      decimals="0"
      id="F_ee87c1d4-0e27-44d4-a871-2f9d70d23832"
      unitRef="U_USD">7573000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
