<?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_70892884-bb54-4a38-b16b-2d4a6af58776">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_31d81ca9-c314-49d6-a0d7-9a8c3664031a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_712c7e04-3b32-4697-84b2-e8a5c632a4f4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_61495949-cfc8-4d3c-b0e4-5bb8e8a96f4d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_0eed774b-6981-432e-9080-a4392bacfded">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_8cc32c64-acc1-4f76-a1f1-72adde968101">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_e41ba4d9-1866-43f0-9d68-9ded466d5adc">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_c4965e8c-9aa1-4133-b1c9-ad1176f15107">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_523296f6-df0c-4916-8c40-28f2bd7d33a0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_ee3d30bb-f64b-4ac4-9d17-7c4b9e14d55a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_70892884-bb54-4a38-b16b-2d4a6af58776"
      id="F_0169cea1-d293-4138-b1b7-6e86bb49e0f1">&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,913,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_70892884-bb54-4a38-b16b-2d4a6af58776"
      decimals="-3"
      id="F_ae155426-4958-4b2b-8407-1965d886cdcf"
      unitRef="U_USD">2913000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
