<?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_f51e97da-0a69-40fe-bf2b-c39dec491701">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_fa80c368-13e2-40e3-a473-c6c7a9940d4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_551c3e20-f275-4cf6-9134-09414e776dd4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_8d16b660-c5f7-4fd0-b50b-d3050d56255d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_2b031826-4da3-433a-b842-df281fb0118e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_031c7a0b-723e-4abb-bac3-521e219774ec">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_bc5fc7b2-4cd2-4d75-8aa6-81511f7a4d7a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_2b959e64-bb3a-4ac3-a2db-e51a850e07d4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_cf6bc06a-6a48-47a5-9f1b-ccde3f4449b0">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_e6a5d60b-d83c-4a1e-bd2a-9f74894c018c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f51e97da-0a69-40fe-bf2b-c39dec491701"
      id="F_93c07c86-4d0e-41ca-80b6-59627a3297b1">&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;805,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_f51e97da-0a69-40fe-bf2b-c39dec491701"
      decimals="0"
      id="F_0968072a-18e4-4766-8193-be3bc1151c8d"
      unitRef="U_USD">805000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
