<?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_113793ad-92d1-4137-993d-b31697ff0243">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_dbff8652-4930-40ab-8aa3-956cefbdf197">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_4cd5b1f7-a5be-4565-b12d-97b934917eab">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_1cb3665d-a248-414c-bb76-78d19c038d43">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_ed6fc70f-7579-4299-ba52-79ccc34ec2df">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_61f01b45-09a3-4c6d-893d-e0f40f9952ef">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_0aa11b06-b49b-47de-ab6d-d8c8a03cf70d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_d4f6649d-a1d8-4cbe-a276-536a57cbc07c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_941369d8-9886-4240-96f1-29ae3f5f70d7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_723e0102-c744-4d21-803b-28d1a069ac85">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_113793ad-92d1-4137-993d-b31697ff0243"
      id="F_209de56a-4660-4bca-9115-ef2753706f7e">&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,528,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_113793ad-92d1-4137-993d-b31697ff0243"
      decimals="0"
      id="F_e01bb60f-bf20-4453-8751-9afd5e570c2a"
      unitRef="U_USD">1528000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
