<?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_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56">
        <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:OfferingTableNa
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_30ad845b-d214-4edb-8f1e-dceb4009f1c5">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_065fbcd9-386c-4d8f-b22e-2369321ec6d8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_90190ffc-aa67-4ef7-bcd2-57506a946429">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_f993ecf1-e9f7-41f2-8049-b21b0e49798a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_bb722c03-fd79-46c1-89c8-7dd9f041260b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_0aa968b9-9f90-47bf-8461-46370de6aacf">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_78e3eb80-7ba9-4b1a-8911-92695148ecd2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_33d78472-8117-4f2e-ab80-99d84b66d0ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_43f262e1-0161-459d-b52a-7aac15b4fc79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      id="F_68eb88c5-cc14-4b40-a4e6-de11c5bc8cea">&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;3,098,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_d6fa765d-ceb9-4b0d-a746-d31d1f49ea56"
      decimals="0"
      id="F_9377657c-9a22-47bb-b489-2b37a4f6d6f9"
      unitRef="U_USD">3098000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
