<?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_fa8a8fd1-5813-4f54-86b4-985d425b4879">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_79440f5d-b8a8-4a04-b5f8-a3e79a94a122">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_45ee83bc-a294-41b1-86ed-cf83add5f402">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_7b4b964b-b265-47b7-ad7f-8596f2486991">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_f2d99548-4c06-4b5c-ab59-8faeb7cb060e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_c6303649-deba-4c15-9141-aa8206de3f81">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_2fbc4fad-948c-45ad-9d40-cea46298b8c9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_d0932a88-e323-4856-aa9c-a2e3bd14e238">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_9744e291-e14c-4210-8ecd-f6669c4eba3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_4c64f399-56be-4d20-9a1d-cd699bb29d3a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      id="F_8c4a53bc-6d59-4c34-9078-5cb05c56ac18">&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,038,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_fa8a8fd1-5813-4f54-86b4-985d425b4879"
      decimals="-3"
      id="F_a7a86508-47b3-41d7-91c7-1e1bdbf74ced"
      unitRef="U_USD">2038000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
