<?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_b887c273-29c4-4a48-9b0c-3c2ec43c7514">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_f54feed8-aeeb-4b09-93d8-2c52e7c32a5c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_543fc316-a5cf-4cf9-baa5-d66ba16a3898">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_c73ca937-f77a-4ae5-aae4-e433e1e06675">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_abee9b3e-95d2-43ab-b6c1-2086b0a58b1e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_51d77b94-cbe0-4543-9083-dd0e3ee8ced6">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_18f2cee2-b7d3-44e5-af4e-846a9be3def1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_5297f3f2-3b22-4e10-8b5d-0ff08fd11cbb">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_1387b0ad-de15-4942-8ed6-845bda330846">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_b1dbec4f-1d90-4c79-bb6f-2bb3da7d198e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      id="F_9dd4cb87-5e27-4ca5-9a4c-b48eb73dfaac">&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;500,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_b887c273-29c4-4a48-9b0c-3c2ec43c7514"
      decimals="-3"
      id="F_1e83f153-5f47-4457-8213-975bcd0ac2f3"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
