<?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_165b6717-f6d4-4e55-b671-b7ce49167ba2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_e85297fe-f5b5-4025-85d4-67714b1ff71f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_55e4bc85-0730-4a5d-8c5f-d1d723709fb1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_2f224bca-8645-42ca-8c67-86c8308d1435">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_5089192b-9669-4a82-898a-65171223d44b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_24dd0727-8ef6-499d-a68d-d2868a49d848">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_d79a1a25-2de0-4ec1-9d13-30bc3e06b57b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_cef22caa-6022-4f88-b70f-48a873df34ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_c3be4c75-3687-4703-bea6-607234f2e0b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_93f07e50-c06e-41b6-9b1d-4d5a2d23f101">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      id="F_4a3ffa78-e9e0-4e89-8d3d-07cadc41cc8e">&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,175,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_165b6717-f6d4-4e55-b671-b7ce49167ba2"
      decimals="-3"
      id="F_d6bd667c-f180-4204-ad99-c8f335082b7c"
      unitRef="U_USD">1175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
