<?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_78d5a336-1d96-4d23-ac6b-efe06f907b66">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_9f62d072-9c08-4bce-ab14-30281c198f1c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_4d6153d4-a009-4d50-8aa9-80ecca72ca70">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_69705a59-fd29-409e-aa12-07f2b63418a8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_849986fa-ee92-4a91-84d0-c77f1b744b4a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_3d72a9d8-5034-416f-a0d4-9af13812c2bc">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_40a7322e-0c90-471d-870f-3ca7654c887a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_62fe43b1-6fb8-4879-93b0-e8f559fba6b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_f12a789c-4860-4398-8aa3-c658a085763d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_6c3106f0-63d4-487b-9d95-568bff81581b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      id="F_a16176de-d0af-4f03-adac-c939dcd06851">&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;17,211,650&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_78d5a336-1d96-4d23-ac6b-efe06f907b66"
      decimals="0"
      id="F_a42b3e71-5444-4cb0-95de-76de1b64d13c"
      unitRef="U_USD">17211650</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
