<?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_d61691cb-3640-4ae1-9af3-9cb19d112cdd">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_2ac30b38-4f3f-47e6-8ad9-b333b8e78c76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_bf0302c4-a3b2-4397-ab0d-04cd582275f2">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_b51695bb-0c46-4539-a5cd-61a3ec6dd926">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_2ff146cd-88a2-4662-a2ea-2d019db4d8f0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_f96fa28f-acf0-47e5-a656-9284c8c15708">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_1f84da74-c5d3-4c5f-a586-ac899ff49db9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_c30ab0a7-45c9-47bb-9da9-7f163d9a9f31">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_82e95d56-7d76-417e-9e44-d5d4736e1cc1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_5c31782c-db25-4c79-829b-67fb62f4000e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      id="F_1970bb58-e90a-48f5-98f6-c2eeeff6c58c">&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;4,220,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_d61691cb-3640-4ae1-9af3-9cb19d112cdd"
      decimals="0"
      id="F_dbd2b5b4-0882-4c24-9c1f-b4bb0e05d7e4"
      unitRef="U_USD">4220000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
