<?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_aef42b3a-c33d-4b1e-be41-51ae63153fe8">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_81c52c5a-0f66-4029-bf1c-9d1c4922efc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_6aefac7c-7ab3-451f-963f-4cd4c2d92b12">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_d7ca0fdf-fd52-4afc-90ee-ec9fd193fb9b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_a86f7cc9-a42f-49d2-95aa-9dbe2b3e76e7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_cfb060c9-e0b9-4cf5-95b9-614b354cc673">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_53cadb7f-3b01-4383-8e41-d16e51847afa">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_2b079265-bd43-47d1-9156-e378b48535ca">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_e05ad499-4595-42e4-894b-b13b8094909d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_4388353f-e245-4b2b-b179-3bbb57476e5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      id="F_5bd2bc88-e6b9-4c50-ac9d-5a6b3654552b">&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;503,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_aef42b3a-c33d-4b1e-be41-51ae63153fe8"
      decimals="-3"
      id="F_77cdc90a-578c-43d2-9624-131b327a9af4"
      unitRef="U_USD">503000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
