<?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_1d17ae96-9d29-428d-b3a1-4959f75e6b2a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_d7bffe5e-11f4-4037-a72c-e04b7bd4b0ba">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_a9d99ed7-86b9-4fd3-88ff-f64f08c9dc77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_33de3398-e26b-4489-8de0-34c711976462">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_cb11968e-4271-4723-b730-bcb86d76956b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_89d4e7ae-7a8b-4ea8-9d2b-19992aeb9c5a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_5ebec785-e50b-4c48-8b84-4cd667e5cf27">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_f7a45aca-b786-4c18-92b2-d9ad4ebb7753">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_80fc4798-283e-4f5e-8ab2-8c2f4d4942fc">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_e8bbf078-29d5-45c7-97b4-4fd1a40430c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      id="F_e833261a-e81f-4506-afd4-c3e40266861c">&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;3,004,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_1d17ae96-9d29-428d-b3a1-4959f75e6b2a"
      decimals="-3"
      id="F_ef051321-a524-445f-a7c1-830b3ff5f4eb"
      unitRef="U_USD">3004000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
