<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_16decca5-8da0-4be9-aa8e-218b240165e6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-27</startDate>
            <endDate>2026-01-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_b98bf971-893b-4e8a-a739-a3d6dbf19484">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_aa162bd0-64bb-4be8-9cfa-8f1897c73e11">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_962a71bb-cb83-4606-b430-bb0b7854e7fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_cbbdbe5c-acce-4bd7-9674-992803444cd3">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_f0a2ab08-5068-4e67-a83b-cc33e9c95685">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_62cb6509-13bc-40f1-abff-69a506367605">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_3ac92575-cae5-49f1-a54f-c8f1b840edcd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_e458c42f-39f7-4490-8956-f22258bfa047">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_71cd76a1-be44-47b9-90d6-c2b7a0de93ef">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_16decca5-8da0-4be9-aa8e-218b240165e6"
      id="F_e0c67ee1-4b22-45cf-8737-4cfd33918bf3">&lt;p style="font-size:10pt;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,816,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_16decca5-8da0-4be9-aa8e-218b240165e6"
      decimals="0"
      id="F_4e52cd7e-bdac-4fd6-91b0-16bc7098f4be"
      unitRef="U_USD">1816000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
