<?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_74979d73-a751-470b-9330-bc67e9befefb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_65085ea1-70a7-4278-8c14-9a98923bf2de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_d7f6432a-b5fa-4ed6-8f97-c8770a73b9f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_09ebc54d-62eb-46f4-a54b-8256d15ba563">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_f9987db4-5f15-40b3-976d-0da462e8a32e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_a750c290-c489-486d-aa1d-b13c77f78747">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_d157c771-d3ae-4053-a9d0-37a3ef3b2bd5">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_4f9eca0a-dd4b-47df-91fe-2fce235d721f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_2a298c8e-5d47-4b39-81c3-e2323df66279">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_fb6ff942-c466-44d2-ac07-3f780dead8d5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74979d73-a751-470b-9330-bc67e9befefb"
      id="F_b2b8ea0a-633c-456a-b6c2-2f23b4580550">&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;3,148,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_74979d73-a751-470b-9330-bc67e9befefb"
      decimals="-3"
      id="F_553dc226-58c6-44ce-81a7-766966e9bb12"
      unitRef="U_USD">3148000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
