<?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_b10920ec-bb6f-4749-9be1-7a911d598172">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_f49aa638-deb5-4b2f-b38c-0e4ac0cdfbe1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_5c7cfc41-57b8-4a31-bb4a-1d4d87d5f4bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_5cd9bfe8-2973-46b6-8643-6028ad7bd1c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_d0f20531-00b5-4ecd-b5ff-8a369cbcdc1a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_040d1e06-ec14-4e4a-a2b1-c275f10056d3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_03c31abc-ebc2-4441-82ab-baecf6950859">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_9eb7c72e-5df6-4364-aca9-7e41eceefb50">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_1b82520d-6a8f-435f-b560-b84ab86b5dd1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_75e58e42-5769-49dc-ad55-d48596973fdd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b10920ec-bb6f-4749-9be1-7a911d598172"
      id="F_ecd15961-824a-4e8a-96ca-82fce06457b4">&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;300,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_b10920ec-bb6f-4749-9be1-7a911d598172"
      decimals="-3"
      id="F_ec8289f5-15d6-44af-9e99-3b570d0c3d07"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
