<?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_ea3a8152-4a66-495a-8e26-80290fc0feda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_ac28a325-456e-47c7-ba93-95cae53a3164">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_2ebba090-030e-4ebe-a12b-8df032ec1367">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_592d476b-3a31-4a50-8ae3-abb3604ed421">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_35aa6c30-1401-4054-9da2-41e14add055e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_93d03ae8-c776-489c-b1f7-4afdbdca4534">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_dea132da-27a5-44a2-a8c4-70d0c0ef6a9c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_6e6277a8-ec2a-4b75-bca3-398b04ea95bf">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_dd869522-d9f4-423d-85e1-f130fb34b187">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_a6e7ac9d-7b9a-45a4-bbc2-97dd6dc3ac52">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ea3a8152-4a66-495a-8e26-80290fc0feda"
      id="F_9806800a-c1f4-4ff0-8563-0679f570c9b0">&lt;p style="tab-size:26.66px;font-size:12pt;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;10,827,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_ea3a8152-4a66-495a-8e26-80290fc0feda"
      decimals="-3"
      id="F_ed5dfb26-699a-48b5-aa21-be9474cc03f5"
      unitRef="U_USD">10827000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
