<?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_1e9dcf5a-8419-41b1-99cc-1466d42b94b6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-08</startDate>
            <endDate>2026-09-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_7393ee60-115e-40ae-b7dd-98fbe6e6c51d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_c4f3c7f3-6b3d-423d-aeaa-e8e96f7e3c32">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_de1ace5b-4835-47cb-8593-8a4baf7f9b64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_12bf28f2-fa14-4d69-a042-801467a95c21">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_e1bfdc0f-c7a1-4675-a56e-2157867abc2f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_33fe8e26-f637-4f6e-a98e-f6159c766cde">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_9f8446cb-8409-49a2-af0e-de19ae899a3d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_fc478e83-2994-4d70-bd3a-24a5c0e82614">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_45a01c0e-22a5-4c87-90fc-52c839105263">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      id="F_1a1119ab-652e-4095-980d-0a818e14853a">&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;2,800,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_1e9dcf5a-8419-41b1-99cc-1466d42b94b6"
      decimals="-3"
      id="F_13f10d09-7bdd-4be5-b545-fbea8f4416c2"
      unitRef="U_USD">2800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
