<?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_58bfc597-0ba4-4326-a7f6-1d4e7db6468d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_de649cb4-d37e-44af-8d87-0bbdc59f0c7f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_020b8db3-3eed-4cb1-95ab-20dfa1d4cd96">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_32c2677f-b1bd-4238-9ff9-5ae1f2360cc6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_4b264f45-a7de-441a-a06e-c10fa057f161">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_ea0400bf-4388-4c58-af3e-18df9b446bdb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_00142f1a-7de0-4ce0-9872-0c3d38357694">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_e23fdf87-b736-4892-b2eb-dfa8a99fd54b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_0537c0ad-704e-4dcc-bd38-41f6b50cff61">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_cac7ed8b-7ac4-46f5-b012-ecaf8317701f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      id="F_0495b089-c278-4e19-9d02-8f4b71a27bcb">&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;14,971,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_58bfc597-0ba4-4326-a7f6-1d4e7db6468d"
      decimals="-3"
      id="F_8a8cb4eb-f2ef-4f95-a2af-dc1da97a77c3"
      unitRef="U_USD">14971000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
