<?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_5c08bf98-f1fe-44af-8617-98f8bb871419">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_466f6459-2461-4573-b63d-8d4f7c808d02">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_7badeaf1-364f-4843-b30b-95447973da51">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_e4786028-34c9-4de0-94b8-4663a1080aa1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_28b0ba98-0fff-479d-9524-d79c3ca590e1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_e1b469ba-34be-4688-99af-fa23edc5199f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_0a224c2b-3237-42b0-8f8e-6c0b385a9989">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_a74442fd-6ab3-43dd-b441-764711c9c9cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_88545ba4-4a1f-432b-bdd7-1d7fa7540a3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_26be3968-8b36-4886-aaa3-4d578585f0eb">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5c08bf98-f1fe-44af-8617-98f8bb871419"
      id="F_f97aa46d-5fda-4e5c-a735-ee4843490aef">&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;19,841,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_5c08bf98-f1fe-44af-8617-98f8bb871419"
      decimals="0"
      id="F_3695ec01-eda9-4e45-b425-23cbe5311a4f"
      unitRef="U_USD">19841000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
