<?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_615993a8-0c4d-4232-a13d-ac010d91ef95">
        <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:OfferingTableNa
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_da717705-c8af-4267-ba49-9154f0a1b69c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_1bcc342b-c20f-40af-badf-dc9f10039252">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_0b78b0c6-7eac-43a5-a810-764226926fcf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_f14d0117-8855-4b60-9452-b1716f36a8c3">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_1195390a-64b3-4127-af59-eb7e8ad238d7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_1e4ee453-2da4-4da1-8405-d4040d5b9b23">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_1a701ad4-b44c-4e25-9a3d-98ef24e8ea1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_64280fa7-3218-4b11-b4fe-0ea2aefa0c9a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_8294c956-0eb0-41ab-8f98-cc2e8a57c3a4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_615993a8-0c4d-4232-a13d-ac010d91ef95"
      id="F_f8653488-7fb3-49fe-90a7-e66700eaed97">&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,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_615993a8-0c4d-4232-a13d-ac010d91ef95"
      decimals="-3"
      id="F_7e6f1858-65d3-4c86-bf84-1360c23843f6"
      unitRef="U_USD">4300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
