<?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_3d0d2404-a819-4b86-a829-07d04ee98b91">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_edb2f6cb-a673-4dcb-a0d4-d09b5b70df68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_ca66328e-ffca-42c2-94f1-41112432d87e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_6ee3f6c7-e929-4d27-8872-e6e1662dc9ea">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_357c8f50-20df-4cb2-bdbb-45b9f90eced9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_a323e3dc-c6cf-409c-a5e2-6c354588212a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_ac028d45-d1dd-42b2-a707-9839429522c2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_9c8776a1-e8fe-4313-8f37-c8cbf668a77f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_c8e64d7c-4cbe-4ed5-a3f9-a1d02dc43364">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_ca0450db-732b-46b7-97e4-0cbabad5c2ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3d0d2404-a819-4b86-a829-07d04ee98b91"
      id="F_f1d43a75-6d7a-40fb-83d2-7f2d69df2e9b">&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;4,799,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_3d0d2404-a819-4b86-a829-07d04ee98b91"
      decimals="-3"
      id="F_34f03607-0f06-4bb3-a161-4e2094179803"
      unitRef="U_USD">4799000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
