<?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_a0355a20-d3db-4777-986f-153fd4577312">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_57534026-4925-409a-acfe-5a7e208cea68">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_63877faf-9283-4f02-b103-c182eeca2ae6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_5bfc978e-7ccf-48e6-bf8a-0a27a41eda10">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_2c777343-da67-49f4-bd29-8deb3d49cb88">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_0b93f764-23d6-4faa-8e97-9ed8075f86fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_69fddfdf-52f8-4ab9-af84-14a90cb064aa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_726eb8fc-0db5-4141-9761-1f49308a49ee">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_6fda2a47-0b91-4bf0-831a-8d20d76afcca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_1d9d5fcb-f388-4ffb-a88a-5f4896899e3b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a0355a20-d3db-4777-986f-153fd4577312"
      id="F_aa177cb2-f12a-49b6-ad77-6951b5ff5c7a">&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;850,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_a0355a20-d3db-4777-986f-153fd4577312"
      decimals="-3"
      id="F_0f939f8c-4180-4bd6-88ea-c0dbb1aae6ef"
      unitRef="U_USD">850000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
