<?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_f0f4610a-0135-4678-aca0-e5e689989641">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_02b9ba42-dd87-42b2-888d-774e02cecbbf">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_06cf3e5d-c495-4d56-8896-685fc60797a9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_bb0339e0-f8c2-4406-b1d0-34ea97d6135b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_ccd8db8c-fd0b-46a2-905c-b1d411466815">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_da6cd1f1-6f42-4f58-b951-60cd673f8991">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_39508ff6-0c2c-4590-9b2f-8cb5d84b039e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_0d157996-a525-454d-a3f1-a06d23ba4a03">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_74fac1d8-1cf6-4f23-b3ac-cc2bcc231bbc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_b7025f68-7206-4581-92be-378aa7dc57eb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0f4610a-0135-4678-aca0-e5e689989641"
      id="F_14a0464b-dd54-4fe5-b54b-fec5ea8c952e">&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;5,997,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_f0f4610a-0135-4678-aca0-e5e689989641"
      decimals="-3"
      id="F_3cc90df2-7a50-447e-826a-9b3789e4b26a"
      unitRef="U_USD">5997000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
