<?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_efb85ef0-e290-4822-972b-50899f8aea83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_65208618-6627-45da-ae7c-c5fc266cdf32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_40b5848f-0ef4-4e79-8a0a-6da786d9bdf2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_76d1f643-6323-47e1-8b2a-0c7e9ef23db8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_a2ff96d3-127c-4c22-8eaf-5abe64a20ffb">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_774c61c3-d621-4b4f-ab85-1c873cfcc73b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_1ffcb7c2-f043-4bf8-9c95-583c9fd9a0e8">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_71324dd4-5eda-401a-a62b-f331768ed314">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_379aff59-6e47-4630-b780-f2991f90a8d4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_149bd985-e34f-4bfa-ba65-251f2a8fc8fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_efb85ef0-e290-4822-972b-50899f8aea83"
      id="F_b2933d59-754e-4230-8083-4cf5911133b7">&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;2,080,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_efb85ef0-e290-4822-972b-50899f8aea83"
      decimals="-3"
      id="F_28f6c807-a253-4fa6-8f7c-697d626b1b7d"
      unitRef="U_USD">2080000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
