<?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_411d6e43-ff15-404d-a1ad-6f92d3d75336">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_6d217d27-e0a1-48f2-842c-d2f047518d1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_03c158c5-4600-4766-8306-65a5b56b9001">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_f8527c2a-78d9-4edc-bac9-1af7c1537953">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_e59a4f13-ed9f-4f98-a9bd-3bb344fed13c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_b8be45dc-7738-4a6b-815c-22e4ae9a3059">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_30d7b1ed-769f-418a-9e34-095c46f05d0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_00e9cb9d-e0ba-4997-96ba-ad447d4c3394">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_53c9cb4f-fccd-400d-b841-6a031e6c28b5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_ce0210a6-5288-4967-a6f3-dc3cbdc0a22a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      id="F_1ced59d9-7ee1-4d8d-9222-6f4419c839a9">&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;591,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_411d6e43-ff15-404d-a1ad-6f92d3d75336"
      decimals="-3"
      id="F_1ee08e70-8b56-4fe0-a1ac-039c62d2788b"
      unitRef="U_USD">591000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
