/* =====================================================================================================
   Platform-wide fixes from Ava's 26-minute recording (16 Oct 2026). Small, page-independent rules only.
   Rollback: delete this file's one <link> in index.html.
   ===================================================================================================== */

/* (16/10: a 46px strip was kept clear down the right of every page for the Messages and Emails tabs. They hide at the edge
   until the mouse reaches them now — devices.css, Ava's device check 21/10 — so the page has its full width back.) */

/* Printing a page printed the whole app: the menu, the photo band, the edge tabs. Print only the page. */
@media print{
  #rk-nav, .rk-masthead, #sk-bandslot, .sk-band, #ch-handle, #em-handle, .sk-tabs, #sk-secbar, .toast, .toasts,
  .sidebar, .topbar, nav, .h2-foot, .h2-links { display:none !important; }
  html .main > .content{ padding:0 !important; }
  body{ background:#fff !important; }
}

/* Drop-down lists took the browser's own hot-pink highlight; the brand is navy. */
html{ accent-color: var(--b-navy, #131b2d); }
select option:checked{ background: var(--b-mist, #eef0f4); color: var(--b-navy, #131b2d); }

/* A menu closes once something in it is chosen (tools/menu.js adds .rk-shut until the pointer leaves). */
html .rk-item.rk-shut .rk-dd{ display:none !important; }
/* My day's task rows (div.dt-row) share a class name with the CapRaise / Lists tables: keep table rows as rows */
.rk table.dt tr.dt-row{display:table-row;padding:0;gap:0;border-top:0}
/* Materials: show a logo or picture whole in its tile — "cover" cut the wordmarks to "See… CAP" */
#view-marketing .mk-th{position:relative}
#view-marketing .mk-th img.mk-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:14px;box-sizing:border-box}
#view-marketing .mk-th img.mk-thumb.on-navy{background:#131b2d}
/* Seeker Files: the photo band already says "Seeker Files" — its own heading is a second copy (same rule as .page-head.sk-part) */
#view-files .sf-pagehead>.sk-label,#view-files .sf-pagehead>h1{display:none!important}
/* Finance and Data room: the photo band already gives the title */
#view-dataroom .page-head .dr-top h1.headline,#fin-root .fin-head h1{display:none!important}
/* Mandates cards: with two tags the buttons squeezed onto two lines — let the row wrap instead, buttons kept whole */
#view-managers .foot{flex-wrap:wrap;row-gap:8px}
#view-managers .foot .e-btn{white-space:nowrap;flex:none}
/* Add contact: the note under "What kind?" had no style of its own and came out as large black text */
.ce-ctype-note{font-family:var(--b-text,EB Garamond,Garamond,Georgia,serif);font-style:italic;font-size:12.5px;color:var(--slate);margin:6px 0 0;line-height:1.4}

/* ---------- 18/10 — scrolling and the menu, across the Platform (tools/feel.js) ---------- */
/* Boxes INSIDE a page pass the scroll on to the page at their end (Ava: "i cant scroll to go back up the full page").
   Windows over the page (the contact card pop-up, dialogs, the full-window file view, the phone menu) keep "contain". */
[data-theme="light"] .rk .cc-scroll,.m-rail,#view-comms .cx-scroll,.rk-home .hx-body,.rk-home .hx-hero .b-lead .leadlist{overscroll-behavior:auto!important}
#view-contactcc:not(.cc-pop) .cc-scroll{overscroll-behavior:auto!important}
/* A drop-down stays open 400 ms after the pointer leaves it (Ava: "the menubar hovering and dissapearing") */
html[data-theme="light"] .rk-item.has-dd.rk-open .rk-dd{display:block}
html[data-theme="light"] .rk-menu .rk-item.has-dd:not(.rk-open):not(:hover):not(:focus-within) .rk-dd{display:none}
/* a wider, taller bridge between the button and its list */
html[data-theme="light"] .rk-dd::before{top:-16px;height:18px;left:-16px;right:-16px}
