/* ==== Tlicker Guidebook — web edition ======================================
   Used by guidebook.jsp. Images: static/guidebook/img/ (screenshots/, icons/), fonts: static/guidebook/fonts/.
   ========================================================================== */
@font-face{font-family:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/manrope-latin-wght-normal.woff2) format('woff2');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:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/manrope-greek-wght-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;}

:root {
  /* layout: fixed contents sidebar on the left, one reading column (~70ch) with full-width screenshots */
  --ink: #2B2B2B;
  --ink-soft: #4A4A4A;
  --muted: #6B6B6B;
  --teal: #0AE5B5;
  --teal-head: #059B7A;   /* guide heading teal, deepened slightly for contrast */
  --teal-ink: #047A61;    /* small teal text */
  --mint: #CEFFF4;
  --mint-soft: #EFFFFB;
  --mint-mid: #97FAE5;
  --yellow: #FFDD00;
  --lilac: #DCA5FB;
  --link-line: #FF9393;
  --rule: #E6E6E6;
  --grey-cell: #E3E3E3;
  --paper: #FFFFFF;
  --sidebar-w: 300px;
  --measure: 700px;
  --radius-box: 18px;
  --topbar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'tnum' 0;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-weight: 400; }

/* ---- reading progress ---------------------------------------------------- */
.progress { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: 3px; z-index: 40; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--teal); }

