<?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_46eb7374-268c-4373-9414-ff3692ce5095">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_d906592b-212e-49e4-838e-b6bad939b4e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_72f562a1-3d69-4543-b382-60d4586336aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_4e0f0763-56f4-4020-9ab7-3a995f11b55e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_f8d5e32e-7a8a-43b9-8fac-008c1a85e976">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_0a204e10-c2f8-4813-af6f-41e869388f8e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_098fd1ce-9571-41d3-b821-19cd7a77838a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_05872f87-1dea-42dd-8589-29dc70279ee5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_b915b1b3-9f23-4f1f-9aa1-f797e29d0374">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_53e74579-6c21-41de-9cea-a37844a5fbfa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_46eb7374-268c-4373-9414-ff3692ce5095"
      id="F_baddf205-a4d8-48c6-9986-95fabcb2f4d8">&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;228,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_46eb7374-268c-4373-9414-ff3692ce5095"
      decimals="-3"
      id="F_5dd84646-a8c9-4c85-985d-434054f048ee"
      unitRef="U_USD">228000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
