<?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_51be2b80-ae8f-49dd-af04-849372767507">
        <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_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_bc778c3b-013e-47ad-abf1-62812fc27aa0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_a6928a46-2e97-4a82-a801-50aa5793af9d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_9e173efe-b01c-4f78-b8f9-f4ba25d76ad6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_f97750f2-b9c5-4fee-a441-7318c5dedcd1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_9736456c-dcac-49c3-a634-5995067f82ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_0235082c-b302-431c-bbb2-fdadd05580b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_a1e73a86-455f-4dfc-b23a-d45d81109366">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_5d0e3232-fd95-4600-88d1-9bc4ccd4e60a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_35d4b3fb-b14e-4281-bd76-cfdb6cb544c8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_51be2b80-ae8f-49dd-af04-849372767507"
      id="F_d35a5792-c244-432f-affd-3a7d404df926">&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,236,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_51be2b80-ae8f-49dd-af04-849372767507"
      decimals="-3"
      id="F_e04e66bf-940a-4782-b154-6f5c2c4a845a"
      unitRef="U_USD">1236000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
