<?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_309786d7-5dcd-4dc8-868f-ccca530b0cdd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_04702bdc-84d1-47ea-af28-fd1ad51de686">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_aa74601b-190e-433e-abdc-4e5a306160e4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_5de88a61-f876-4295-904d-38781c1b0f2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_59522d67-834a-46f1-8c95-353ffeefad7c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_603004b3-50b3-400f-b85e-9349be774566">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_27e2977b-c2a7-44f5-b59d-644531d8cce9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_bddf74ad-0d98-4361-bed8-789899c2cec8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_a3ef64e5-c0dd-4807-b3c8-ccb9cc285b65">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_6eac15ac-99c0-4835-a31f-8fb7d9e26496">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      id="F_daf261a5-8fc1-47de-893d-0e7b03e5a64d">&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;1,726,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_309786d7-5dcd-4dc8-868f-ccca530b0cdd"
      decimals="-3"
      id="F_4d094f64-1fe5-4800-a6da-6e67481f39c9"
      unitRef="U_USD">1726000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