/* ---- sidebar / table of contents ------------------------------------------ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 30;
  display: flex; flex-direction: column;
  background: #FAFFFE; border-right: 1px solid #E4F3EF;
}
.sidebar-head { padding: 26px 24px 14px; }
.sidebar-head a.brand { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.sidebar-head img { width: 118px; height: auto; display: block; }
.sidebar-head .edition { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.toc-filter { position: relative; margin: 6px 20px 10px; }
.toc-filter input {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 9px 34px 9px 36px; border-radius: 999px; border: 1px solid #D5E9E4; background: #fff;
}
.toc-filter input::placeholder { color: #8A8A8A; }
.toc-filter input:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(10, 229, 181, .25); }
.toc-filter .search-ico { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.toc-filter .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; display: none; }
.toc-filter.has-value .clear { display: block; }
.toc-filter .clear:hover { background: #EEF7F5; }
.toc-heading { margin: 4px 24px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.toc { flex: 1; overflow-y: auto; padding: 0 12px 28px; overscroll-behavior: contain; scrollbar-width: thin; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc-chapter { margin: 2px 0; }
.toc-row { display: flex; align-items: center; gap: 2px; }
.toc-link {
  flex: 1; display: block; text-decoration: none; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.35;
}
.toc-link:hover { background: #EDFBF7; color: var(--ink); }
.toc-link.lvl1 { font-weight: 700; color: var(--ink); }
.toc-link.lvl2 { padding-left: 24px; }
.toc-link.lvl3 { padding-left: 38px; font-size: 13.5px; color: var(--muted); }
.toc-link[aria-current="true"] { color: var(--ink); font-weight: 700; }
.toc-link[aria-current="true"] .lbl {
  /* highlighter swipe, as used for roles in the guide; clones across wrapped lines */
  background: linear-gradient(177deg, transparent 0 9%, var(--yellow) 9% 93%, transparent 93% 100%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .3em; margin: 0 -.3em; border-radius: 6px 4px 7px 5px;
}
.toc-link.in-path:not([aria-current="true"]) { color: var(--ink); }
.toc-toggle {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--muted); display: grid; place-items: center;
}
.toc-toggle:hover { background: #EDFBF7; color: var(--ink); }
.toc-toggle img { width: 14px; height: 14px; display: block; transition: transform .18s ease; }
.toc-chapter.open > .toc-row .toc-toggle img { transform: rotate(90deg); }
.toc-chapter:not(.open) > .toc-sub { display: none; }
.toc-sub { padding-bottom: 4px !important; }
.toc-empty { margin: 8px 12px; font-size: 14px; color: var(--muted); }
.toc [hidden] { display: none !important; }
.sidebar-foot { padding: 12px 24px 18px; border-top: 1px solid #E4F3EF; font-size: 13px; color: var(--muted); }
.sidebar-foot a { color: var(--ink-soft); font-weight: 700; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

.sidebar .close-drawer {
  display: none; position: absolute; right: 12px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; place-items: center; color: var(--ink);
}
.sidebar .close-drawer:hover { background: #EDFBF7; }
.sidebar .close-drawer img { width: 18px; height: 18px; display: block; }

/* ---- mobile top bar ------------------------------------------------------- */
.topbar { display: none; }
.scrim { display: none; }

/* ---- main column ---------------------------------------------------------- */
main { margin-left: var(--sidebar-w); }
.content { max-width: calc(var(--measure) + 64px); margin: 0 auto; padding: 0 32px 40px; }

/* hero (cover page) */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 58vh, 560px);
  display: grid; align-items: center;
  padding: 72px 32px 56px;
  background:
    radial-gradient(38% 46% at 14% 12%, rgba(255, 221, 0, .55) 0%, rgba(255, 221, 0, .32) 45%, rgba(255, 221, 0, 0) 100%),
    radial-gradient(120% 120% at 100% 100%, rgba(10, 229, 181, .72) 0%, rgba(10, 229, 181, .28) 38%, rgba(255, 255, 255, 0) 62%),
    #fff;
}
.hero-inner { position: relative; z-index: 1; max-width: calc(var(--measure) + 0px); width: 100%; margin: 0 auto; text-align: center; }
.hero-logo { width: min(420px, 76%); height: auto; display: block; margin: 0 auto 26px; }
.hero h1 { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.hero .lede { margin: 14px auto 0; max-width: 36ch; color: var(--ink-soft); font-size: 1.05rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 16px;
}
.hero-cta img { width: 16px; height: 16px; display: block; }
.hero-cta:hover { background: #000; }
.hero-art { position: absolute; left: 3%; bottom: 0; width: min(250px, 30%); height: auto; transform: scaleX(-1); z-index: 0; pointer-events: none; }

/* chapters & headings */
.chapter { padding-top: 24px; }
.chapter + .chapter { margin-top: 56px; border-top: 1px solid var(--rule); }
h2.ch-title, h3.sec-title, h4.sub-title { position: relative; color: var(--teal-head); scroll-margin-top: calc(var(--topbar-h) + 24px); text-wrap: balance; }
h2.ch-title { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.3rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin: 1.1em 0 .45em; }
h3.sec-title { font-size: 1.48rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; margin: 2.1em 0 .5em; }
h4.sub-title { font-size: 1.18rem; font-weight: 600; line-height: 1.35; margin: 1.7em 0 .4em; }
.copy-link {
  display: inline-grid; place-items: center; vertical-align: middle; margin-left: .35em;
  width: 1.5em; height: 1.5em; font-size: .62em; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted); opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.copy-link img { width: 1.05em; height: 1.05em; display: block; }
h2:hover .copy-link, h3:hover .copy-link, h4:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
.copy-link:hover { background: #EDFBF7; color: var(--ink); }
@media (hover: none) { .copy-link { opacity: .55; } }

.content p { margin: .75em 0; }
.content strong { font-weight: 700; }
.content a.ext {
  font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.content a.ext:hover { text-decoration-color: var(--ink); }
.muted-ui { color: #606060; }

/* steps */
ol.steps { list-style: none; margin: 1.1em 0 1.4em; padding: 0; }
li.step {
  display: grid; grid-template-columns: 2.1em 1fr; column-gap: .35em; align-items: baseline;
  margin: 0 0 .4em; scroll-margin-top: calc(var(--topbar-h) + 24px);
}
.step-num {
  grid-column: 1; justify-self: start; color: var(--teal-ink); font-weight: 700; text-decoration: none;
  font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 .1em;
}
.step-num:hover { background: var(--mint); }
.step-body { grid-column: 2; min-width: 0; }
.step-body > p:first-child { margin-top: 0; }
.step-body > p:last-child { margin-bottom: .2em; }
li.step > figure { grid-column: 1 / -1; }
ul.substeps { margin: .3em 0 .5em; padding-left: 1.2em; }
ul.substeps li { margin: .2em 0; }
ul.substeps li::marker { color: var(--teal-ink); }

/* UI button labels (as in the guide) */
.chip {
  display: inline-block; white-space: nowrap; vertical-align: baseline;
  font-weight: 700; font-size: .86em; line-height: 1.45; letter-spacing: .005em;
  padding: .13em .78em .15em; margin: 0 .08em; border-radius: 999px;
  background: var(--chip-bg, var(--yellow)); color: var(--chip-fg, var(--ink));
  box-shadow: inset 0 0 0 1px var(--chip-line, transparent);
}
.chip-yellow { --chip-bg: #FFDD00; --chip-fg: #2B2B2B; }
.chip-teal { --chip-bg: #0AE5B5; --chip-fg: #2B2B2B; }
.chip-dark { --chip-bg: #2B2B2B; --chip-fg: #FFFFFF; }
.chip-mint { --chip-bg: #97FAE5; --chip-fg: #2B2B2B; }
.chip-grey { --chip-bg: #D9D9D9; --chip-fg: #2B2B2B; }
.chip-grey2 { --chip-bg: #E2E2E2; --chip-fg: #2B2B2B; }
.chip-outline { --chip-bg: #FFFFFF; --chip-fg: #5E5E5E; --chip-line: #CACACA; font-weight: 500; }
.chip-cream { --chip-bg: #FFF7CB; --chip-fg: #2B2B2B; }
.chip img { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; }
.chip-icon { padding-left: .5em; padding-right: .5em; }

/* marker highlights behind role words */
mark.hl { position: relative; z-index: 0; background: none; color: inherit; padding: 0 .1em; }
mark.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .1em; bottom: .02em;
  background: var(--hl, var(--yellow)); border-radius: .32em .22em .38em .28em; transform: rotate(-2.4deg);
}

/* inline Office icons */
img.ico { width: 1.2em; height: 1.2em; vertical-align: -.24em; margin: 0 .12em; }

/* screenshots */
figure.shot { margin: .9em 0 1.9em; }
figure.shot .zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px;
}
figure.shot img { display: block; width: 100%; height: auto; }

/* boxes */
.box {
  background: var(--mint); border-radius: var(--radius-box); padding: 18px 24px 18px 22px;
}
.box ul { margin: 0; padding-left: 1.25em; }
.box li { margin: .22em 0; }
.box li::marker { color: var(--ink); }
.callout { margin: 1.1em 0 1.6em; max-width: 600px; }
.callout .callout-title { margin: 0 0 .45em; font-weight: 700; }

.tips { margin: 2em 0 2.2em; scroll-margin-top: calc(var(--topbar-h) + 24px); }
.tips-title { display: flex; align-items: center; gap: .45em; margin: 0 0 .5em; color: var(--teal-head); font-size: 1.2rem; font-weight: 600; }
.tips-title img { width: 26px; height: auto; }
.tips .box { padding: 18px 26px 18px 24px; }

.features { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: .8em 0 1.4em; }
.features .box ul { columns: 1; }
.features-art { width: 100%; max-width: 280px; height: auto; justify-self: center; }

.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; margin: 1em 0 1.2em; }
.layers .layers-art { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.layers dl { margin: 0; }
.layers dt { font-weight: 700; }
.layers dl > div + div { margin-top: .85em; }
.layers dd { margin: .2em 0 0; color: var(--ink-soft); }

/* comparison tables */
.table-wrap { margin: 1em 0 1.8em; overflow-x: auto; }
table.roles { width: 100%; border-collapse: collapse; font-size: .95em; line-height: 1.5; table-layout: fixed; }
table.roles th, table.roles td { padding: 9px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid #9A9A9A; }
table.roles th + th, table.roles td + td { border-left: 1px solid #9A9A9A; }
table.roles thead .icons th { border-bottom: 1px solid #9A9A9A; text-align: center; padding: 6px 12px 4px; }
table.roles thead .icons img { width: 46px; height: 46px; display: inline-block; }
table.roles thead .labels th { font-weight: 700; }
table.roles tbody tr.subhead th { background: var(--grey-cell); font-weight: 700; }
table.roles tbody td { color: var(--ink-soft); }
table.pair { width: 100%; border-collapse: collapse; margin: 0; }
table.pair td { width: 50%; text-align: center; vertical-align: top; padding: 4px 18px 10px; color: var(--ink-soft); }
table.pair td + td { border-left: 1px solid #9A9A9A; }
table.pair img { width: 56px; height: 56px; display: block; margin: 0 auto 8px; }
table.pair p { margin: 0; }

/* chapter footer navigation */
.chapter-next { margin: 2.8em 0 0; display: flex; justify-content: flex-end; }
.chapter-next a {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; text-decoration: none;
  padding: 12px 18px; border-radius: 14px; border: 1px solid var(--rule);
}
.chapter-next a:hover { border-color: var(--teal); background: var(--mint-soft); }
.chapter-next .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.chapter-next .t { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.chapter-next .t img { width: 14px; height: 14px; display: block; }

/* page footer */
.site-foot { margin-top: 80px; padding: 26px 0 40px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-foot img { width: 92px; height: auto; display: block; }
.site-foot a { color: var(--ink-soft); font-weight: 700; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

/* floating controls */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 35; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top img { width: 18px; height: 18px; display: block; }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(20, 24, 23, .9);
  display: grid; grid-template-rows: auto 1fr auto; padding: 14px 18px 18px;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-bar { display: flex; justify-content: flex-end; }
.lightbox .lb-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .26); }
.lightbox .lb-close img { width: 18px; height: 18px; display: block; }
.lightbox .lb-stage { display: grid; place-items: center; min-height: 0; overflow: auto; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; border-radius: 8px; cursor: zoom-out; }
.lightbox .lb-cap { color: #EAF7F3; text-align: center; margin: 12px auto 0; max-width: 70ch; font-size: 15px; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 270px; }
}
@media (max-width: 960px) {
  :root { --sidebar-w: 0px; --topbar-h: 58px; }
  body { font-size: 16.5px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 45; height: var(--topbar-h); padding: 0 14px 0 18px;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #E4F3EF;
  }
  .topbar img { width: 96px; height: auto; display: block; }
  .toc-open {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700;
    border: 1px solid #D5E9E4; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  }
  .toc-open img { width: 16px; height: 16px; display: block; }
  .progress { left: 0; top: var(--topbar-h); }
  .sidebar {
    width: min(86vw, 340px); transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; z-index: 70;
  }
  .sidebar.open { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, .18); }
  .scrim { position: fixed; inset: 0; z-index: 65; background: rgba(20, 24, 23, .38); }
  .scrim.show { display: block; }
  .sidebar .close-drawer { display: grid; }
  .hero { min-height: auto; padding: 56px 22px 200px; }
  .hero-art { left: 50%; width: 190px; transform: translateX(-50%) scaleX(-1); }
  .content { padding: 0 20px 32px; }
}
@media (max-width: 640px) {
  .features, .layers { grid-template-columns: 1fr; gap: 18px; }
  .features-art { max-width: 210px; }
  .layers .layers-art { max-width: 240px; }
  li.step { grid-template-columns: 1.8em 1fr; }
  table.roles { font-size: .88em; }
  table.roles th, table.roles td { padding: 8px 8px; }
  h3.sec-title { font-size: 1.32rem; }
  .chapter-next { justify-content: stretch; }
  .chapter-next a { width: 100%; }
}

/* ---- print ---------------------------------------------------------------------- */
@media print {
  .sidebar, .topbar, .progress, .to-top, .toast, .copy-link, .lightbox, .scrim, .hero-cta, .chapter-next, .skip-link { display: none !important; }
  main { margin: 0; }
  .hero { min-height: auto; page-break-after: always; }
  .content { max-width: none; padding: 0; }
  .chapter { page-break-before: always; border: 0 !important; margin: 0 !important; }
  figure.shot, .tips, .box, table { break-inside: avoid; }
  body { font-size: 11pt; }
}
