<?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_1b6846a1-78ab-469c-acc9-b6ea240706ed">
        <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:FormTp
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_b6d04fb3-a914-45dc-a304-a646893751e2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_a14d818c-122b-48f0-b894-489eb66e2f18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_e2a10715-9949-4410-b233-9f0cb700673e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_44e7f4be-f0ed-4176-af39-716c2ec2d0d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_2f52b6fc-f805-4b1c-8e9a-2aae5f62a3a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_b78f9da5-d166-4029-98ee-c5f8eef1d25f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_0ee7ad59-81c7-4fb2-ab79-7a2fb80cdf0e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_b4648da0-94b1-424b-828e-3fd4c4158687">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_2668b062-51ef-4691-9057-a46bfdd756f2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      id="F_4cb4e809-56e2-44a7-b010-68e099ed5dfb">&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;442,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_1b6846a1-78ab-469c-acc9-b6ea240706ed"
      decimals="-3"
      id="F_d251cc9a-e7c7-45da-a02a-8fcbacbba36c"
      unitRef="U_USD">442000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
