<?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_ae6eb3ee-1154-4a3f-859d-44212b4e073c">
        <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:FormTp
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_091f1a47-6d10-4afb-8987-4f079309792d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_3f93f75d-9d1a-488e-8f0c-6146700609c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_6a0023b8-d35a-4540-9fd2-df20883ff1e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_d5f6c969-c0b7-48b6-89d9-0da593bcfad5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_eaf02473-07e0-4891-978f-b8c216822156">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_e2e99868-6443-4c38-a979-9702ea8f0473">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_eff29098-57d5-4559-9d75-dccd579265bd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_335a8192-6810-40fb-8258-f30f48b58ac4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_4f7c9313-acfc-44c7-89f8-b23aa335dbe1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      id="F_1a9cd631-b419-45d8-a978-2998fa12ed1e">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;596,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_ae6eb3ee-1154-4a3f-859d-44212b4e073c"
      decimals="0"
      id="F_812de909-ba31-450d-91f5-0d2718181d56"
      unitRef="U_USD">596000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
