<?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_de4aba85-4d89-4d1f-acd9-0a4772351d44">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_2b791dd0-be9f-4e28-9add-9cf58a889e66">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_fa5e3d62-31cf-4449-94d9-21f056ed9491">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_c8f9fe6b-0857-4ec7-8c8d-6a90676c0706">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_5641afee-c7ae-4dbc-b26e-2d56e8d0e941">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_ab2c027d-7f5e-4ff2-9710-179ba8eb76b9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_4b3ddf11-489c-4bf5-8cb7-ff7409a2bd62">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_a4ac92b8-2670-4b29-a1f3-c263f8bac244">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_cb19635c-7ac0-4309-9f7d-9ceabe6b0aa4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_6e1ec523-04f6-4213-afa3-a5ce29b85257">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      id="F_e1f90088-2b1b-46f3-9e72-568c9ff9ec3e">&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;828,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_de4aba85-4d89-4d1f-acd9-0a4772351d44"
      decimals="-3"
      id="F_fb5a3d22-b28d-42f9-88e4-2a4afb365b1f"
      unitRef="U_USD">828000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
