<?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_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf">
        <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_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_7f8e5c9d-f16b-42db-b00c-736b34f4a42d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_d18ccd60-f2b1-4b27-acf4-f047963dd933">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_36edba8e-8f94-4ffe-874e-3aae8493a9cd">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_bf0d3863-9b9b-409e-9ca1-9a2b1036e984">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_66a68a14-5245-4caa-9bf4-5e895c6852e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_7ffddb09-70b7-4470-8691-e6a6cec9ede6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_7e5ef7a4-8317-4197-ab0d-866a37849d23">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_deda68fd-ac81-4b86-8439-978853b4b0c9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_b63c2178-a42c-4862-941f-36ab4d2ce3a6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      id="F_09a30e68-5aaa-4b20-b366-9afa86b29427">&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;703,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_54cb2e89-095f-451c-aab1-f1d8b8b2bfcf"
      decimals="-3"
      id="F_02d32553-f419-4981-9984-ccddc35e72e2"
      unitRef="U_USD">703000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
