<?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_4505bf05-c97e-4639-be2b-fe99e0480acf">
        <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:RegnFileNb
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_1481c57b-37f8-4d79-9561-3aa14b08b93c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_6b6b6b33-cb15-43a6-a70f-259772975fe8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_c1285f4f-1dc9-4460-babe-3f31bd4ca35a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_4db716fc-050e-49a0-a4c1-0d0dc55ec09b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_a03a2859-147d-459e-bfad-c969b075aa8a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_87dda9ac-fd47-4e93-84f4-b7d00d6bbf4d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_3abc875b-6210-43de-98cf-ad1c90221286">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_2991a54e-cc6a-4785-8237-803caf9b9166">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_cb07b788-f94f-4893-b6f1-19fd784da4c4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4505bf05-c97e-4639-be2b-fe99e0480acf"
      id="F_8c100e60-7d93-4091-8114-c7503a562964">&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;8,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_4505bf05-c97e-4639-be2b-fe99e0480acf"
      decimals="-6"
      id="F_801a2f02-71c6-490a-bc81-2011cc71190b"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
