<?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_9476ca99-8ba3-421c-9e89-2dc747452efd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_2f5b20c0-c42c-4c64-889e-822d37fd0147">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_6faad352-e009-4758-8a14-f30fe370250e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_b3be9ca7-4031-49c1-b9e0-585bf9ff440c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_09ddc2e3-2c9e-4d9e-9bdb-ae17427d69d7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_3d83721c-2c0b-4df5-a809-dea39e8bb3c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_516a4462-8164-4c64-a561-2830b5ec37f3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_5d85efb0-e96c-4481-9ed3-7671d2806c2d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_d139c725-efff-4e57-ac05-b6c05891ccee">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_36208a60-5c58-42f9-933f-2fc892ec4f5a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9476ca99-8ba3-421c-9e89-2dc747452efd"
      id="F_0273c47a-8065-4e5e-b21d-7c0fd3ee7c6e">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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;51,261,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_9476ca99-8ba3-421c-9e89-2dc747452efd"
      decimals="0"
      id="F_f0bdc1ca-ea1f-493b-8cec-070758876cfc"
      unitRef="U_USD">51261000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
