<?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_45df671d-31ac-49df-ba65-d566cfa16b82">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_fa1e24a1-a714-4cee-9cf1-db6f574b9144">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_1fc81a16-5f40-49fe-8408-62ee13bb9c30">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_5a95d073-1908-4d15-82d7-1e6e940897bf">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_7848a80f-3da0-4976-9d6d-a57fc7737918">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_b200a7a0-0430-44cb-af49-daf02e95ab3d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_9de86347-035e-4127-af1e-839471434cca">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_b6bee9a8-94ed-4958-9388-8934b5d49d52">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_e8f1de5d-8185-4903-956c-94bdb95981e9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_cd71daf2-cc4f-4701-9290-3c71e575fe0e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_45df671d-31ac-49df-ba65-d566cfa16b82"
      id="F_e3cbc90e-fcf2-499e-87cf-1e60de5b1642">&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;13,053,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_45df671d-31ac-49df-ba65-d566cfa16b82"
      decimals="0"
      id="F_1698b2c6-79e9-4a87-b7f5-eaf8102bfda0"
      unitRef="U_USD">13053000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
