<?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_86be2960-4476-47be-87f3-71a6d7228045">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_99bac292-7837-42e6-bd0d-d2a29d5e4606">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_1946e83c-cde9-49cf-b0e8-9f8f8242c5eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_fd249ecb-d3ea-42f4-be63-f38a9735a7f9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_168cc603-4b10-4b54-ad13-ee9c3df67c66">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_a63bab71-6623-4b5a-a819-6df75b0c9579">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_29a1ee3a-f4fc-4967-b451-087ceb7353e9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_e5cde2e9-5a17-4724-9fad-3904c2f1bdf2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_4721b496-8180-48cd-bfee-82d9e71342bc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_ca2f6b1d-8724-4ea2-aaa1-6b9040c25b73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_86be2960-4476-47be-87f3-71a6d7228045"
      id="F_600e8bfa-4ec3-4f94-a5fd-5c7ddaaf54ba">&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;6,635,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_86be2960-4476-47be-87f3-71a6d7228045"
      decimals="-3"
      id="F_f0b4ea19-b2d4-4029-9436-9ddb411b0e78"
      unitRef="U_USD">6635000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
