<?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_a21b5186-53e3-4d26-b160-a11998093ebb">
        <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:FeeExhibitTp
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_58755cc8-428a-4eb5-83d0-7c56dc486ebc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_c654b789-2f78-44bc-9bdb-bb97a4f3ad8f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_73611cb1-9cc7-495f-a573-6fb03ce5a99a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_d9d3d540-4654-4fa1-be3f-258e3fd5a2ca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_42b77680-fa65-4d32-a469-5e02b235bee7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_aa59d104-420f-4bc8-8033-02f8969f1614">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_a64167e7-edf3-467c-b74e-d7ffaf92392d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_9fd92388-1d25-48c4-8dff-329d98051387">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_c74ce9ae-1a3b-4582-92b2-cb64e30b3f0e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a21b5186-53e3-4d26-b160-a11998093ebb"
      id="F_6350ad89-bae0-4d52-af87-3c41a439532e">&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,243,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_a21b5186-53e3-4d26-b160-a11998093ebb"
      decimals="-3"
      id="F_4c98fb6e-ce8e-465d-89ac-926e95ca3027"
      unitRef="U_USD">6243000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
