<?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_5b53bde7-9902-4203-b34e-3f6ee0ee225a">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_8c8bf644-eeb4-45f5-bf36-3b462096661b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_3d0180ff-ea79-4bef-8935-a2bdeb9ff86f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_fe45cb07-b3e8-4df4-b37a-94984887fa23">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_d6bd4392-779e-4d2d-99ed-692547a91315">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_92b540cf-b2aa-49ac-bde4-23a0d9de3ad0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_bca6eaf2-f182-411b-bab6-3380401f6715">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_e50cfdb1-a2a3-4f98-89fb-9ffe58ba4ca6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_43e5d3cf-ab1c-41dd-bd26-db93bcfec3a3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_cc7e354a-5ae8-4a50-a4ce-88982adb51af">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      id="F_22ef4440-a01d-4416-8940-32adbfb6817a">&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;49,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_5b53bde7-9902-4203-b34e-3f6ee0ee225a"
      decimals="-3"
      id="F_e45bc95a-cb69-437e-9961-3060e700ea01"
      unitRef="U_USD">49000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
