<?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_de6c68b6-ca01-4be1-a81e-37e14dd46d28">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_49be1bc3-a3cd-441f-8754-1929026e116d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_a7dcf762-5183-4569-8575-cba09bf7f031">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_8f7e2ddd-8572-423a-8757-52b1ac194262">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_9a95dd36-9a1e-4529-b394-9e8678cf80a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_acf4d301-7072-4d88-b129-7b8af55dcd00">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_00e8e6f6-7a2d-4d22-bc07-174d3e2c0309">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_97e68c95-12cd-406f-8429-5120690b9082">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_05ed4d25-9d6c-4c6d-bb4e-08ac5f662208">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_6b0436e7-a037-461f-8da8-a168874b9700">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      id="F_578de81d-98e5-4b42-a65e-c2763e720fd5">&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;5,371,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_de6c68b6-ca01-4be1-a81e-37e14dd46d28"
      decimals="-3"
      id="F_9a53da41-6792-421d-ab7b-2ebebb108a8f"
      unitRef="U_USD">5371000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
