<?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_5df18574-58b1-4f23-b705-77dfac705d09">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-21</startDate>
            <endDate>2026-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_7ef58108-9c33-4da1-b0e0-e5fe93b899dc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_5f235c01-0553-468c-b9bf-f19764cbf6a2">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_89050c1f-cd7c-4d03-a5c6-abbbc727597d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_599cfbe8-bacf-4cb9-8ab8-ef4dffc6f80b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_9a6a098e-45a9-46fb-af9c-b6f00dd3c3cd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_9b31b1fa-e510-4f87-916a-ee286f4a91ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_6b6b0112-9ff2-4d92-a947-468f862a1d4a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_83e664fa-286c-4392-87b4-eb17d850866e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_605f6d49-40c3-45e4-85b9-c08fbc83727b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5df18574-58b1-4f23-b705-77dfac705d09"
      id="F_0c4fbe20-72cf-40a1-956f-0e1d86b29396">&lt;p style="tab-size:26.66px;font-size:12pt;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;555,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_5df18574-58b1-4f23-b705-77dfac705d09"
      decimals="-3"
      id="F_44da438e-2f69-4c24-8840-5ad7f483229f"
      unitRef="U_USD">555000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
