/* ============================================================================
   TTEC-Desk — Design & Model Portal — styles
   TTEC's colour tokens (from TTEC's public stylesheet, 2026-11-01) on a light surface, the standard's default for
   enterprise readers. Brand blue is a fill, never text (3.0:1 on white); dark blue carries text (6.4:1) and
   medium-dark blue carries links (5.0:1). Figtree (SIL OFL) self-hosted; no third-party font or script.
   Accessibility-first: scalable type (rem), visible focus, reduced-motion and prefers-contrast honoured, an optional
   high-contrast mode.
   ============================================================================ */

@font-face { font-family: "Figtree"; src: url("/brand/figtree-latin-wght.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("/brand/figtree-latin-ext-wght.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fs: 100%;                       /* driven by the accessibility text-size control */
  --brand: #0495ff;                 /* TTEC brand blue: fills, rules, marks; never text */
  --brand-deep: #012a57;            /* TTEC contrast blue: headings, the header */
  --bg: #f8f8f8;                    /* TTEC bright grey */
  --surface: #ffffff;
  --surface-2: #edf5ff;             /* TTEC neutral blue 1 */
  --ink: #191919;                   /* TTEC neutral blue 7 */
  --ink-soft: #455260;              /* TTEC neutral blue 5 */
  --line: #d1ddf2;                  /* TTEC neutral blue 3 */
  --line-strong: #a3bad3;           /* TTEC neutral blue 4 */
  --accent: #035d9f;                /* TTEC dark blue 1: buttons and chips (6.4:1 on white) */
  --accent-ink: #ffffff;
  --link: #0370bf;                  /* TTEC dark blue 2: links (5.0:1 on white) */
  --focus: #f15523;                 /* TTEC secondary dark orange: the focus ring */
  --ok: #007346;                    /* TTEC dark green */
  --warn: #8a4b00;
  --bad: #b3261e;
  --radius: 10px;
  --maxw: 980px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: var(--fs); }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: var(--link); }

/* High-contrast mode */
body.contrast-high { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-soft: #1a1a1a; --line: #000; --line-strong: #000; --accent: #00407a; --link: #00407a; --focus: #b3001b; }
body.contrast-high .card, body.contrast-high .sidebar, body.contrast-high .app-header { border-width: 2px; }

/* Focus + skip link */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.1rem; background: var(--surface); border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 6px; }
.brand-mark { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--brand); }
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--brand-deep); letter-spacing: -.01em; white-space: nowrap; }
.brand-by { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 1rem; font-size: .92rem; color: var(--ink-soft); }
.role-chip { font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); }
.role-chip.iaxov { background: var(--accent); color: #fff; border-color: var(--accent); }
.role-chip.reader { background: var(--surface-2); color: var(--brand-deep); }
.signed-in { white-space: nowrap; }
.header-signout { margin-left: .75rem; }

/* Layout */
.layout { display: grid; grid-template-columns: 290px 1fr; min-height: calc(100vh - 58px); }
.sidebar { border-right: 1px solid var(--line); background: var(--surface); padding: .8rem .6rem; overflow-y: auto; max-height: calc(100vh - 58px); position: sticky; top: 58px; }
.content { padding: 1.4rem 1.6rem 5rem; min-width: 0; }
.view { max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--line); }
  .brand-by, .signed-in { display: none; }
}

