<?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_5a70b217-a0b3-4416-909a-6c27a2e5fd4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_0fd6dd57-85ab-4ef9-8d72-8430bbed1e28">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_440acb3e-a1c7-4859-9792-dfea57978a83">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_1447791e-6ea6-4aa0-8114-d683bda41196">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_f80d7f9b-8061-4ae1-8f09-ce76bf1cdb82">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_f864689e-9c55-414d-8fbe-e6dd297b3673">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_04c5bd6c-e3c0-4f4c-9aa1-7c0bca148dc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_291b21f8-9378-42e3-bfb2-7ee216a3ffde">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_3cf9f9eb-28f1-4717-a664-4e75eb5b64ac">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_b0fc8faa-f4be-4a1a-ab12-5453f75d1121">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      id="F_b465fcd6-c9c3-4853-a5db-a184f73c755b">&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;7,560,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_5a70b217-a0b3-4416-909a-6c27a2e5fd4f"
      decimals="-3"
      id="F_c948568b-5944-4959-9b15-cb501bb32d5b"
      unitRef="U_USD">7560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
