<?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_c73b44b0-f8ff-4662-8502-5407bc3ea488">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_e12fb4e0-6f63-4da7-b8ad-309ee0762bdb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_22f2b922-675a-4695-b0e6-9d95dc3d147e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_c394368c-09f2-40d3-a5d4-dc530265ddc6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_63aecdbe-9cad-4d33-a445-a1e537d81b82">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_57d56e71-cb7c-44af-ba6c-66037465a107">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_9173bba4-fdf0-4396-bb1f-7322f152c239">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_366616f0-8671-47b8-a0be-849b7f40be19">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_8644b098-1cb2-4fe2-89ee-6f0d64ad2553">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_de879a1a-3d16-4744-9fc5-688a9f9382ac">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      id="F_e6ef9be1-b762-49db-a3d4-691b152fe724">&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;28,767,630&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_c73b44b0-f8ff-4662-8502-5407bc3ea488"
      decimals="0"
      id="F_fc881035-dec7-4e8b-849a-44aab53b8ea7"
      unitRef="U_USD">28767630</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
