<?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_9cd96067-5cde-4c21-8020-c5749277015c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_dc17a3b0-4933-48c6-849b-3e4133f6fcbd">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_059e3fda-3033-4d60-9582-e180d021f0e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_284b0b80-00af-46ba-8e0e-fd63bb42ca27">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_6da26836-df79-4e99-a8fb-9251c90ffa65">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_9b64458e-87da-4086-9e11-34af52e1411b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_f94a20a8-ef73-4a6c-be45-519f8b9eadef">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_54e22b29-db89-46b3-95de-2ee38d09ea8f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_dd1dba8b-fc30-4737-a6b6-2e7c1325c589">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_9bafb9e1-b92f-462e-aed8-52d5a1a6acae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9cd96067-5cde-4c21-8020-c5749277015c"
      id="F_1c570314-5abc-42bf-b436-a8b489a3903a">&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;17,089,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_9cd96067-5cde-4c21-8020-c5749277015c"
      decimals="-3"
      id="F_75767e45-e42e-4ff8-aa0c-c8b3dc101024"
      unitRef="U_USD">17089000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
