<?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_14856d85-7338-40b6-ae53-13c6cb8e17c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_ad63272b-fc96-4af1-9be5-8410f0f457f7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_f2f3e2bb-eb24-4025-9a29-0cb8b8553d98">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_36e8d85e-8e0d-48c9-8829-f792671b8dee">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_f8603571-a9c2-454a-ab5a-594e9e95af79">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_3d7c66c8-5e17-43ce-88f9-3a2ebfb8dea2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_6b455826-e84a-4bbf-9077-d29952820217">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_ed57b315-e034-4f1f-b470-da8fbe77319b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_e3dcb725-203a-46ca-be20-2520fd9ee2a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_d300fb62-b2a8-4ead-b97c-7e4475e7cd72">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      id="F_a3faf8e2-4e07-4b55-a19d-825287547eda">&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,338,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_14856d85-7338-40b6-ae53-13c6cb8e17c9"
      decimals="-3"
      id="F_2845ddce-9854-4ec0-a712-0e3122e09334"
      unitRef="U_USD">2338000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
