<?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_19affe83-3451-4e72-a0cf-bce4c7ed84fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_991c32f6-cfba-4df3-90fb-d36a1e40ebb3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_d05fc326-f9f9-4bad-a5ae-1796213b6dfe">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_06c97ebf-bb8d-4fa9-aee8-157bdd575e38">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_9e1227dc-bfbf-4a09-bdb2-b1de3712f621">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_8e29bb65-8e56-4401-81c0-09fd330f3e20">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_f617a166-18be-414a-b6a0-1b9edadbc1cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_e8b837b5-5de7-48ba-a97b-8256aeb06849">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_6d6b1cd9-941e-42f0-bd30-3f61f70da6f3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_7c563397-125f-40c9-9d54-2a9da0069371">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      id="F_bcfeccac-cc84-4c31-94da-3ccd07510e58">&lt;p style="font-size:10pt;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;250,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_19affe83-3451-4e72-a0cf-bce4c7ed84fa"
      decimals="-3"
      id="F_d03d594f-4126-479c-9b81-5120a9c8b6ea"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
