<?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_4f2b960c-5290-45a5-88f8-34c52d1e8809">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_282fc098-5b7b-4306-84e0-18a2e5a8796b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_aa5850bb-3c85-4b8e-bca5-20406e4d27dd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_4bbdf5e2-8c39-43ca-bf61-b673a2e8a60f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_de64116e-1f4c-4350-b696-4249ee8a199a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_12ac744e-7c0e-4e78-aef6-ca73ec920d9c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_06d837ad-f284-45f2-b2ff-822e30c95ad2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_e632169f-cfcc-4856-afca-119e94bbef47">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_a8d66bc5-e74a-4864-9e88-26832c213fcc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_5fe83deb-fb12-42e8-9809-f41f65f39535">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      id="F_9c3a52da-126a-44b3-a199-6ea8a4f744ad">&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;572,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_4f2b960c-5290-45a5-88f8-34c52d1e8809"
      decimals="-3"
      id="F_7145e7be-afa4-418d-a36f-852c5af66285"
      unitRef="U_USD">572000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
