<?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_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_b9b3699e-75d0-4f3e-8953-e04bf9611c7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_06b558d9-8105-4f06-a32c-10a0a4666843">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_59663d00-b7b4-4143-a92f-29ba8620aae9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_3bbb7e0e-8359-43e6-b589-bc98e81535e8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_081b423d-a7c8-4df3-a838-b86dc096912c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_f86ffc64-cba2-422c-b56a-c8e01adb7af2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_83926290-311c-4fe5-ac98-a33fa99e29d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_08d6f942-b65e-49f4-814f-9c194d998c7d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_5948590d-1299-40aa-8c3d-fe82046697f8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      id="F_30919bd5-3bdb-42c8-b126-5a5556945c84">&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;8,375,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_975d87bf-9e7d-4aee-a13a-4f21f34c9fdd"
      decimals="-3"
      id="F_a021b997-1dd0-47a4-b77d-56a792a9a6c8"
      unitRef="U_USD">8375000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
