<?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_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_c0093e73-8f82-4ccf-a291-78ab4dc01a21">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_d05a88ae-660a-494f-9466-9ecd32bff1ba">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_f587a878-854d-4c9f-b15a-4764ab1dd5f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_a8820c26-fc1a-43ab-99d3-87314be5113f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_714c6161-c3f0-4f9e-a9a4-dd090b805ec1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_216c1275-ded7-4f64-bebf-ebfd5b13d8e3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_87f29b68-5e2e-4276-9d08-7caf824f2734">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_b046b2bb-8548-42e0-a543-90ac78e5fd4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_b07efe3e-9240-48f1-9420-c73adbc7fe32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      id="F_21617d24-c25e-478c-b737-120667bc93ac">&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;6,000,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_ebebb49b-65dd-4e70-aa4a-46b8a2cd9066"
      decimals="-6"
      id="F_8df4dffd-87b7-4862-862e-a9dac289f6c1"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
