/* Trinico Cloud phone menu, 1 November 2026. Goes with tc-nav.js. Below 1200 px only.
   Served values: Montserrat, ink #13202E, body grey #3A4655, muted #5B6573, cobalt #1A5FAF and #1B77C9,
   green #ABC441 with ink text (8.40:1), 18 px cards, 44 px minimum targets, 16 px inputs (no iOS zoom). */
@media (max-width: 1199.98px) {
  html body #mainNavbar, html body #mainNavbar.collapse, html body #mainNavbar.collapse.show, html body #mainNavbar.collapsing { display: none !important; }
  html.tcn-lock, body.tcn-open { overflow: hidden !important; }

  .tcn-bar-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
  .tcn-bar-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  header .tcn-bar-search svg, header .tcn-bar-search svg * { color: inherit !important; }
  .tcn-bar-search:focus-visible { outline: 2px solid #1B77C9; outline-offset: 2px; }
  /* over the homepage photo the bar's icons are white (homepage.tpl); the search icon follows them */
  html:has(.tcx-home .stage) body:not(.tcn-open) header#header.trinico-hdr:not(.is-pinned) .tcn-bar-search { color: #fff; }

  .tcn {
    --tcn-ink: #13202E; --tcn-ink2: #3A4655; --tcn-mute: #5B6573; --tcn-line: #E6EAF0; --tcn-soft: #F3F6FA;
    --tcn-blue: #1A5FAF; --tcn-blue2: #1B77C9; --tcn-green: #ABC441; --tcn-ease: cubic-bezier(.2, .8, .2, 1);
    /* z-index scale: WhatsApp widget 10000 < this menu 10060 (backdrop 10059) < site modals 10500+ */
    position: fixed; inset: 0; z-index: 10060; display: grid; grid-template-rows: 60px minmax(0, 1fr) auto;
    height: 100vh; height: 100dvh; background: #fff; color: var(--tcn-ink); color-scheme: light;
    font-family: var(--tc-menu-ff, Montserrat), Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
    opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .26s var(--tcn-ease);
  }
  .tcn[hidden] { display: none; }
  .tcn.is-open { opacity: 1; transform: none; }
  .tcn *, .tcn *::before, .tcn *::after { box-sizing: border-box; }
  :where(.tcn) a { text-decoration: none; color: inherit; }
  :where(.tcn) ul { list-style: none; margin: 0; padding: 0; }
  :where(.tcn) button { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
  .tcn a, .tcn button { -webkit-tap-highlight-color: transparent; }
  .tcn :focus { outline: none !important; box-shadow: none; }
  .tcn a:focus-visible, .tcn button:focus-visible { outline: 2px solid var(--tcn-blue2) !important; outline-offset: -3px; border-radius: 12px; }
  .tcn .tcn-x:focus-visible, .tcn .tcn-search button:focus-visible { outline-offset: 2px; }
  .tcn .tcn-search input:focus-visible { outline: none !important; }
  .tcn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tcn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .tcn-ic { flex: none; width: 22px; height: 22px; background: var(--tcn-blue); -webkit-mask: var(--tcn-i) center / contain no-repeat; mask: var(--tcn-i) center / contain no-repeat; }

  /* top: logo where the bar's logo is, close where the menu button is */
  .tcn-top { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; border-bottom: 1px solid var(--tcn-line); }
  .tcn-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .tcn-logo img { display: block; height: 30px; width: auto; }
  .tcn-x { width: 44px; height: 44px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; background: var(--tcn-soft) !important; color: var(--tcn-ink) !important; }
  .tcn-x svg { width: 20px; height: 20px; }

  .tcn-body { position: relative; overflow: hidden; }
  .tcn-main, .tcn-level { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
  .tcn-main { transition: transform .28s var(--tcn-ease), opacity .2s ease; }
  .tcn-main.is-away { transform: translateX(-22%); opacity: 0; }

  /* domain search: the site's main job, first in every direction */
  .tcn-search { position: relative; display: flex; align-items: center; margin: 16px 16px 8px; height: 54px; border: 1.5px solid #7C8A9C; border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
  .tcn-search:focus-within { border-color: var(--tcn-blue2); box-shadow: 0 0 0 4px rgba(27, 119, 201, .16); }
  .tcn-search input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 16px; border: 0; outline: 0; background: transparent; font: 500 16px/1 inherit; font-family: inherit; color: var(--tcn-ink); }
  .tcn-search input::placeholder { color: #6B7685; opacity: 1; }
  .tcn-search button { width: 44px; height: 44px; margin-right: 4px; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--tcn-green) !important; color: var(--tcn-ink) !important; }
  .tcn-search button:active { transform: scale(.96); }

  .tcn-kicker { margin: 24px 16px 4px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--tcn-mute); }

  /* rows (A and B) */
  .tcn-rows, .tcn-acc { margin-top: 8px; }
  .tcn-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; text-align: left; font-size: 17px; font-weight: 600; color: var(--tcn-ink); position: relative; }
  .tcn-row > span:not(.tcn-ic):not(.tcn-here) { flex: 1; min-width: 0; }
  .tcn-row > .tcn-here { flex: 0 0 7px; }
  .tcn-row::after { content: ''; position: absolute; left: 52px; right: 16px; bottom: 0; height: 1px; background: var(--tcn-line); }
  .tcn-row:active { background: var(--tcn-soft); }
  .tcn-chev { width: 18px !important; height: 18px !important; color: #8592A3; transition: transform .25s var(--tcn-ease); }
  .tcn-row[aria-expanded="true"] .tcn-chev { transform: rotate(90deg); color: var(--tcn-blue); }

  /* A: each section on its own level */
  .tcn-level { background: #fff; transform: translateX(100%); transition: transform .3s var(--tcn-ease); }
  .tcn-level.is-on { transform: none; }
  .tcn-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 8px 8px 0; padding: 0 12px 0 6px; font-size: 15px; font-weight: 600; color: var(--tcn-blue) !important; }
  .tcn-ltitle { margin: 4px 16px 10px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--tcn-ink); text-wrap: balance; }
  .tcn-sub a { display: flex; align-items: flex-start; gap: 14px; min-height: 56px; padding: 12px 16px; }
  .tcn-sub a:active { background: var(--tcn-soft); }
  .tcn-sub .tcn-ic { margin-top: 1px; }
  .tcn-st { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .tcn-st b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--tcn-ink); }
  .tcn-st small { font-family: 'Open Sans', system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: var(--tcn-mute); text-wrap: pretty; }

  /* B: quick tiles, then an accordion */
  .tcn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 16px 0; }
  .tcn-tiles a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 16px; border-radius: 18px; background: var(--tcn-soft); transition: transform .15s, background .15s; }
  .tcn-tiles a:active { transform: scale(.98); background: #EAF1F9; }
  .tcn-tiles .tcn-ic { width: 28px; height: 28px; }
  .tcn-tiles span:last-child { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--tcn-ink); }
  .tcn-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--tcn-ease); }
  .tcn-fold > div { overflow: hidden; visibility: hidden; transition: visibility 0s .3s; }
  [aria-expanded="true"] + .tcn-fold { grid-template-rows: 1fr; }
  [aria-expanded="true"] + .tcn-fold > div { visibility: visible; transition: visibility 0s 0s; }
  .tcn-acc .tcn-sub { padding: 4px 0 10px 36px; }
  .tcn-acc .tcn-sub a { min-height: 48px; padding: 10px 16px; }

  /* C: large type, sections open in place, no icons */
  .tcn[data-v="C"] .tcn-big { margin-top: 10px; }
  .tcn-big .tcn-row { min-height: 64px; gap: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
  .tcn-big .tcn-row::after { left: 16px; }
  .tcn-big .tcn-row svg { width: 22px; height: 22px; color: var(--tcn-blue); transition: transform .28s var(--tcn-ease); }
  .tcn-big .tcn-row[aria-expanded="true"] .tcn-plus { transform: rotate(45deg); }
  .tcn-big .tcn-sub { padding: 6px 0 14px; }
  .tcn-big .tcn-sub a { min-height: 44px; padding: 10px 16px; }
  .tcn-big .tcn-st b { font-size: 17px; font-weight: 500; color: var(--tcn-ink2); }
  .tcn[data-v="C"] .tcn-help ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .tcn[data-v="C"] .tcn-help .tcn-ic { display: none; }

  /* help */
  .tcn-help a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--tcn-ink2); }
  .tcn-help .tcn-ic { width: 20px; height: 20px; }
  .tcn-help a:active { background: var(--tcn-soft); }

  /* dock: currency and account, in thumb reach */
  .tcn-dock { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tcn-line); background: #fff; box-shadow: 0 -10px 24px rgba(15, 32, 55, .06); }
  .tcn-cur { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
  .tcn-cur-l { font-size: 13px; font-weight: 600; color: var(--tcn-mute); }
  .tcn-seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--tcn-soft); border: 1px solid var(--tcn-line); }
  .tcn-seg button { min-width: 60px; height: 44px; padding: 0 12px; border-radius: 11px !important; font-size: 14px; font-weight: 700; color: var(--tcn-ink2) !important; }
  .tcn-seg button[aria-pressed="true"] { background: #fff !important; color: var(--tcn-ink) !important; box-shadow: 0 1px 3px rgba(15, 32, 55, .14); }
  .tcn-acct { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcn-acct > :only-child { grid-column: 1 / -1; }
  .tcn-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: transform .15s; }
  .tcn-btn:active { transform: scale(.98); }
  .tcn-btn-line { border: 1.5px solid var(--tcn-blue); color: var(--tcn-blue) !important; background: #fff; }
  .tcn-btn-main { background: var(--tcn-green); color: var(--tcn-ink) !important; }


  /* empty search: say what to type, inline (no alert) */
  .tcn-search[data-err] { border-color: #B42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
  .tcn-err { margin: 2px 18px 6px; font-size: 13px; font-weight: 600; color: #B42318; }
  .tcn-err[hidden] { display: none; }

  /* you are here: the current page and its section */
  .tcn [aria-current="page"] .tcn-st b, .tcn a.tcn-row[aria-current="page"] > span:not(.tcn-ic) { color: var(--tcn-blue); }
  .tcn-here { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tcn-green); box-shadow: 0 0 0 3px rgba(171, 196, 65, .25); }
  .tcn-st .tcn-here { display: inline-block; margin-left: 8px; vertical-align: middle; }

  /* pointer devices (tablets with a trackpad, small laptops) get hover states too */
  @media (hover: hover) {
    .tcn-row:hover, .tcn-sub a:hover, .tcn-help a:hover { background: var(--tcn-soft); }
    .tcn-tiles a:hover { background: #EAF1F9; }
    .tcn-x:hover { background: #E6ECF4 !important; }
    .tcn-btn-main:hover { filter: brightness(1.04); }
    .tcn-btn-line:hover { background: #F3F7FC; }
    .tcn-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
  }

  /* tablets: a 440 px sheet from the right over a dimmed page, not a stretched full screen */
  .tcn-bd { position: fixed; inset: 0; z-index: 10059; background: rgba(13, 22, 36, .42); opacity: 0; transition: opacity .22s ease; }
  .tcn-bd.is-on { opacity: 1; }
  .tcn-bd[hidden] { display: none; }
  @media (min-width: 600px) {
    .tcn { left: auto; width: 440px; box-shadow: -24px 0 48px rgba(13, 22, 36, .18); transform: translateX(24px); }
    .tcn.is-open { transform: none; }
  }
  @media (max-width: 599.98px) { .tcn-bd { display: none !important; } }
  .tcn a:hover, .tcn a:focus, .tcn a:hover *, .tcn a:focus * { text-decoration: none !important; }
  /* entrance: rows arrive 40 ms apart, transform and opacity only */
  .tcn.is-open .tcn-rows > li, .tcn.is-open .tcn-tiles > li, .tcn.is-open .tcn-acc > li, .tcn.is-open .tcn-big > li { animation: tcn-in .32s var(--tcn-ease) both; }
  .tcn.is-open li:nth-child(2) { animation-delay: .04s; } .tcn.is-open li:nth-child(3) { animation-delay: .08s; }
  .tcn.is-open li:nth-child(4) { animation-delay: .12s; } .tcn.is-open li:nth-child(5) { animation-delay: .16s; }
  .tcn.is-open li:nth-child(n+6) { animation-delay: .2s; }
  .tcn-sub li, .tcn-help li { animation: none !important; }
  @keyframes tcn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    .tcn, .tcn-bd, .tcn-main, .tcn-level, .tcn-fold, .tcn-fold > div, .tcn-chev, .tcn-big .tcn-row svg { transition: none !important; }
    .tcn li { animation: none !important; }
  }
}
@media (min-width: 1200px) { .tcn-bar-search, .tcn, .tcn-bd { display: none !important; } }
