<?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_99fdc472-24bf-4aea-a799-6f24f1ab664f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_5fc9e49b-2534-45a3-9e18-2e3d8c0cbaf7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_abcfbffa-da80-41ac-bfde-2d435752901f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_5aa73cd1-15cd-4b20-9c2c-13a78871950d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_4d1786a1-5e60-4042-975d-d8dc6c6193aa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_b03427d8-e5d3-496b-a7b0-6947a89edbab">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_45ff6c0c-33c3-4a82-9c40-64ed8e8d2ecb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_da0e6bbf-9b16-49e6-820e-4589b2752494">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_9006e7e1-1338-44e9-bd5e-4c2dab6777d6">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_1e97dc60-bf97-40be-9fe4-928c0c23e298">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      id="F_73145661-b29a-424d-896a-3c3e42483f32">&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;1,069,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_99fdc472-24bf-4aea-a799-6f24f1ab664f"
      decimals="-3"
      id="F_2b645667-11f7-4623-88b7-442fd6af6bc4"
      unitRef="U_USD">1069000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
