<?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_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_2de17e01-8575-442b-9818-c393f6687dda">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_a614390d-313f-4579-8677-e42d8d9f3da4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_87a1b1cd-e1f6-4252-af90-913981238c2d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_9018604b-be00-4d83-8392-8019fe04ef44">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_9a1e203e-e48a-4986-83c9-ac51f1e4bc09">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_742ed6f6-fb6d-4935-bd10-c0069aa659a0">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_b836f023-ae7c-49bc-9983-5dde94342b37">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_84bfa687-3cf4-41ff-be7e-d74d9a4ec7fe">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_a8b0fcdd-0b87-4c34-b754-9f008d5aabfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      id="F_c8c8d618-3467-49d6-a8f0-0c9fbbf305e7">&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;1,190,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_322d3b9d-dad7-44ac-8ccf-6a5f8625ce38"
      decimals="-3"
      id="F_c6051116-7673-47a3-b4cb-1f6d49fea284"
      unitRef="U_USD">1190000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
