<?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_09699db4-8641-406c-ae66-62d467156bd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_b6c2447b-5918-4ba7-a3a1-e4255681b34f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_0bc3102d-5500-4d87-925e-e9f745928f97">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_56347768-c41e-4017-a00d-6dd8701f88e0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_88570828-2f11-4bf6-9eff-024191fa7000">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_d48a0b3e-6364-46da-9bc3-79850c786591">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_5e53a191-499d-4026-ba55-eed01f56f5d5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_8bfa867d-f86e-4ad3-a823-b6f9e383b245">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_0287002f-a5cb-4dd1-968d-e0161f6039ef">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_198f6248-1741-4605-83f6-160b2059b6f9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_09699db4-8641-406c-ae66-62d467156bd3"
      id="F_bd332992-cb7d-4e2d-9889-77dd10a857f7">&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;1,699,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_09699db4-8641-406c-ae66-62d467156bd3"
      decimals="-3"
      id="F_61658c1f-b11e-45ed-845d-2edc52d5710c"
      unitRef="U_USD">1699000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
