<?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_e77d6fe3-b42f-49a0-8821-4650fe0da3e6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-31</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_c32eb3c0-76d8-4b65-815a-bbe5663ed71c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_c23537f9-42e7-4484-a96a-5ea2f8f436e5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_1e3bb116-6748-4bf6-9afb-6fff035f83c4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_491b8710-d2d9-4617-9228-d00386da40ac">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_37035d9f-5ce7-4481-b51d-1944b2b02e85">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_86b9e952-cfb5-4161-adfc-c9463cb8458e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_d0f99dd3-b47d-4265-95c3-62b630f76bd7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_1d4bbb5c-7ec2-4d52-acb6-dc75140be92a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_59b4cb14-cf7f-4f33-86f0-b159e702dd8c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      id="F_66e38c15-c2dd-40a3-89fc-58a98c602e07">&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;523,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_e77d6fe3-b42f-49a0-8821-4650fe0da3e6"
      decimals="-3"
      id="F_505c8ed2-8d03-4244-916e-fad8f22f6a9d"
      unitRef="U_USD">523000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