/* Nav */
.nav-section { margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.nav-group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; margin: .9rem .4rem .25rem; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: .4rem; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; color: var(--ink); padding: .42rem .55rem; border-radius: 6px; cursor: pointer; font: inherit; font-size: .9rem; line-height: 1.3; text-decoration: none; }
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--surface-2); border-color: var(--accent); font-weight: 600; }
.nav-top { font-weight: 600; }
.nav-desk { background: var(--brand-deep); color: #fff; flex-direction: column; align-items: flex-start; gap: .1rem; margin-bottom: .3rem; }
.nav-desk small { font-weight: 400; font-size: .76rem; opacity: .9; }
.nav-desk:hover { background: var(--accent); }
.nav-comment-count { font-size: .72rem; color: var(--ink-soft); }

/* Cards and generic */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.muted { color: var(--ink-soft); }
.loading { color: var(--ink-soft); padding: 2rem 0; }
.page-title { margin: 0 0 .2rem; font-size: 1.5rem; color: var(--brand-deep); }
.page-sub { margin: 0 0 1.2rem; color: var(--ink-soft); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 9rem; }
.row > .grow-2 { flex: 2; min-width: 12rem; }
.spacer { flex: 1; }
.mt { margin-top: .6rem; }
.noscript { padding: 1rem; }

button.btn, .btn { font: inherit; font-size: .88rem; cursor: pointer; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: .4rem .8rem; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-sm { padding: .25rem .55rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: .82rem; font-weight: 600; margin: .6rem 0 .2rem; }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; font: inherit; font-size: .9rem; padding: .45rem .55rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }
textarea { min-height: 5rem; resize: vertical; }

/* Pills */
.pill { font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pill.open { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.pill.acknowledged { color: var(--warn); border-color: var(--warn); background: #fbf3e0; }
.pill.resolved { color: var(--ok); border-color: var(--ok); background: #e6f4ec; }
.pill.wontfix { color: var(--ink-soft); border-color: var(--line-strong); background: var(--bg); }
.kind-pill { font-size: .72rem; font-weight: 700; text-transform: capitalize; padding: .1rem .45rem; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.kind-pill.concern, .kind-pill.correction { background: #fbece9; border-color: var(--bad); color: var(--bad); }
.kind-pill.question { background: #fbf3e0; border-color: var(--warn); color: var(--warn); }
.kind-pill.approval { background: #e6f4ec; border-color: var(--ok); color: var(--ok); }

/* Comments */
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: .7rem; background: var(--surface); }
.comment.reply { margin-left: 1.4rem; border-left: 3px solid var(--accent); }
.comment.resolved { opacity: .7; }
.comment.deleted { opacity: .6; border-style: dashed; }
.comment-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); margin-bottom: .35rem; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-body { white-space: pre-wrap; word-wrap: break-word; }
.comment-actions { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.comment-subject { font-weight: 700; }
.comments-panel { margin-top: 2.4rem; border-top: 2px solid var(--line); padding-top: 1.2rem; }
.comments-panel h2 { font-size: 1.15rem; }
.section-comment { margin-left: .5rem; vertical-align: middle; padding: .08rem .45rem; font-size: .8rem; line-height: 1.2; }
.section-thread { margin: .3rem 0 1.3rem; padding: .5rem .2rem .2rem .85rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.section-thread .comment { background: var(--surface); }

/* Rendered markdown */
.md { overflow-wrap: break-word; }
.md h1 { font-size: 1.8rem; line-height: 1.2; margin: 1.4rem 0 .6rem; color: var(--brand-deep); }
.md h2 { font-size: 1.4rem; margin: 1.6rem 0 .5rem; padding-bottom: .25rem; border-bottom: 2px solid var(--brand); color: var(--brand-deep); }
.md h3 { font-size: 1.15rem; margin: 1.3rem 0 .4rem; }
.md h4 { font-size: 1rem; margin: 1.1rem 0 .3rem; }
.md p, .md li { font-size: 1rem; }
.md code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.md pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; overflow-x: auto; }
.md pre code { background: transparent; padding: 0; }
.md blockquote { margin: .8rem 0; padding: .4rem 1rem; border-left: 4px solid var(--brand); background: var(--surface-2); color: var(--ink-soft); }
.md table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); }
.md img { max-width: 100%; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.md-deadlink { color: var(--ink-soft); border-bottom: 1px dotted var(--line-strong); cursor: help; }
.doc-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.doc-toolbar .page-title { margin: 0; }

/* Tables (people, audit, usage) */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--surface-2); }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--brand-deep); color: #fff; padding: .6rem 1.1rem; border-radius: 8px; font-size: .9rem; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* Accessibility tray */
.a11y-tray { position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 50; }
.a11y-toggle { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font: 700 .95rem var(--font); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.a11y-panel { position: absolute; bottom: 3.6rem; right: 0; width: 15rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: .6rem .9rem 1rem; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.a11y-panel fieldset { border: none; padding: 0; margin: .6rem 0 0; }
.a11y-panel legend { font-weight: 700; font-size: .8rem; padding: 0; }
.seg { display: flex; gap: .25rem; margin-top: .3rem; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 3rem; font: inherit; font-size: .8rem; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 5px; padding: .3rem 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (prefers-contrast: more) { :root { --line: #000; --line-strong: #000; --ink-soft: #222; } }

/* Confidentiality notice pinned to the bottom of the nav */
.sidebar-confidential { margin-top: 1.2rem; padding: .7rem .6rem; border-top: 2px solid #7f1d1d; color: #7f1d1d; font-size: .72rem; line-height: 1.45; display: flex; flex-direction: column; gap: .35rem; }
body.contrast-high .sidebar-confidential { color: #6b0000; border-top-color: #6b0000; }
.confidential-chip { font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: #7f1d1d; border: 1px solid #7f1d1d; border-radius: 4px; padding: .1rem .45rem; }
.sidebar-confidential strong { font-size: .74rem; letter-spacing: .04em; color: #7f1d1d; }
.sidebar-confidential a { color: #7f1d1d; text-decoration: underline; }

/* Printing is disabled: a deterrent; formal, security-watermarked copies are requested instead. */
@media print {
  body * { visibility: hidden !important; }
  body::before { content: "CONFIDENTIAL · TRADE SECRET · PROPRIETARY — © IAXOV Inc.\A\A Printing is disabled. This portal is provided to TTEC for review only. Request formal, security-watermarked copies from systems@iaxov.com."; white-space: pre-wrap; visibility: visible !important; position: fixed; inset: 0; padding: 2cm; font: 16px/1.6 var(--font); color: #7f1d1d; }
}

/* Sign-in page */
.signin-main { max-width: 34rem; margin: 2.5rem auto; padding: 0 1rem; display: grid; gap: 1.5rem; }
.signin-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 1.5rem; }
.signin-card h1 { font-size: 1.5rem; margin: 0 0 .75rem; color: var(--brand-deep); }
.signin-form { display: grid; gap: .5rem; margin: 1rem 0; }
.signin-form label { font-weight: 600; }
.signin-form input[type=email], .signin-form input[type=text] { font-size: 1.1rem; padding: .55rem .65rem; }
.signin-form button { justify-self: start; margin-top: .5rem; }
.signin-error { color: var(--bad); font-weight: 600; border-left: 4px solid var(--bad); padding: .35rem .65rem; }
.signin-notice { border-left: 4px solid var(--ok); padding: .35rem .65rem; }
.signin-privacy { font-size: .8rem; color: var(--ink-soft); margin: .4rem 0 0; }
.signin-confidential { position: static; }
