<?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_1aebe04c-5791-4aa6-a924-97dc18785b59">
        <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:FeeExhibitTp
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_ebc1d69b-7b65-4c9d-9be0-38625d4c872b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_ec946d01-dd7f-4319-8c82-c7e09f2fe338">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_789a1f07-49e1-4fa8-bf38-7f6ce332c213">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_4de2173b-14d7-432d-b756-5322c167573b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_1a4e6481-6473-4232-856f-21040f442675">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_d85c8dc3-7825-448b-bf5c-207115d35b3c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_7bb1b261-b348-44fa-9513-a12117c63f0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_bde55062-8f7b-467b-b48c-8f51a7f4ee04">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_f6de5334-b6d6-4f26-a84a-34d75e4629b2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1aebe04c-5791-4aa6-a924-97dc18785b59"
      id="F_8ae2b37a-0a90-44c9-b299-6397cb972865">&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,760,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_1aebe04c-5791-4aa6-a924-97dc18785b59"
      decimals="-3"
      id="F_e47dcc84-a93f-47ed-aaf3-79b8f314007f"
      unitRef="U_USD">1760000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
