<?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_a6e846d2-f7a7-40b9-b424-e2cba0897e72">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_8726e81a-b137-4dd8-9b6d-ec6ad3acefd0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_e9bcd7bd-ce48-4447-acf8-db7a3798cb70">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_0f2d4350-b624-4a31-b64f-7d9ebf7eeb61">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_853ea462-a1a9-48b9-b616-056e46c6e3f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_4846231a-841f-4911-ac08-c4263559a3e4">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_d94b72e7-6871-484e-87a7-b6b6c826452d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_27914b3c-b236-4385-9c0a-b7fdba1018e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_8ea272f4-35bd-48b0-a374-af52f8f136c7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_26d5ef89-7ca1-42a4-9c0b-3404fed7ec12">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      id="F_ac395dd8-ec11-4013-a335-28916efc94c8">&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,000,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_a6e846d2-f7a7-40b9-b424-e2cba0897e72"
      decimals="-6"
      id="F_71753985-ca08-41e2-8048-de0236432bd2"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
