<?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_10997232-da14-4e1a-bcbe-39aaccdb27e2">
        <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:RegnFileNb
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_752740a9-793b-43f6-b0b5-f805e89f02ea">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_35eb6daf-d54a-41d6-bff3-efc46443fff5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_74a05fab-9b63-4f8b-8747-eefd3abbef3d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_28f42e88-339c-4dc4-9dee-677cf0919c4b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_7e7343cf-ec4e-4fb8-888d-1f92e4ff0b21">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_a9f60c68-cb9f-4259-a1ef-e1a5aa571e8f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_11f6aa45-aefc-4659-b7ed-e06c317a3108">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_ab95fe26-c93d-4895-95e5-1151513edabf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_cdf1bf15-eae2-48f1-b999-708ab0c4a15e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      id="F_dca3fa06-c3c5-4f54-99a1-9f564c27408b">&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;2,400,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_10997232-da14-4e1a-bcbe-39aaccdb27e2"
      decimals="-3"
      id="F_15d58179-fe90-431a-a53d-3dc0e7cbce7f"
      unitRef="U_USD">2400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
