<?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_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_8db18202-87bd-4354-90b3-ed7991bbcd2d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_de1c7cb8-d0d3-4357-87a0-1c12e87699b0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_bfbf4b0e-599c-4a63-bb7c-29d74f465e01">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_b97b8df0-7d53-460a-8baa-fb7cbc0abab8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_44f31729-4550-4da9-9c11-98cf8ca0db7c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_1df90fbe-545f-45a5-8b74-38f98d3d8ba9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_d2d40c38-bf29-4629-98d5-2e55f94220bc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_f46bac9c-950b-4c33-8409-024468ff6c55">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_23690e16-6dd2-441e-a390-e3fc7dcf5136">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      id="F_5632d395-2afd-4768-9de3-d866d4d029ba">&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;4,155,800&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_b8c6f712-0f1d-46ec-ab65-6b194e6a0b21"
      decimals="0"
      id="F_cb3dea2c-1da6-4d50-a6b4-2e14fae3c4b5"
      unitRef="U_USD">4155800</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
