<?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_caffe6af-a21b-44ac-b74b-d68647270bc5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_ff9b97f7-bdb2-4fd8-9b98-e43cf9f3417d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_f55c5919-de53-45cf-98e5-9faa2be9e5b5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_3d2f7480-5c23-43a3-8ad2-b722681ec7ce">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_f8fb2d5f-a3c1-4342-a262-89ecf7e711e4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_1673e41d-2177-4d1f-997a-ab2f9ead57c8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_6a2e41cb-3baf-4e93-9b4f-f39bd5418a76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_eff323ea-d738-4241-9993-d3f3853d4931">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_efaa65ee-5ee7-4e3c-922a-96ba0be271f2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_350a5571-cc55-43df-89ba-99fb04b648db">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_caffe6af-a21b-44ac-b74b-d68647270bc5"
      id="F_3d8312f9-f7df-4efb-af91-3b0c6fbaa418">&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;3,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_caffe6af-a21b-44ac-b74b-d68647270bc5"
      decimals="-6"
      id="F_555f3bc4-b402-478a-9ad0-643f0335c18c"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
