/*
 * Rootstone theme: mid-century modern, after the apiary icon set (core/static/core/icons.svg). A warm cream page
 * with a faint dot grid, paper cards with an ink outline and a hard offset shadow, an ink sidebar, and the set's
 * palette: Ink, Cream, Honey, Mustard, Rust, Teal and Moss. Light and dark modes follow Bootstrap's
 * data-bs-theme on <html> (set by base.html from the top bar's theme menu); sections can set their own.
 * Bootstrap 5.3 is loaded ready-built from its CDN (no Sass build), so this overrides its CSS variables, and the
 * components that hard-code its colours, rather than its Sass variables. Solid colours that carry white text are
 * a shade deeper than the palette's (e.g. rust, moss) to keep 4.5:1 contrast.
 */

:root, [data-bs-theme="light"] {
  --rs-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The icon set's palette. */
  --rs-ink: #2E2A26;
  --rs-cream: #F7EFE2;
  --rs-paper: #FFF9EF;
  --rs-honey: #F2C14E;
  --rs-mustard: #E8A33D;
  --rs-rust: #D96C3F;
  --rs-teal: #2A7F7A;
  --rs-moss: #6B8F4E;

  --rs-page-bg: var(--rs-cream);
  --rs-page-dots: rgba(46, 42, 38, 0.08);
  --rs-surface: var(--rs-paper);
  --rs-surface-2: #F3E8D6;                     /* table heads, the search field, quiet fills */
  --rs-line: var(--rs-ink);                    /* the outline on cards, buttons, menus */
  --rs-shadow-color: var(--rs-ink);            /* their hard offset shadow */
  --rs-hairline: rgba(46, 42, 38, 0.14);       /* rules inside a card */
  --rs-input-border: rgba(46, 42, 38, 0.38);
  --rs-heading: var(--rs-ink);
  --rs-icon-line: var(--rs-ink);               /* the icons' outline (currentColor in the sprite) */
  --rs-sidebar-width: 264px;
  --rs-sidebar-bg: #2E2A26;
  --rs-sidebar-dots: rgba(247, 239, 226, 0.05);
  --rs-shadow: 4px 4px 0 var(--rs-shadow-color);
  --rs-shadow-sm: 3px 3px 0 var(--rs-shadow-color);

  --bs-primary: #2A7F7A;
  --bs-primary-rgb: 42, 127, 122;
  --bs-primary-text-emphasis: #1D5C58;
  --bs-primary-bg-subtle: #D9ECE9;
  --bs-primary-border-subtle: #9CCAC5;
  --bs-secondary: #7A6F63;
  --bs-secondary-rgb: 122, 111, 99;
  --bs-secondary-text-emphasis: #4E463E;
  --bs-secondary-bg-subtle: #EFE6D7;
  --bs-secondary-border-subtle: #D3C6B2;
  --bs-success: #5A7A40;
  --bs-success-rgb: 90, 122, 64;
  --bs-success-text-emphasis: #405A2C;
  --bs-success-bg-subtle: #E4ECD9;
  --bs-success-border-subtle: #BCCFA6;
  --bs-danger: #B9532B;
  --bs-danger-rgb: 185, 83, 43;
  --bs-danger-text-emphasis: #93401F;
  --bs-danger-bg-subtle: #F8E0D4;
  --bs-danger-border-subtle: #EBAF95;
  --bs-warning: #E8A33D;
  --bs-warning-rgb: 232, 163, 61;
  --bs-warning-text-emphasis: #8A5A0E;
  --bs-warning-bg-subtle: #FBEBCB;
  --bs-warning-border-subtle: #F0CB85;
  --bs-info: #3F6E8C;
  --bs-info-rgb: 63, 110, 140;
  --bs-info-text-emphasis: #2D536B;
  --bs-info-bg-subtle: #DCE7EE;
  --bs-info-border-subtle: #A6C0D1;
  --bs-dark: #2E2A26;
  --bs-dark-rgb: 46, 42, 38;
  --bs-dark-text-emphasis: #2E2A26;
  --bs-dark-bg-subtle: #E2D9CB;
  --bs-dark-border-subtle: #B5AA9A;
  --bs-light: #FFF9EF;
  --bs-light-rgb: 255, 249, 239;

  --bs-body-font-family: var(--rs-font);
  --bs-body-font-size: 0.9375rem;
  --bs-body-bg: var(--rs-surface);
  --bs-body-bg-rgb: 255, 249, 239;
  --bs-body-color: #3F3933;
  --bs-body-color-rgb: 63, 57, 51;
  --bs-heading-color: var(--rs-heading);
  --bs-emphasis-color: #2E2A26;
  --bs-emphasis-color-rgb: 46, 42, 38;
  --bs-secondary-color: rgba(63, 57, 51, 0.74);
  --bs-secondary-color-rgb: 63, 57, 51;
  --bs-secondary-bg: var(--rs-surface-2);
  --bs-secondary-bg-rgb: 243, 232, 214;
  --bs-tertiary-color: rgba(63, 57, 51, 0.55);
  --bs-tertiary-bg: var(--rs-page-bg);
  --bs-tertiary-bg-rgb: 247, 239, 226;
  --bs-border-color: rgba(46, 42, 38, 0.18);
  --bs-border-color-translucent: rgba(46, 42, 38, 0.14);
  --bs-border-radius: 0.6rem;
  --bs-border-radius-sm: 0.45rem;
  --bs-border-radius-lg: 0.875rem;
  --bs-link-color: #1F6A65;
  --bs-link-color-rgb: 31, 106, 101;
  --bs-link-hover-color: #B9532B;
  --bs-link-hover-color-rgb: 185, 83, 43;
  --bs-focus-ring-color: rgba(42, 127, 122, 0.3);
  --bs-highlight-bg: #FBE3A6;
}

[data-bs-theme="dark"] {
  --rs-page-bg: #1E1B18;
  --rs-page-dots: rgba(247, 239, 226, 0.05);
  --rs-surface: #29241F;
  --rs-surface-2: #332D27;
  --rs-line: #4F463D;
  --rs-shadow-color: #0D0B09;
  --rs-hairline: rgba(247, 239, 226, 0.1);
  --rs-input-border: rgba(247, 239, 226, 0.26);
  --rs-heading: #F7EFE2;
  --rs-icon-line: #F2E7D5;
  --rs-sidebar-bg: #15120F;
  --rs-sidebar-dots: rgba(247, 239, 226, 0.04);
  /* Variables built from others resolve where they're declared, so these repeat for dark sections in a light page. */
  --rs-shadow: 4px 4px 0 var(--rs-shadow-color);
  --rs-shadow-sm: 3px 3px 0 var(--rs-shadow-color);
  --bs-heading-color: var(--rs-heading);

  --bs-primary: #2A7F7A;
  --bs-primary-rgb: 42, 127, 122;
  --bs-primary-text-emphasis: #7FCBC3;
  --bs-primary-bg-subtle: #16302D;
  --bs-primary-border-subtle: #255C57;
  --bs-secondary: #9A8E80;
  --bs-secondary-rgb: 154, 142, 128;
  --bs-secondary-text-emphasis: #CFC4B5;
  --bs-secondary-bg-subtle: #2E2924;
  --bs-secondary-border-subtle: #50473E;
  --bs-success: #5A7A40;
  --bs-success-rgb: 90, 122, 64;
  --bs-success-text-emphasis: #A9C98C;
  --bs-success-bg-subtle: #222B1A;
  --bs-success-border-subtle: #3F5530;
  --bs-danger: #B9532B;
  --bs-danger-rgb: 185, 83, 43;
  --bs-danger-text-emphasis: #F0A584;
  --bs-danger-bg-subtle: #3A2219;
  --bs-danger-border-subtle: #6E3820;
  --bs-warning: #E8A33D;
  --bs-warning-rgb: 232, 163, 61;
  --bs-warning-text-emphasis: #F2C46E;
  --bs-warning-bg-subtle: #3A2D15;
  --bs-warning-border-subtle: #6B5021;
  --bs-info: #3F6E8C;
  --bs-info-rgb: 63, 110, 140;
  --bs-info-text-emphasis: #9DC2DA;
  --bs-info-bg-subtle: #1A2731;
  --bs-info-border-subtle: #2F4C60;
  --bs-dark: #F2E7D5;
  --bs-dark-rgb: 242, 231, 213;
  --bs-dark-text-emphasis: #F2E7D5;
  --bs-dark-bg-subtle: #1A1714;
  --bs-dark-border-subtle: #4F463D;
  --bs-light: #332D27;
  --bs-light-rgb: 51, 45, 39;

  --bs-body-bg: var(--rs-surface);
  --bs-body-bg-rgb: 41, 36, 31;
  --bs-body-color: #E6DCCB;
  --bs-body-color-rgb: 230, 220, 203;
  --bs-emphasis-color: #FFF9EF;
  --bs-emphasis-color-rgb: 255, 249, 239;
  --bs-secondary-color: rgba(230, 220, 203, 0.7);
  --bs-secondary-color-rgb: 230, 220, 203;
  --bs-secondary-bg: var(--rs-surface-2);
  --bs-secondary-bg-rgb: 51, 45, 39;
  --bs-tertiary-color: rgba(230, 220, 203, 0.5);
  --bs-tertiary-bg: var(--rs-page-bg);
  --bs-tertiary-bg-rgb: 30, 27, 24;
  --bs-border-color: rgba(247, 239, 226, 0.16);
  --bs-border-color-translucent: rgba(247, 239, 226, 0.12);
  --bs-link-color: #6CC0B8;
  --bs-link-color-rgb: 108, 192, 184;
  --bs-link-hover-color: #F2C14E;
  --bs-link-hover-color-rgb: 242, 193, 78;
  --bs-focus-ring-color: rgba(108, 192, 184, 0.35);
  --bs-highlight-bg: #5A4514;
  color-scheme: dark;
}

/* Type: Montserrat, bold headings in ink; small labels in spaced capitals, as in the icon set. */
body { letter-spacing: 0.005em; }
h1, .h1 { font-size: 1.75rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: 0.95rem; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: 0.005em; }
.fw-semibold { font-weight: 600 !important; }
::selection { background: rgba(var(--bs-warning-rgb), 0.45); }

/* The + menus' button (includes/add_button.html): round, honey, the set's plus, the ink outline and hard shadow. */
.btn-add { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid #2E2A26; background: var(--rs-honey);
  box-shadow: 3px 3px 0 var(--rs-shadow-color); transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease; }
.btn-add:hover, .btn-add:focus-visible, .btn-add[aria-expanded="true"] { background: var(--rs-mustard); border-color: #2E2A26;
  transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--rs-shadow-color); }
.btn-add:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--rs-shadow-color); }
.btn-add .rs-icon { color: #2E2A26; }
@media (prefers-reduced-motion: reduce) { .btn-add { transition: none; } }

/* The plant form's fill button (plants/_name_section.html): a paper tile with the set's magic wand, the ink outline
   and hard shadow, honey on hover. */
.btn-wand { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 0.85rem; border: 2px solid #2E2A26; background: #FFF9EF;
  box-shadow: 3px 3px 0 var(--rs-shadow-color); transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease; }
.btn-wand:hover, .btn-wand:focus-visible { background: var(--rs-honey); border-color: #2E2A26;
  transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--rs-shadow-color); }
.btn-wand:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--rs-shadow-color); }
.btn-wand:disabled { opacity: 0.6; }
.btn-wand .rs-icon { color: #2E2A26; }  /* ink on the paper tile, light or dark theme */
@media (prefers-reduced-motion: reduce) { .btn-wand { transition: none; } }

/* Icons from core/static/core/icons.svg ({% icon %} in core/templatetags/icons.py). */
.rs-icon { display: inline-block; flex-shrink: 0; vertical-align: -0.25em; color: var(--rs-icon-line); overflow: visible; }
/* A cream tile behind an icon, so its colours read the same on any background. */
.icon-tile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem;
             border-radius: 0.65rem; background: var(--rs-paper); border: 2px solid var(--rs-ink); box-shadow: 2px 2px 0 var(--rs-shadow-color); }
.icon-tile .rs-icon { color: var(--rs-ink); }
/* In front of a page title (templates/includes/title_icon.html), inline so the title's own layout is kept. */
.title-icon { vertical-align: middle; margin-right: 0.5rem; }
.title-icon-lg { width: 3rem; height: 3rem; }
.title-icon .bi { font-size: 1.4rem; line-height: 1; color: var(--rs-ink); }
.title-icon-lg .bi { font-size: 1.8rem; }

/* Page: cream, with the icon set's faint dot grid. */
.app-body, body.bg-body-tertiary {
  background-color: var(--rs-page-bg) !important;
  background-image: radial-gradient(var(--rs-page-dots) 1.3px, transparent 1.4px);
  background-size: 24px 24px;
}
.app-main { min-width: 0; }

/* A banner (the Operation page header with the weather behind it, the forecast's current conditions): framed like a
   card, with an ink outline and a hard offset shadow. Modules paint its background (e.g. weather.css). */
.rs-banner { position: relative; overflow: hidden; padding: 1.5rem; border: 2px solid var(--rs-line); border-radius: 0.875rem;
             box-shadow: var(--rs-shadow); background-color: var(--rs-surface); }
.rs-banner code { color: inherit; }
.app-content { max-width: 1400px; }

/* Sidebar: ink, fixed beside the content from lg (992px) up; below that an offcanvas opened from the top bar. */
/* It always carries data-bs-theme="dark", so its colour is set by the page's mode (on <html>), not its own. */
.app-sidebar { --rs-sidebar-bg: #2E2A26; }
[data-bs-theme="dark"] .app-sidebar { --rs-sidebar-bg: #15120F; }
.app-sidebar { --bs-offcanvas-width: var(--rs-sidebar-width); --bs-offcanvas-bg: var(--rs-sidebar-bg); background-color: var(--rs-sidebar-bg) !important;
               background-image: radial-gradient(var(--rs-sidebar-dots) 1.3px, transparent 1.4px); background-size: 24px 24px; color: rgba(247, 239, 226, 0.8); }
@media (min-width: 992px) {
  .app-sidebar { width: var(--rs-sidebar-width); flex: 0 0 var(--rs-sidebar-width); position: sticky; top: 0; height: 100vh; border-right: 3px solid var(--rs-honey); }
  .app-sidebar { display: flex; flex-direction: column; }
  .app-sidebar > .sidebar-brand { flex-shrink: 0; }  /* the scrolling body gives way on short screens, not the brand */
  .app-sidebar .offcanvas-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }  /* below the brand, filling the rest */
}
.app-sidebar .sidebar-brand { display: flex; align-items: center; gap: 0.65rem; height: 4.25rem; padding: 0 1.3rem; color: var(--rs-cream); text-decoration: none;
                              font-weight: 700; font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; }
.app-sidebar .sidebar-brand .rs-icon { color: var(--rs-cream); }
.app-sidebar .nav-link { color: rgba(247, 239, 226, 0.78); border: 2px solid transparent; border-radius: 0.75rem; padding: 0.35rem 0.6rem; display: flex; align-items: center;
                         gap: 0.7rem; font-size: 0.875rem; font-weight: 600; transition: background-color 0.15s, color 0.15s, transform 0.15s; }
.app-sidebar .nav-link .nav-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 0.55rem;
                                   background: var(--rs-paper); border: 2px solid var(--rs-ink); }
/* The icon fills most of its tile; !important beats the size the {% icon %} tag writes inline. */
.app-sidebar .nav-link .nav-icon .rs-icon { color: var(--rs-ink); width: 1.55rem !important; height: 1.55rem !important; }
.app-sidebar .nav-link:hover, .app-sidebar .nav-link:focus-visible { color: var(--rs-cream); background: rgba(247, 239, 226, 0.07); }
.app-sidebar .nav-link.active { color: var(--rs-ink); background: var(--rs-honey); border-color: var(--rs-ink); box-shadow: 3px 3px 0 #0D0B09; }
/* An open module's sub-pages (its former tabs), indented under its link on a thin rule. */
.app-sidebar .sidebar-subnav { margin: 0.35rem 0 0.25rem 1.6rem; padding-left: 0.75rem; border-left: 2px solid rgba(247, 239, 226, 0.14); gap: 0.1rem; }
.app-sidebar .sidebar-subnav .nav-link { padding: 0.3rem 0.6rem; font-size: 0.82rem; font-weight: 500; border-radius: 0.55rem; border-width: 0; }
.app-sidebar .sidebar-subnav .nav-link.active { color: var(--rs-cream); background: rgba(247, 239, 226, 0.1); box-shadow: inset 3px 0 0 var(--rs-honey); font-weight: 700; }
.app-sidebar .sidebar-subnav .sidebar-subnav { margin: 0.1rem 0 0.2rem 0.6rem; }
.app-sidebar .sidebar-heading { display: flex; align-items: center; gap: 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
                                color: rgba(247, 239, 226, 0.5); padding: 0 0.6rem; margin: 1.5rem 0 0.6rem; }
.app-sidebar .sidebar-heading::after { content: ""; flex: 1; border-top: 2px solid rgba(247, 239, 226, 0.14); }
.app-sidebar .operation-switcher { background: rgba(247, 239, 226, 0.06); border: 2px solid rgba(247, 239, 226, 0.2); border-radius: 0.75rem; color: var(--rs-cream); font-size: 0.875rem; font-weight: 600; }
.app-sidebar .operation-switcher:hover, .app-sidebar .operation-switcher[aria-expanded="true"] { background: rgba(247, 239, 226, 0.12); border-color: var(--rs-honey); color: var(--rs-cream); }
.app-sidebar .offcanvas-header { height: 4.25rem; border-bottom: 2px solid rgba(247, 239, 226, 0.12); }
.app-sidebar .badge.text-bg-primary { color: var(--rs-ink) !important; background-color: var(--rs-rust) !important; }
.app-sidebar .nav-link.active .badge.text-bg-primary { color: var(--rs-cream) !important; background-color: var(--rs-ink) !important; }

/* Top bar: paper, sticky over the content, with an ink rule under it. */
.app-navbar { position: sticky; top: 0; z-index: 1020; min-height: 4.25rem; background: var(--rs-surface); border-bottom: 2px solid var(--rs-line); }
/* A page's own sticky panel (e.g. the settings page's section list): it stops just below the top bar, and scrolls
   under it rather than over it. From lg up, where it sits beside the content. */
@media (min-width: 992px) {
  .sticky-under-navbar { position: sticky; top: calc(4.25rem + 2px + 1rem); z-index: 1; }
}
.app-navbar .navbar-brand { color: var(--rs-heading); text-transform: uppercase; letter-spacing: 0.14em; }
/* The bar's sides share the space equally from md up, which keeps the + menu centred; on phones the right side takes what it needs. */
.app-navbar .navbar-start { flex: 1 1 auto; min-width: 0; }
@media (min-width: 768px) { .app-navbar .navbar-start, .app-navbar .navbar-end { flex: 1 1 0; min-width: 0; } }
.app-navbar .navbar-search { position: relative; max-width: 22rem; width: 100%; }
/* The workspace's search: a paper pill with an ink outline and a hard shadow, the set's magnifier at its left, honey-ringed on focus. */
.app-navbar .navbar-search > .navbar-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--rs-heading); pointer-events: none; z-index: 1; }
.app-navbar .navbar-search .form-control { padding-left: 2.6rem; border-radius: 50rem; border: 2px solid var(--rs-line); background: var(--rs-surface); min-height: 2.4rem;
                                           font-weight: 500; box-shadow: 3px 3px 0 var(--rs-shadow-color); transition: box-shadow 0.15s; }
.app-navbar .navbar-search .form-control::placeholder { color: var(--bs-secondary-color); }
.app-navbar .navbar-search .form-control:focus { border-color: var(--rs-line); box-shadow: 3px 3px 0 var(--rs-shadow-color), 0 0 0 3px var(--rs-honey); }
/* The search's live results (tenancy/_search_results.html), grouped by module with its icon; also the results page. */
.app-navbar .navbar-search-results { width: min(28rem, calc(100vw - 2rem)); max-height: min(70vh, 32rem); overflow-y: auto; padding: 0.25rem 0; margin-top: 0.35rem; }
.search-group-heading { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem 0.2rem; font-size: 0.7rem; font-weight: 700;
                        letter-spacing: 0.08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.search-result { display: flex; align-items: center; gap: 0.75rem; white-space: normal; }
.navbar-search-results .search-result { padding: 0.4rem 1rem; }
.search-result-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
                      border-radius: 50%; background: var(--rs-surface-2); color: var(--rs-heading); }
.search-result-title { font-weight: 600; color: var(--rs-heading); }
.min-w-0 { min-width: 0; }
.navbar-search-results .search-all { padding: 0.55rem 1rem; margin-top: 0.25rem; font-size: 0.875rem; }
.app-navbar .navbar-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
                           color: var(--bs-body-color); font-size: 1.15rem; border: 2px solid transparent; background: transparent; }
.app-navbar .navbar-icon .rs-icon { width: 1.55rem; height: 1.55rem; }
.app-navbar .navbar-icon:hover, .app-navbar .navbar-icon[aria-expanded="true"] { background: var(--rs-surface-2); border-color: var(--rs-line); color: var(--rs-heading); }
.app-navbar .navbar-icon .badge { position: absolute; top: -0.1rem; right: -0.2rem; font-size: 0.62rem; padding: 0.22em 0.45em; color: #fff !important;
                                  background-color: var(--bs-danger) !important; box-shadow: 0 0 0 2px var(--rs-surface); }
.app-navbar .navbar-user { display: inline-flex; align-items: center; gap: 0.6rem; border: 2px solid transparent; background: transparent; padding: 0.2rem 0.35rem; border-radius: 2rem; color: var(--bs-body-color); }
.app-navbar .navbar-user:hover, .app-navbar .navbar-user[aria-expanded="true"] { background: var(--rs-surface-2); border-color: var(--rs-line); }
.app-navbar .navbar-user .user-name { font-weight: 700; font-size: 0.875rem; color: var(--rs-heading); line-height: 1.1; }
.app-navbar .navbar-user .user-role { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.app-navbar .navbar-user .rounded-circle, .app-navbar .navbar-user .bi-person-circle { box-shadow: 0 0 0 2px var(--rs-line); border-radius: 50%; }
.app-navbar .notification-item { white-space: normal; display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem 1rem; }
/* Each notification's icon on a paper tile with an ink outline, like the sidebar's. */
.app-navbar .notification-icon { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 0.6rem; display: inline-flex; align-items: center; justify-content: center;
                                 background: var(--rs-paper); border: 2px solid var(--rs-ink); }
.app-navbar .notification-icon .rs-icon { color: var(--rs-ink); width: 1.7rem !important; height: 1.7rem !important; }  /* ink on paper in either theme */
/* An ⓘ for a tooltip or a note (the set's info icon): sits on the text's line, and asks for a hover. */
.info-tip { display: inline-flex; vertical-align: -0.15em; line-height: 1; }
.info-tip[data-bs-toggle] { cursor: help; }

/* Cards: paper, an ink outline and a hard offset shadow, like the icon set's tiles. */
.card { --bs-card-bg: var(--rs-surface); --bs-card-border-color: var(--rs-line); --bs-card-border-width: 2px; --bs-card-border-radius: 0.875rem;
        --bs-card-inner-border-radius: calc(0.875rem - 2px); --bs-card-spacer-y: 1.25rem; --bs-card-spacer-x: 1.35rem; --bs-card-cap-padding-y: 0.9rem;
        --bs-card-cap-padding-x: 1.35rem; --bs-card-cap-bg: var(--rs-surface); box-shadow: var(--rs-shadow); }
.card.shadow-sm, .card.shadow { box-shadow: var(--rs-shadow) !important; }
.card .card { box-shadow: var(--rs-shadow-sm); }
.card-header { border-bottom: 2px solid var(--rs-hairline); }
.card-header .h6, .card-header h2.h6, .card-header h3.h6 { font-weight: 700; color: var(--rs-heading); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.card-footer { border-top: 2px solid var(--rs-hairline); background: var(--rs-surface); }
a.card, .card a.stretched-link { transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover, .card:has(> .card-body .stretched-link:hover), .card:has(.stretched-link:hover) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rs-shadow-color) !important; }
.row.g-3, .row.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

/* Tables in cards: a tinted header row in spaced capitals and a warm hover. */
.table { --bs-table-bg: transparent; --bs-table-color: var(--bs-body-color); --bs-table-border-color: var(--rs-hairline); --bs-table-hover-bg: rgba(var(--bs-warning-rgb), 0.1);
         --bs-table-striped-bg: rgba(var(--bs-warning-rgb), 0.06); margin-bottom: 0; }
.table > thead > tr > th { background-color: var(--rs-surface-2); color: var(--rs-heading); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
                           padding-top: 0.8rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--rs-hairline); white-space: nowrap; }
.table > :not(caption) > * > * { padding-left: 1rem; padding-right: 1rem; }
.table > :not(caption) > * > *:first-child { padding-left: 1.35rem; }
.table > :not(caption) > * > *:last-child { padding-right: 1.35rem; }
.table.table-sm > :not(caption) > * > * { padding-left: 0.6rem; padding-right: 0.6rem; }
.card .table > tbody > tr { transition: background-color 0.12s; }
.card .table > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--bs-warning-rgb), 0.1); }
.table .thumb { border-radius: 50% !important; }
/* The arrow between a pair of fields (harvests/_arrow.html): level with the inputs, under their labels. */
.form-arrow { padding-top: 2.35rem; }
@media (max-width: 767.98px) { .form-arrow { padding-top: 0; margin: -0.5rem 0 0.25rem; } }
/* The egg pool card's last-two-weeks bars (harvests/_egg_days.html): small, so the card keeps its size. */
.egg-days { width: 9.5rem; }
.egg-days-bars { display: flex; align-items: flex-end; gap: 2px; height: 3rem; border-bottom: 1px solid var(--rs-hairline); }
.egg-days-bars.is-dense { gap: 1px; }
.egg-days-bar { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--rs-honey); opacity: 0.85; }
.egg-days-bar.is-today { background: var(--rs-rust); opacity: 1; }
/* A table straight in a card keeps to its rounded corners: the tinted head and any filled row are clipped to them. */
.card > .table-responsive { border-radius: var(--bs-card-inner-border-radius); }
.card > .table > thead > tr:first-child > th:first-child { border-top-left-radius: var(--bs-card-inner-border-radius); }
.card > .table > thead > tr:first-child > th:last-child { border-top-right-radius: var(--bs-card-inner-border-radius); }

/* Buttons: pills with an ink outline and a hard shadow that presses in. */
.btn { --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: 0.42rem; --bs-btn-font-size: 0.875rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: 50rem;
       --bs-btn-border-width: 2px; letter-spacing: 0.01em; transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s, color 0.12s, border-color 0.12s; }
.btn-sm { --bs-btn-padding-x: 0.75rem; --bs-btn-padding-y: 0.24rem; --bs-btn-font-size: 0.8rem; --bs-btn-border-radius: 50rem; }
.btn-lg { --bs-btn-border-radius: 50rem; }
.btn-link { box-shadow: none !important; font-weight: 600; border-color: transparent !important; }
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-dark {
  --bs-btn-border-color: var(--rs-line); --bs-btn-hover-border-color: var(--rs-line); --bs-btn-active-border-color: var(--rs-line); --bs-btn-disabled-border-color: var(--rs-line);
  box-shadow: 2px 2px 0 var(--rs-shadow-color);
}
.btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover, .btn-dark:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--rs-shadow-color); }
.btn-primary:active, .btn-secondary:active, .btn-success:active, .btn-danger:active, .btn-warning:active, .btn-info:active, .btn-dark:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled, .btn.disabled { transform: none; box-shadow: none; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #2A7F7A; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #23706B;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1E625E; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #2A7F7A; --bs-btn-focus-shadow-rgb: 42, 127, 122;
}
.btn-secondary {
  --bs-btn-color: var(--rs-ink); --bs-btn-bg: var(--rs-cream); --bs-btn-hover-color: var(--rs-ink); --bs-btn-hover-bg: #EFE2CC;
  --bs-btn-active-color: var(--rs-ink); --bs-btn-active-bg: #E6D6BC; --bs-btn-disabled-color: var(--rs-ink); --bs-btn-disabled-bg: var(--rs-cream); --bs-btn-focus-shadow-rgb: 122, 111, 99;
}
.btn-success {
  --bs-btn-color: #fff; --bs-btn-bg: #5A7A40; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #506D39;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #466032; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5A7A40; --bs-btn-focus-shadow-rgb: 90, 122, 64;
}
.btn-danger {
  --bs-btn-color: #fff; --bs-btn-bg: #B9532B; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #A84A25;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #964120; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #B9532B; --bs-btn-focus-shadow-rgb: 185, 83, 43;
}
.btn-warning {
  --bs-btn-color: var(--rs-ink); --bs-btn-bg: #F2C14E; --bs-btn-hover-color: var(--rs-ink); --bs-btn-hover-bg: #EDB43A;
  --bs-btn-active-color: var(--rs-ink); --bs-btn-active-bg: #E8A33D; --bs-btn-disabled-color: var(--rs-ink); --bs-btn-disabled-bg: #F2C14E; --bs-btn-focus-shadow-rgb: 232, 163, 61;
}
.btn-info {
  --bs-btn-color: #fff; --bs-btn-bg: #3F6E8C; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #38627D;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #31566E; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #3F6E8C; --bs-btn-focus-shadow-rgb: 63, 110, 140;
}
.btn-dark {
  --bs-btn-color: var(--rs-cream); --bs-btn-bg: #2E2A26; --bs-btn-hover-color: var(--rs-cream); --bs-btn-hover-bg: #403A34;
  --bs-btn-active-color: var(--rs-cream); --bs-btn-active-bg: #1F1C19; --bs-btn-disabled-color: var(--rs-cream); --bs-btn-disabled-bg: #2E2A26; --bs-btn-focus-shadow-rgb: 46, 42, 38;
}
[data-bs-theme="dark"] .btn-dark { --bs-btn-color: var(--rs-ink); --bs-btn-bg: var(--rs-cream); --bs-btn-hover-color: var(--rs-ink); --bs-btn-hover-bg: #EFE2CC;
                                   --bs-btn-active-color: var(--rs-ink); --bs-btn-active-bg: #E6D6BC; --bs-btn-disabled-color: var(--rs-ink); --bs-btn-disabled-bg: var(--rs-cream); }
/* Outline buttons: an outline in the colour's text tone, filled on hover. */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info, .btn-outline-dark { --bs-btn-bg: transparent; }
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary-text-emphasis); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2A7F7A; --bs-btn-hover-border-color: #2A7F7A;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1E625E; --bs-btn-active-border-color: #1E625E; --bs-btn-disabled-color: var(--bs-primary-text-emphasis); --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 42, 127, 122;
}
.btn-outline-secondary {
  --bs-btn-color: var(--bs-body-color); --bs-btn-border-color: var(--rs-input-border); --bs-btn-hover-color: var(--rs-heading); --bs-btn-hover-bg: var(--rs-surface-2); --bs-btn-hover-border-color: var(--rs-line);
  --bs-btn-active-color: var(--rs-heading); --bs-btn-active-bg: var(--bs-secondary-bg-subtle); --bs-btn-active-border-color: var(--rs-line); --bs-btn-disabled-color: var(--bs-secondary-color);
  --bs-btn-disabled-border-color: var(--rs-input-border); --bs-btn-focus-shadow-rgb: 122, 111, 99;
}
.btn-outline-success {
  --bs-btn-color: var(--bs-success-text-emphasis); --bs-btn-border-color: var(--bs-success); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #5A7A40; --bs-btn-hover-border-color: #5A7A40;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #466032; --bs-btn-active-border-color: #466032; --bs-btn-disabled-color: var(--bs-success-text-emphasis); --bs-btn-disabled-border-color: var(--bs-success);
  --bs-btn-focus-shadow-rgb: 90, 122, 64;
}
.btn-outline-danger {
  --bs-btn-color: var(--bs-danger-text-emphasis); --bs-btn-border-color: var(--bs-danger); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #B9532B; --bs-btn-hover-border-color: #B9532B;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #964120; --bs-btn-active-border-color: #964120; --bs-btn-disabled-color: var(--bs-danger-text-emphasis); --bs-btn-disabled-border-color: var(--bs-danger);
  --bs-btn-focus-shadow-rgb: 185, 83, 43;
}
.btn-outline-warning {
  --bs-btn-color: var(--bs-warning-text-emphasis); --bs-btn-border-color: var(--bs-warning); --bs-btn-hover-color: var(--rs-ink); --bs-btn-hover-bg: #F2C14E; --bs-btn-hover-border-color: #E8A33D;
  --bs-btn-active-color: var(--rs-ink); --bs-btn-active-bg: #E8A33D; --bs-btn-active-border-color: #E8A33D; --bs-btn-disabled-color: var(--bs-warning-text-emphasis); --bs-btn-disabled-border-color: var(--bs-warning);
  --bs-btn-focus-shadow-rgb: 232, 163, 61;
}
.btn-outline-info {
  --bs-btn-color: var(--bs-info-text-emphasis); --bs-btn-border-color: var(--bs-info); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #3F6E8C; --bs-btn-hover-border-color: #3F6E8C;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #31566E; --bs-btn-active-border-color: #31566E; --bs-btn-disabled-color: var(--bs-info-text-emphasis); --bs-btn-disabled-border-color: var(--bs-info);
  --bs-btn-focus-shadow-rgb: 63, 110, 140;
}
.btn-outline-dark {
  --bs-btn-color: var(--rs-heading); --bs-btn-border-color: var(--rs-line); --bs-btn-hover-color: var(--rs-cream); --bs-btn-hover-bg: #2E2A26; --bs-btn-hover-border-color: #2E2A26;
  --bs-btn-active-color: var(--rs-cream); --bs-btn-active-bg: #1F1C19; --bs-btn-active-border-color: #1F1C19; --bs-btn-disabled-color: var(--rs-heading); --bs-btn-disabled-border-color: var(--rs-line);
  --bs-btn-focus-shadow-rgb: 46, 42, 38;
}
.btn-check:checked + .btn-outline-secondary, .btn-check:checked + .btn-outline-primary { box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.18); }
/* A filter that's on or off (e.g. the Plant Library's Custom and Bookmarked): honey with an ink edge when on, like the sidebar's open page. */
.btn-check:checked + .filter-toggle { color: var(--rs-ink); background: var(--rs-honey); border-color: var(--rs-ink); box-shadow: 2px 2px 0 var(--rs-shadow-color); }
.btn-check:checked + .filter-toggle .bi { color: var(--rs-ink) !important; }
/* The new-sale page's payment method buttons: the picked one looks like Complete sale (.btn-primary). */
.btn-check.payment-method:checked + .btn { color: #fff; background-color: #2A7F7A; border-color: var(--rs-line); box-shadow: 2px 2px 0 var(--rs-shadow-color); }
/* Round icon buttons with a light outline, for row actions. */
.btn-icon { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; --bs-btn-border-radius: 50%; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
            border: 2px solid var(--rs-input-border); color: var(--bs-secondary-color); background: var(--rs-surface); }
.btn-icon:hover { color: var(--rs-heading); border-color: var(--rs-line); background: var(--rs-honey); }
[data-bs-theme="dark"] .btn-icon:hover { color: var(--rs-ink); }
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color); }

/* Badges and status pills: tinted, with an outline in their own tone. */
.badge { font-weight: 700; letter-spacing: 0.03em; padding: 0.36em 0.7em; border-radius: 50rem; }
.badge.text-bg-primary { color: var(--bs-primary-text-emphasis) !important; background-color: var(--bs-primary-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-primary-border-subtle); }
.badge.text-bg-secondary { color: var(--bs-secondary-text-emphasis) !important; background-color: var(--bs-secondary-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-secondary-border-subtle); }
.badge.text-bg-success { color: var(--bs-success-text-emphasis) !important; background-color: var(--bs-success-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-success-border-subtle); }
.badge.text-bg-danger { color: var(--bs-danger-text-emphasis) !important; background-color: var(--bs-danger-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-danger-border-subtle); }
.badge.text-bg-warning { color: var(--bs-warning-text-emphasis) !important; background-color: var(--bs-warning-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-warning-border-subtle); }
.badge.text-bg-info { color: var(--bs-info-text-emphasis) !important; background-color: var(--bs-info-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-info-border-subtle); }
.badge.text-bg-dark { color: var(--bs-dark-text-emphasis) !important; background-color: var(--bs-dark-bg-subtle) !important; box-shadow: inset 0 0 0 1.5px var(--bs-dark-border-subtle); }
.badge.text-bg-light { color: var(--bs-body-color) !important; background-color: var(--rs-surface-2) !important; }
.badge.text-bg-light.border { border-color: var(--rs-hairline) !important; }

/* Inputs and selects: a soft outline that goes ink on focus, with a teal ring. */
.form-control, .form-select { background-color: var(--rs-surface); border: 2px solid var(--rs-input-border); border-radius: 0.6rem; color: var(--bs-body-color); }
.form-control:not(.form-control-sm):not(.form-control-lg):not([type="file"]):not(textarea), .form-select:not(.form-select-sm):not(.form-select-lg) { min-height: 2.45rem; }
.form-control::placeholder { color: var(--bs-tertiary-color); }
.form-control:focus, .form-select:focus { background-color: var(--rs-surface); border-color: var(--rs-line); box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color); color: var(--bs-body-color); }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { border-color: #6CC0B8; }
.form-control:disabled, .form-select:disabled { background-color: var(--rs-surface-2); }
.input-group-text { background-color: var(--rs-surface-2); border: 2px solid var(--rs-input-border); color: var(--bs-secondary-color); }
.form-check-input { border: 2px solid var(--rs-input-border); background-color: var(--rs-surface); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--rs-line); }
[data-bs-theme="dark"] .form-check-input:checked { border-color: var(--bs-primary); }
.form-check-input:focus { border-color: var(--rs-line); box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--rs-heading); }
.form-text { color: var(--bs-secondary-color); }
.form-range::-webkit-slider-thumb { background-color: var(--bs-primary); }
.form-range::-moz-range-thumb { background-color: var(--bs-primary); }

/* Menus, tabs, lists: ink outlines, honey for the active item. */
.dropdown-menu { --bs-dropdown-bg: var(--rs-surface); --bs-dropdown-link-color: var(--bs-body-color); --bs-dropdown-link-hover-bg: var(--rs-surface-2); --bs-dropdown-link-hover-color: var(--rs-heading);
                 --bs-dropdown-link-active-bg: var(--rs-honey); --bs-dropdown-link-active-color: var(--rs-ink); --bs-dropdown-border-color: var(--rs-line); --bs-dropdown-border-width: 2px;
                 --bs-dropdown-border-radius: 0.75rem; --bs-dropdown-font-size: 0.875rem; --bs-dropdown-divider-bg: var(--rs-hairline); box-shadow: var(--rs-shadow) !important; padding: 0.35rem; }
.dropdown-item { border-radius: 0.5rem; }
/* A highlighted item keeps the highlight's ink, even with a muted text utility (e.g. a select's "Pick…" placeholder in
   searchable-select.js), which would otherwise be pale on honey in dark mode. */
.dropdown-item.active, .dropdown-item:active { color: var(--bs-dropdown-link-active-color) !important; }
.app-sidebar .dropdown-menu { --bs-dropdown-bg: #F7EFE2; --bs-dropdown-link-color: #2E2A26; --bs-dropdown-link-hover-bg: #EFE2CC; --bs-dropdown-link-hover-color: #2E2A26;
                              --bs-dropdown-border-color: #2E2A26; --bs-dropdown-divider-bg: rgba(46, 42, 38, 0.14); color: #2E2A26; box-shadow: 4px 4px 0 #0D0B09 !important; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--rs-honey); --bs-nav-pills-link-active-color: var(--rs-ink); --bs-nav-pills-border-radius: 50rem; }
.nav-pills .nav-link { font-weight: 600; border: 2px solid transparent; }
.nav-pills .nav-link.active { border-color: var(--rs-ink); }
.nav-tabs { --bs-nav-tabs-link-active-color: var(--rs-heading); --bs-nav-tabs-link-active-bg: var(--rs-surface); --bs-nav-tabs-border-color: var(--rs-line); --bs-nav-tabs-border-width: 2px;
            --bs-nav-tabs-link-active-border-color: var(--rs-line) var(--rs-line) var(--rs-surface); --bs-nav-tabs-border-radius: 0.75rem; }
.nav-tabs .nav-link { font-weight: 600; color: var(--bs-secondary-color); }
.nav-tabs .nav-link:hover { color: var(--rs-heading); }
.nav-tabs .nav-link.active { box-shadow: inset 0 3px 0 var(--rs-rust); }
.list-group { --bs-list-group-bg: var(--rs-surface); --bs-list-group-color: var(--bs-body-color); --bs-list-group-active-bg: var(--rs-honey); --bs-list-group-active-color: var(--rs-ink);
              --bs-list-group-active-border-color: var(--rs-line); --bs-list-group-border-color: var(--rs-hairline); --bs-list-group-action-hover-bg: var(--rs-surface-2); }
.progress { --bs-progress-bar-bg: var(--bs-primary); --bs-progress-bg: var(--rs-surface-2); --bs-progress-border-radius: 50rem; box-shadow: inset 0 0 0 1.5px var(--rs-hairline); }
.popover { --bs-popover-bg: var(--rs-surface); --bs-popover-border-color: var(--rs-line); --bs-popover-border-width: 2px; --bs-popover-header-bg: var(--rs-surface-2); box-shadow: var(--rs-shadow); }
.tooltip { --bs-tooltip-bg: var(--rs-ink); --bs-tooltip-color: var(--rs-cream); }
.modal { --bs-modal-bg: var(--rs-surface); --bs-modal-border-color: var(--rs-line); --bs-modal-border-width: 2px; --bs-modal-border-radius: 0.875rem; }
.modal-content { box-shadow: 6px 6px 0 var(--rs-shadow-color); }
.offcanvas:not(.app-sidebar) { --bs-offcanvas-bg: var(--rs-surface); }
.accordion { --bs-accordion-bg: var(--rs-surface); --bs-accordion-border-color: var(--rs-hairline); --bs-accordion-active-bg: var(--rs-surface-2); --bs-accordion-active-color: var(--rs-heading); }

/* Pagination: numbered pills. */
.pagination { --bs-pagination-color: var(--bs-body-color); --bs-pagination-bg: var(--rs-surface); --bs-pagination-border-color: var(--rs-input-border); --bs-pagination-border-width: 2px;
              --bs-pagination-hover-bg: var(--rs-surface-2); --bs-pagination-hover-color: var(--rs-heading); --bs-pagination-hover-border-color: var(--rs-line);
              --bs-pagination-active-bg: var(--rs-honey); --bs-pagination-active-color: var(--rs-ink); --bs-pagination-active-border-color: var(--rs-ink);
              --bs-pagination-disabled-bg: transparent; --bs-pagination-focus-box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color); gap: 0.3rem; }
.pagination .page-link { border-radius: 50rem !important; min-width: 2.1rem; text-align: center; font-weight: 600; }
.page-item.active .page-link { box-shadow: 2px 2px 0 var(--rs-shadow-color); }

/* Alerts and breadcrumbs */
.alert { border-radius: 0.875rem; border: 2px solid var(--rs-line); box-shadow: var(--rs-shadow-sm); }
.alert-primary { --bs-alert-border-color: var(--rs-line); }
.alert-light { --bs-alert-bg: var(--rs-surface); --bs-alert-color: var(--bs-body-color); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--bs-tertiary-color); --bs-breadcrumb-item-active-color: var(--bs-secondary-color); font-size: 0.75rem; font-weight: 600;
              letter-spacing: 0.08em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }

/* Coloured text: the solid tones are too dim on the dark surface (and mustard too pale on cream), so use the text tones. */
.text-warning { color: var(--bs-warning-text-emphasis) !important; }
[data-bs-theme="dark"] .text-primary { color: var(--bs-primary-text-emphasis) !important; }
[data-bs-theme="dark"] .text-success { color: var(--bs-success-text-emphasis) !important; }
[data-bs-theme="dark"] .text-danger { color: var(--bs-danger-text-emphasis) !important; }
[data-bs-theme="dark"] .text-info { color: var(--bs-info-text-emphasis) !important; }

/* Light-coloured bits Bootstrap's dark mode doesn't reach (.bg-white stays: it's behind uploaded logos). */
[data-bs-theme="dark"] .bg-light { background-color: var(--rs-surface-2) !important; }
[data-bs-theme="dark"] .text-dark { color: var(--bs-emphasis-color) !important; }
hr { border-top: 2px solid var(--rs-hairline); opacity: 1; }

/* The Icons page (core/templates/core/icon_list.html, icon_form.html). */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1.25rem; }
.icon-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.25rem 0.5rem 1rem; text-align: center; }
.icon-card-name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-heading); word-break: break-word; }
.icon-preview { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-width: 6.5rem; min-height: 6.5rem; padding: 0.75rem;
                border-radius: 0.75rem; border: 2px solid var(--rs-line); background: var(--rs-surface); color: var(--bs-body-color); }
.icon-preview > span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bs-secondary-color); }

/* Sidebar: modules still to come (tenancy.modules.NAV_SECTIONS), and Settings set apart at the bottom. */
.app-sidebar .nav-link.disabled { color: rgba(247, 239, 226, 0.45); }
.app-sidebar .nav-link.disabled .nav-icon { opacity: 0.55; }
.app-sidebar .nav-soon { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 239, 226, 0.7); background: rgba(247, 239, 226, 0.1); }
.app-sidebar .sidebar-footer-nav { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 2px solid rgba(247, 239, 226, 0.12); }

/* The landing page (landing/templates/landing/home.html): a long story in bands on the dotted cream page. The hero
   centres a headline over the app itself; then a big section per part of the farm (eyebrow, display headline, a few
   lines, real screenshots), the facts band, the module grid, and the form. */
.landing { overflow-x: clip; }
/* On phones the logo stands alone, so Log in and Get started fit on the one row. */
@media (max-width: 575.98px) { .landing-nav .navbar-brand-name { display: none; } }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
                   text-transform: uppercase; color: var(--bs-danger-text-emphasis); margin-bottom: 0.9rem; }
.landing-lead { font-size: 1.15rem; line-height: 1.6; color: var(--bs-body-color); margin-bottom: 1.8rem; max-width: 38rem; }
.landing-note { display: flex; align-items: center; gap: 0.5rem; margin: 1.3rem 0 0; font-size: 0.85rem; color: var(--bs-secondary-color); }
.landing-section { padding: 4.5rem 0; }
.landing-section-alt { background: var(--rs-surface-2); border-top: 2px solid var(--rs-line); border-bottom: 2px solid var(--rs-line); }
.landing-section-cta { background: var(--rs-honey); border-top: 2px solid var(--rs-line); color: var(--rs-ink); }
.landing-section-cta .landing-heading, .landing-section-cta .landing-lead, .landing-section-cta .landing-cta-note { color: var(--rs-ink); }
.landing-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; text-align: center; margin-bottom: 0.75rem; }
.landing-sub { text-align: center; color: var(--bs-secondary-color); max-width: 40rem; margin: 0 auto 2.75rem; font-size: 1.05rem; }

/* The hero: a "New" pill, the headline and the call to action, with About us straight below. */
.landing-hero { padding: 4.5rem 0; }
.landing-pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.9rem 0.3rem 0.35rem; margin-bottom: 1.6rem;
                border: 2px solid var(--rs-line); border-radius: 2rem; background: var(--rs-surface); color: var(--rs-heading);
                font-size: 0.88rem; font-weight: 600; text-decoration: none; box-shadow: 3px 3px 0 var(--rs-shadow-color); }
.landing-pill span { padding: 0.1rem 0.6rem; border-radius: 2rem; background: var(--rs-honey); color: var(--rs-ink); font-size: 0.72rem;
                     font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.landing-pill:hover { background: var(--rs-surface-2); color: var(--rs-heading); }
.landing-title { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.landing-title-accent { display: block; color: var(--bs-primary-text-emphasis); }
/* The hero's word that cycles, on a line of its own: farm, homestead, market garden, apiary. All four share one grid
   cell, so the line keeps its room and never jumps; each shows for a quarter of the 10s loop. */
.landing-rotator { display: grid; justify-items: center; color: var(--bs-danger-text-emphasis); }
.landing-rotator > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; animation: landing-word 10s infinite; }
.landing-rotator > span:nth-child(2) { animation-delay: 2.5s; }
.landing-rotator > span:nth-child(3) { animation-delay: 5s; }
.landing-rotator > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes landing-word {
  0% { opacity: 0; transform: translateY(0.35em); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-0.35em); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-rotator > span { animation: none; }
  .landing-rotator > span:first-child { opacity: 1; }
}

/* Three things it's built on, numbered. */
.landing-pillars { padding: 5rem 0 4rem; }
.landing-pillar small { display: block; font-family: var(--bs-font-monospace); font-size: 0.8rem; color: var(--bs-secondary-color); margin-bottom: 0.9rem; }
.landing-pillar h2, .landing-pillar h3 { font-size: 1.2rem; font-weight: 700; margin: 0.9rem 0 0.45rem; }
.landing-pillar p { color: var(--bs-secondary-color); margin: 0; }

/* A big section per part of the farm. */
.landing-feature { padding: 6.5rem 0; }
.landing-feature-alt { background: var(--rs-surface-2); border-top: 2px solid var(--rs-line); border-bottom: 2px solid var(--rs-line); }
/* About us: the farm itself behind the words, darkened enough for cream text to read over the busy photo. */
.landing-about { background: radial-gradient(ellipse at center, rgba(24, 28, 22, 0.82) 25%, rgba(24, 28, 22, 0.5) 100%), url("../landing/about-farm.9be82e27baa0.webp") center 60% / cover no-repeat;
                 border-top: 2px solid var(--rs-line); border-bottom: 2px solid var(--rs-line); }
.landing-about .landing-eyebrow, .landing-about .landing-display, .landing-about .landing-lead { color: var(--rs-cream); text-shadow: 0 1px 3px rgba(24, 28, 22, 0.7); }
.landing-feature-head { max-width: 46rem; margin-bottom: 3.5rem; }
.landing-display { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.018em; margin-bottom: 1.1rem; }
.landing-feature-head .landing-display { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
/* The parts of the farm as one slider (Bootstrap's carousel): a tab per slide above it, its arrows below. */
.landing-slider-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 3rem; }
.landing-slider-tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border: 2px solid var(--rs-line);
  border-radius: 999px; background: var(--rs-surface); color: var(--rs-heading); font-weight: 600; box-shadow: var(--rs-shadow-sm); }
.landing-slider-tab:hover, .landing-slider-tab:focus-visible { background: var(--rs-surface-2); }
.landing-slider-tab.active { background: var(--rs-honey); color: var(--rs-ink); }
.landing-slider .carousel-item { transition-duration: 0.45s; }
.landing-slider-arrows { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .landing-slider .carousel-item { transition: none; } }
.landing-caps { margin-top: 4.5rem; }
.landing-caps h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; padding-top: 1rem; border-top: 2px solid var(--rs-line); }
.landing-caps p { color: var(--bs-secondary-color); margin: 0; }
.landing-ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.landing-ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
.landing-ticks li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--rs-line);
                            background: var(--rs-honey); box-shadow: inset 0 0 0 3px var(--rs-surface); }
/* On wide screens the screenshots run past the container towards the page's edge, as in a product tour. */
@media (min-width: 992px) {
  .landing-bleed-end .landing-shots { margin-right: -8%; }
  .landing-bleed-start .landing-shots { margin-left: -8%; }
}

/* Screenshots: framed, and over a full-window one, a crop of the next step. */
.landing-shots { position: relative; padding-bottom: 12%; }
.landing-shot { border: 2px solid var(--rs-line); border-radius: 0.9rem; overflow: hidden; background: var(--rs-surface); box-shadow: 8px 8px 0 var(--rs-shadow-color); }
.landing-shot img { display: block; width: 100%; height: auto; }
.landing-shot-inset { position: absolute; right: -1.25rem; bottom: 0; width: 60%; transform: rotate(-1deg); }
/* Where the screenshots already run towards the edge, the inset stays inside them. */
.landing-bleed-end .landing-shot-inset { right: 1rem; }
.landing-bleed-start .landing-shot-inset { right: auto; left: 1rem; transform: rotate(1deg); }
/* Each screenshot was taken in both themes; only the page's own is shown (and, being lazy, fetched). */
.landing-shot .landing-shot-dark, html[data-bs-theme="dark"] .landing-shot .landing-shot-light { display: none; }
html[data-bs-theme="dark"] .landing-shot .landing-shot-dark { display: block; }
@media (max-width: 991.98px) {
  .landing-shots { padding-bottom: 0; }
  .landing-shot-inset, .landing-bleed-start .landing-shot-inset { position: static; width: 88%; margin: -2.5rem 0 0 auto; transform: none; }
}

/* From harvest to sale: four numbered steps. */
.landing-flow-steps { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.landing-flow-steps li { position: relative; padding: 1.4rem 1.3rem 1.3rem; border: 2px solid var(--rs-line); border-radius: 0.9rem; background: var(--rs-surface);
                         box-shadow: 4px 4px 0 var(--rs-shadow-color); }
.landing-flow-steps li > span { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--bs-font-monospace); font-size: 0.8rem; color: var(--bs-secondary-color); }
.landing-flow-steps h3 { font-size: 1.1rem; font-weight: 700; margin: 0.8rem 0 0.4rem; }
.landing-flow-steps p { color: var(--bs-secondary-color); margin: 0; font-size: 0.95rem; }

/* A solution's year as a circle (solution.html, Solution.season_cycle): the seasons at 12, 3, 6 and 9 o'clock, a
   curved arrow in each corner from one to the next, clockwise. Below lg, a column with an arrow down between them. */
.landing-cycle { display: grid; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
.landing-cycle-steps { display: contents; list-style: none; }
.landing-cycle-step { position: relative; padding: 1.3rem 1.3rem 1.2rem; border: 2px solid var(--rs-line); border-radius: 0.9rem;
                      background: var(--rs-surface); box-shadow: 4px 4px 0 var(--rs-shadow-color); text-align: center; }
.landing-cycle-icon { display: inline-flex; margin-bottom: 0.35rem; }
.landing-cycle-step h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.landing-cycle-step p { color: var(--bs-secondary-color); margin: 0; font-size: 0.95rem; }
.landing-cycle-arrow { width: 4.5rem; height: 4.5rem; color: var(--rs-rust, #D96C3F); justify-self: center; align-self: center; }
.landing-cycle-centre { position: relative; display: none; align-items: center; justify-content: center; text-align: center;
                        font-weight: 700; color: var(--bs-secondary-color); font-size: 0.95rem; line-height: 1.3; }
.landing-cycle-centre svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--rs-line); }
@media (max-width: 991.98px) {
  .landing-cycle { max-width: 28rem; }
  .landing-cycle-arrow { display: none; }
  .landing-cycle { gap: 2.6rem; }
  .landing-cycle-step:not(:last-child)::after { content: "\2193"; position: absolute; left: 50%; top: calc(100% + 0.45rem); transform: translateX(-50%);
                                                 font-size: 1.5rem; font-weight: 700; color: var(--rs-rust, #D96C3F); line-height: 1; }
  .landing-cycle-step:last-child::after { content: "\21BB  and round again"; display: block; margin-top: 0.8rem; font-weight: 700;
                                           color: var(--rs-rust, #D96C3F); font-size: 0.95rem; }
}
@media (min-width: 992px) {
  .landing-cycle { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "a4 s1 a1" "s4 c s2" "a3 s3 a2"; gap: 0.75rem 1.25rem; }
  .landing-cycle-1 { grid-area: s1; } .landing-cycle-2 { grid-area: s2; } .landing-cycle-3 { grid-area: s3; } .landing-cycle-4 { grid-area: s4; }
  .landing-cycle-centre { display: flex; grid-area: c; aspect-ratio: 1; max-width: 11rem; width: 100%; justify-self: center; align-self: center; }
  .landing-cycle-2, .landing-cycle-4 { align-self: center; }
  /* Drawn once, for the top right (from the top season down to the right one); the other corners turn it round. */
  .landing-cycle-arrow-1 { grid-area: a1; }
  .landing-cycle-arrow-2 { grid-area: a2; transform: rotate(90deg); }
  .landing-cycle-arrow-3 { grid-area: a3; transform: rotate(180deg); }
  .landing-cycle-arrow-4 { grid-area: a4; transform: rotate(270deg); }
}

/* "Planned for the future" (Solution.planned): on the way, set apart from what's there today. */
.landing-planned { margin-top: 1.75rem; padding: 1.3rem 1.4rem; border: 2px dashed var(--rs-line); border-radius: 0.9rem; }
.landing-planned h3 { margin: 0 0 0.8rem; font-size: 1rem; }
.landing-planned-badge { background: var(--rs-honey, #F2C14E); color: var(--rs-ink, #2E2A26); border: 2px solid var(--rs-line); font-size: 0.85rem; }
.landing-planned ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.6rem 1.5rem; }
.landing-planned strong { display: block; color: var(--rs-heading); }
.landing-planned span { color: var(--bs-secondary-color); font-size: 0.92rem; }
.landing-sub-lead { max-width: 48rem; }

/* The facts band: dark in both themes. */
.landing-facts { padding: 3.5rem 0; background: #2E2A26; color: #F7EFE2; border-bottom: 2px solid var(--rs-line); }
.landing-facts dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; color: #F2C14E; }
.landing-facts dd { margin: 0.3rem 0 0; color: rgba(247, 239, 226, 0.78); }

/* Everything else (the module grid), the steps to join. */
.landing-features { list-style: none; margin: 0; padding: 0.4rem 1.35rem 1rem; }
.landing-features li { display: flex; gap: 1rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 2px solid var(--rs-hairline); }
.landing-features li:last-child { border-bottom: 0; }
.landing-features strong { display: block; color: var(--rs-heading); margin-bottom: 0.15rem; }
.landing-features span:not(.badge) { color: var(--bs-secondary-color); font-size: 0.9rem; }
.landing-features li.soon > .rs-icon { opacity: 0.6; }
.landing-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.landing-steps li { text-align: center; }
.landing-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--rs-honey); color: var(--rs-ink);
                           border: 2px solid var(--rs-line); box-shadow: 3px 3px 0 var(--rs-shadow-color); font-weight: 700; font-size: 1.2rem; }
.landing-steps h3 { font-size: 1.05rem; font-weight: 700; margin: 0.9rem 0 0.45rem; }
.landing-steps p { color: var(--bs-secondary-color); margin: 0; }

/* The form and the footer. */
.landing-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
/* What they'd use: a ticked option turns honey, with a tick, so it stands out from the rest (not by colour alone). */
.landing-chips .btn { --bs-btn-active-bg: var(--rs-honey); --bs-btn-active-color: var(--rs-ink); --bs-btn-active-border-color: var(--rs-ink); }
.landing-chips .btn-check:checked + .btn { font-weight: 600; box-shadow: 2px 2px 0 var(--rs-shadow-color); }
.landing-chips .btn-check:checked + .btn::before { content: "\2713"; margin-right: 0.35em; }
.landing-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.landing-footer { padding: 2rem 0; font-size: 0.9rem; color: var(--bs-secondary-color); border-top: 2px solid var(--rs-line); background: var(--rs-surface); }
.landing-features strong a { color: inherit; text-decoration: none; }
.landing-features strong a:hover { text-decoration: underline; }

/* The landing site's top bar menus (landing/_nav.html): Features in the four panels, Solutions in two columns, both
   hung from the bar's container rather than their button, so they have the width. */
.landing-nav > .container { position: relative; }
.landing-mega { position: static; }
.landing-menu { padding: 1.1rem; margin-top: 0.4rem; border: 2px solid var(--rs-line); border-radius: 0.9rem; background: var(--rs-surface);
                box-shadow: 6px 6px 0 var(--rs-shadow-color); }
.landing-menu[data-bs-popper] { left: 0.75rem; right: 0.75rem; }
.landing-menu-narrow[data-bs-popper] { left: auto; width: min(40rem, calc(100% - 1.5rem)); }
.landing-menu-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem 1rem; }
@media (max-width: 991.98px) { .landing-menu-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } }
.landing-menu-solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 0.8rem; }
.landing-menu-heading { margin: 0 0 0.35rem; padding: 0 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
                        color: var(--bs-danger-text-emphasis); }
.landing-menu-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0.5rem; border-radius: 0.6rem; color: var(--rs-heading); text-decoration: none; }
.landing-menu-item:hover, .landing-menu-item:focus-visible { background: var(--rs-surface-2); color: var(--rs-heading); }
.landing-menu-item .rs-icon { flex: none; }
.landing-menu-item strong { display: block; font-size: 0.92rem; }
.landing-menu-item small { display: block; color: var(--bs-secondary-color); font-size: 0.8rem; line-height: 1.35; }
.landing-addon { display: inline-block; margin-left: 0.25rem; padding: 0.05rem 0.45rem; border-radius: 1rem; background: var(--rs-honey); color: var(--rs-ink);
                font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.15em; }
.landing-menu-foot { display: block; margin-top: 0.8rem; padding: 0.7rem 0.5rem 0; border-top: 2px solid var(--rs-hairline); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
/* On a phone, one menu holds both, scrolling inside the screen. */
.landing-menu-phone[data-bs-popper] { max-height: 75vh; overflow-y: auto; }
.landing-menu-phone .landing-menu-heading:not(:first-child) { margin-top: 0.9rem; }
.landing-menu-phone .landing-menu-item { align-items: center; }

/* A feature's and a solution's own page (landing/feature.html, landing/solution.html). */
.landing-page-hero { padding: 4rem 0 3rem; }
.landing-page-title { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.landing-page-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 2px solid var(--rs-line); border-radius: 1.2rem;
                     background: var(--rs-surface-2); box-shadow: 8px 8px 0 var(--rs-shadow-color); }
/* A solution's photo in the same frame as the icon, filling it. */
.landing-page-photo { overflow: hidden; }
.landing-page-photo img { width: 100%; height: 100%; object-fit: cover; }
.landing-page-shot { max-width: 1140px; margin-bottom: 1rem; }
.landing-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.landing-points li { padding: 1.4rem 1.3rem; border: 2px solid var(--rs-line); border-radius: 0.9rem; background: var(--rs-surface); box-shadow: var(--rs-shadow-sm); }
/* An even number of points: two to a row, so none is left on its own. */
@media (min-width: 768px) { .landing-points-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.landing-points h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.landing-points p { margin: 0; color: var(--bs-secondary-color); }
.landing-closer-section { padding-top: 0; }
.landing-page-shot-mid + .landing-closer-section { padding-top: 4rem; }  /* a solution's, under its screenshot */
.landing-closer { display: grid; gap: 4.5rem; max-width: 1140px; margin: 0 auto; }
.landing-closer-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; margin: 0 0 0.6rem; }
.landing-closer-text { margin: 0; color: var(--bs-secondary-color); font-size: 1.05rem; }
@media (max-width: 991.98px) { .landing-closer { gap: 3rem; } }
.landing-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.landing-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem 0.45rem 0.6rem; border: 2px solid var(--rs-line); border-radius: 2rem;
                background: var(--rs-surface); color: var(--rs-heading); font-weight: 600; text-decoration: none; box-shadow: var(--rs-shadow-sm); }
.landing-chip:hover { background: var(--rs-honey); color: var(--rs-ink); }
.landing-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.landing-tile { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; border: 2px solid var(--rs-line); border-radius: 0.9rem;
                background: var(--rs-surface); color: var(--rs-heading); text-decoration: none; box-shadow: var(--rs-shadow-sm); }
.landing-tile:hover { background: var(--rs-surface-2); color: var(--rs-heading); }
.landing-tile .rs-icon { flex: none; }
.landing-tile strong { display: block; }
.landing-tile small { display: block; color: var(--bs-secondary-color); font-size: 0.88rem; }

/* A list row that expands to show what's in it (the Apiary and Poultry lists): the chevron turns when open. */
.row-toggle .bi { display: inline-block; transition: transform 0.15s ease-in-out; }
.row-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .row-toggle .bi { transition: none; } }

/* While a superuser is logged in as someone (accounts.impersonation): a rust bar at the top of every page, hard to
   miss. It scrolls away with the page, so the sticky top bar stays in view. */
.impersonation-bar { position: relative; z-index: 1030; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
                     gap: 0.5rem 1rem; padding: 0.45rem 1rem; background: var(--rs-rust); color: #FFF9EF; font-size: 0.9rem;
                     border-bottom: 2px solid var(--rs-ink); }
.impersonation-bar .rs-icon { color: #FFF9EF; }
.impersonation-bar form { margin: 0; }

/* The Tasks board (tasks/task_board.html): a column per status, cards dragged between them. On narrow screens the
   columns scroll sideways, one and a bit in view. */
/* The dashboard's "mark done" circle before each task (tasks/_operation_panel.html). */
.task-check { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-top: 0.1rem;
  padding: 0; border: 2px solid var(--rs-input-border); border-radius: 50%; background: var(--rs-surface); color: transparent;
  font-size: 0.95rem; transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
.task-check:hover, .task-check:focus-visible { border-color: var(--rs-line); background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.task-check:active { background: var(--bs-success); color: #fff; }
@media (prefers-reduced-motion: reduce) { .task-check { transition: none; } }

.task-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: 1rem; overflow-x: auto;
              padding-bottom: 0.75rem; align-items: start; }
.task-column { padding: 0.75rem; border: 2px solid var(--rs-line); border-radius: 1rem; background: var(--rs-surface-2);
               min-height: 12rem; transition: background-color 0.15s, border-color 0.15s; }
.task-column.is-over { background: var(--rs-surface); border-style: dashed; border-color: var(--bs-primary); }
.task-column-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.task-column-count { font-size: 0.85rem; font-weight: 700; color: var(--bs-secondary-color); }
.task-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.task-card { padding: 0.7rem 0.8rem; border: 2px solid var(--rs-line); border-radius: 0.75rem; background: var(--rs-surface);
             box-shadow: 3px 3px 0 var(--rs-shadow-color); cursor: grab; }
.task-card.is-dragging { opacity: 0.45; cursor: grabbing; }
.task-card-title { display: block; font-weight: 600; text-decoration: none; color: var(--rs-heading); }
.task-card-title:hover { text-decoration: underline; }
.task-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin-top: 0.45rem; font-size: 0.82rem;
                  color: var(--bs-secondary-color); }
.task-card-move { margin-top: 0.55rem; }
.task-empty { display: none; margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--bs-secondary-color); text-align: center; }
.task-column:not(:has(.task-card)) .task-empty { display: block; }
@media (prefers-reduced-motion: reduce) { .task-column { transition: none; } }

/* The sidebar's free-trial card (plans): days left with a bar that empties, or "expired" in rust. */
.app-sidebar .sidebar-trial { display: block; padding: 0.75rem 0.85rem; border: 2px solid rgba(247, 239, 226, 0.2); border-radius: 0.75rem;
  background: rgba(247, 239, 226, 0.06); color: rgba(247, 239, 226, 0.8); text-decoration: none; font-size: 0.85rem; }
.app-sidebar .sidebar-trial:hover, .app-sidebar .sidebar-trial:focus-visible { border-color: var(--rs-honey); background: rgba(247, 239, 226, 0.1); color: var(--rs-cream); }
.app-sidebar .sidebar-trial-title { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--rs-cream); font-weight: 700; }
.app-sidebar .sidebar-trial-bar { display: block; height: 0.4rem; margin: 0.5rem 0; border-radius: 999px; background: rgba(247, 239, 226, 0.14); overflow: hidden; }
.app-sidebar .sidebar-trial-bar span { display: block; height: 100%; border-radius: 999px; background: var(--rs-honey); }
.app-sidebar .sidebar-trial.is-expired { border-color: var(--rs-rust); }
.app-sidebar .sidebar-trial-cta { color: var(--rs-honey); font-weight: 600; }
.plan-choice.is-current { border-color: var(--rs-teal); }

/* The landing page's plans (#pricing): paper cards; the recommended one raised, honey-edged, with a ribbon. */
.landing-plans { padding-top: 0.75rem; }
.landing-plan { position: relative; }
.landing-plan.is-recommended { box-shadow: 0 0 0 4px var(--rs-honey), 0 0 0 6px var(--rs-line), 8px 8px 0 6px var(--rs-shadow-color); }
@media (min-width: 992px) { .landing-plan.is-recommended { transform: translateY(-0.75rem); } }
.landing-plan-ribbon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.9rem; border: 2px solid var(--rs-ink); border-radius: 2rem; background: var(--rs-honey); color: var(--rs-ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; box-shadow: 2px 2px 0 var(--rs-ink); }
.landing-plan-ribbon .rs-icon { color: var(--rs-ink); }
.landing-plan-head { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.4rem; }
.landing-plan-name { font-size: 1.35rem; font-weight: 700; margin: 0.5rem 0 0.4rem; }
.landing-plan-head .landing-plan-name { margin: 0; }
.landing-plan-text { color: var(--bs-secondary-color); font-size: 0.95rem; min-height: 3em; }
.landing-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; margin-top: 0.25rem; }
.landing-plan-price strong { font-size: 2.6rem; line-height: 1; font-weight: 700; color: var(--rs-heading); }
.landing-plan-price span { color: var(--bs-secondary-color); }
.landing-plan-price s { color: var(--bs-secondary-color); font-size: 0.95rem; }
.landing-plan-yearly { min-height: 1.5em; margin: 0.4rem 0 1rem; font-size: 0.9rem; color: var(--bs-secondary-color); }
.landing-plan-off { margin-left: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 2rem; background: var(--rs-moss); color: #FFF9EF; font-weight: 700; font-size: 0.75rem; }
.landing-plan-trial { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 1rem; padding: 0.45rem 0.7rem; border: 2px dashed var(--rs-hairline);
  border-radius: 0.6rem; font-size: 0.88rem; font-weight: 600; }
.landing-plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.45rem; font-size: 0.93rem; }
.landing-plan-list li { display: flex; gap: 0.55rem; }
.landing-plan-list .bi { font-size: 1rem; line-height: 1.4; flex-shrink: 0; }
.landing-plan-list .is-included { font-weight: 600; color: var(--rs-heading); }
.landing-plan-list .is-included .bi { color: var(--rs-teal); }
.landing-plan-list .is-missing { color: var(--bs-secondary-color); opacity: 0.6; }
.landing-plan-list .is-missing > span { text-decoration: line-through; text-decoration-thickness: 1px; }

/* The plans to scroll through: four in view from lg (two from md, one and a peek below), snapping a card at a time. */
.landing-plan-scroller { margin-top: 3.5rem; }
.landing-plan-track { --gap: 1.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 85%; column-gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 0.25rem; padding: 1rem 0.75rem 1.25rem 0.25rem; scrollbar-width: thin; }
@media (min-width: 768px) { .landing-plan-track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (min-width: 992px) { .landing-plan-track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); } }
.landing-plan-track:focus-visible { outline: 3px solid var(--rs-teal); outline-offset: 4px; border-radius: 0.5rem; }
/* Fewer plans than fill the row: centred. `safe` keeps the first one reachable once they overflow and scroll. */
.landing-plan-track { justify-content: safe center; }
.landing-plan-slide { scroll-snap-align: start; display: flex; }
.landing-plan-slide > .landing-plan { width: 100%; }
.landing-plan-arrow { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; border: 2px solid var(--rs-line); background: var(--rs-surface);
  color: var(--rs-heading); box-shadow: var(--rs-shadow-sm); }
.landing-plan-arrow:hover, .landing-plan-arrow:focus-visible { background: var(--rs-honey); color: var(--rs-ink); border-color: var(--rs-line); }
.landing-plan-arrow:disabled { opacity: 0.35; box-shadow: none; }

/* The date fields' calendar (date-picker.js, flatpickr): a card like the dropdowns, today ringed, the chosen day in honey. */
.flatpickr-calendar { background: var(--rs-surface); border: 2px solid var(--rs-line); border-radius: 0.75rem; box-shadow: var(--rs-shadow) !important;
  font-family: var(--rs-font); color: var(--bs-body-color); width: auto; padding: 0.35rem; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after, .flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-calendar.arrowTop { margin-top: 4px; }
.flatpickr-calendar.arrowBottom { margin-top: -4px; }
.flatpickr-months { align-items: center; }
.flatpickr-months .flatpickr-month { color: var(--rs-heading); fill: var(--rs-heading); height: 2.4rem; }
.flatpickr-current-month { font-size: 0.95rem; font-weight: 700; padding-top: 0.45rem; }
.flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { font-weight: 700; color: var(--rs-heading); }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: transparent; border-radius: 0.4rem; }
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: var(--rs-surface); color: var(--bs-body-color); }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover, .flatpickr-current-month .numInputWrapper:hover { background: var(--rs-surface-2); }
.numInputWrapper span.arrowUp::after { border-bottom-color: var(--rs-heading); }
.numInputWrapper span.arrowDown::after { border-top-color: var(--rs-heading); }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: var(--rs-heading); fill: var(--rs-heading); top: 0.35rem; border-radius: 0.5rem; padding: 0.55rem; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--rs-surface-2); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--rs-rust); }
span.flatpickr-weekday { color: var(--bs-secondary-color); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.flatpickr-day { color: var(--bs-body-color); border-radius: 0.5rem; font-weight: 500; }
.flatpickr-day:hover, .flatpickr-day:focus, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover { background: var(--rs-surface-2); border-color: var(--rs-surface-2); color: var(--rs-heading); }
.flatpickr-day.today { border-color: var(--rs-teal); }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { background: var(--rs-surface-2); border-color: var(--rs-teal); color: var(--rs-heading); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.selected.nextMonthDay {
  background: var(--rs-honey); border-color: var(--rs-ink); color: var(--rs-ink); font-weight: 700; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: var(--bs-tertiary-color); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { background: transparent; border-color: transparent; }

/* Maps (Leaflet): a drawn pin, and the public site's map and header photo. */
/* The stall on the public map. The tiles are light in either theme, so its outline stays ink. */
.map-pin { color: #2E2A26; }
.map-pin .rs-icon { display: block; filter: drop-shadow(0 0 1px #FFF9EF); }
/* A business listing's photos on its form (public_catalog/listing_form.html): the logo square, the header wide. */
.listing-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed var(--rs-line);
                 border-radius: 0.5rem; background: var(--rs-surface-2); }
.listing-photo-logo { width: 7rem; height: 7rem; }
.listing-photo-hero { width: 100%; aspect-ratio: 3 / 1; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo-logo img { object-fit: contain; background: #FFF; }
/* The pin to drag on a location picker (tenancy/location-picker.js): a dot, easy to grab. */
.location-pin { background: #2A7F7A; border: 3px solid #FFF; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: grab; }
/* A farm closed now: its stall greyed, "Closed" under it. */
.map-pin-closed { color: #5F5A55; }
.map-pin-closed .rs-icon { filter: grayscale(1) opacity(0.75) drop-shadow(0 0 1px #FFF9EF); }
/* A farm that hasn't given its hours: its own colours, faded, so it doesn't pass for one that's open now. */
.map-pin-unknown .rs-icon { filter: opacity(0.5) drop-shadow(0 0 1px #FFF9EF); }
.map-pin-label { position: absolute; top: 39px; left: 50%; transform: translateX(-50%); padding: 0 0.35rem; border-radius: 0.5rem;
                 background: #6C6762; color: #FFF; font-size: 0.65rem; font-weight: 700; line-height: 1.35; white-space: nowrap; }
/* The directory's header: the farm stand photo, its title over it (white on a shade, so either theme reads it). */
.directory-header { position: relative; overflow: hidden; border-radius: 0.75rem; background: #3B342C; aspect-ratio: 6 / 1; min-height: 4.5rem; }
.directory-header img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.directory-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, 0.72), rgba(20, 16, 12, 0.08) 65%); }
.directory-header-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.75rem 1.25rem;
                          color: #FFF; font-size: clamp(1.4rem, 1rem + 2.2vw, 2.4rem); font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.map-popup-status { margin-top: 0.4rem; font-weight: 600; }
/* On a phone the public top bar's search takes its own row. */
@media (max-width: 767.98px) { .public-site .navbar-search { max-width: none; } }
@media (max-width: 399.98px) { .public-site .navbar-brand-name { display: none; } }
.public-hours { --bs-table-bg: transparent; }
.public-hours th { padding-right: 1rem; }
.public-map { height: 380px; isolation: isolate; }  /* keeps the map's controls under the search dropdown */
/* The directory's filters: a row of the product types' icons, which scrolls sideways on a phone. */
.offer-filters { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0 4px 6px 0; }
.offer-filter { flex: 1 0 5.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.4rem; border: 2px solid var(--rs-line);
                border-radius: 0.75rem; background: var(--rs-surface); color: var(--rs-heading); font-size: 0.8rem; font-weight: 600; text-decoration: none; box-shadow: var(--rs-shadow-sm); }
.offer-filter:hover { background: var(--rs-surface-2); color: var(--rs-heading); }
.offer-filter.active { background: var(--rs-honey); color: var(--rs-ink); }
.public-map-small { height: 200px; }
.public-map-large { height: min(760px, 75vh); }  /* the directory's: twice the usual, but never taller than the screen */
/* The directory's open / closed switches (map.js): the map's stall, greyed for closed, with how many. Off, it fades. */
.farm-state-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem 0.3rem 0.45rem; border: 2px solid var(--rs-line);
                     border-radius: 2rem; background: var(--rs-surface); color: var(--rs-heading); font-weight: 700; cursor: pointer; box-shadow: var(--rs-shadow-sm); }
.farm-state-toggle:hover { background: var(--rs-surface-2); }
.btn-check:checked + .farm-state-toggle { background: var(--rs-honey); color: var(--rs-ink); }
.btn-check:not(:checked) + .farm-state-toggle { opacity: 0.5; box-shadow: none; }
.btn-check:focus-visible + .farm-state-toggle { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.farm-state-toggle-closed .rs-icon { filter: grayscale(1) opacity(0.75); }
.public-hero { max-height: 320px; }
.public-about h2, .public-about h3 { font-size: 1.15rem; margin-top: 1rem; }

/* Plant categories' colours (PlantType.category_key): each plant type's icon takes its category's. --cat-fg draws the
   icon, --cat-bg fills its tile. .cat-tile is a filled tile (plants/_thumb.html), .cat-fg just the icon's colour,
   .cat-btn an outlined button filled when picked (the Plant Library's categories). No category: the theme's green. */
.cat-tile, .cat-fg, .cat-btn { --cat-fg: var(--bs-success); --cat-bg: var(--bs-success-bg-subtle); }
.cat-vegetable { --cat-fg: #3F7D3A; --cat-bg: #DDEFD6; }
.cat-fruit     { --cat-fg: #B83A3A; --cat-bg: #F8DADA; }
.cat-herb      { --cat-fg: #7A5BA6; --cat-bg: #ECE3F6; }
.cat-flower    { --cat-fg: #B8457E; --cat-bg: #F8DDEB; }
.cat-tree      { --cat-fg: #7A5532; --cat-bg: #EEE0D0; }
.cat-shrub     { --cat-fg: #67722A; --cat-bg: #E8EBCC; }
.cat-vine      { --cat-fg: #2A7F7A; --cat-bg: #D5ECEA; }
.cat-bulb      { --cat-fg: #B8661F; --cat-bg: #F9E3CC; }
.cat-grain     { --cat-fg: #94730F; --cat-bg: #F5EBC4; }
.cat-grass     { --cat-fg: #4F8A2B; --cat-bg: #E1F0CF; }
.cat-fern      { --cat-fg: #2F6B4F; --cat-bg: #D3EADF; }
.cat-succulent { --cat-fg: #3B7A8F; --cat-bg: #D6E9EF; }
.cat-mushroom  { --cat-fg: #7A6A5C; --cat-bg: #ECE6E0; }
[data-bs-theme="dark"] .cat-vegetable { --cat-fg: #9ED394; --cat-bg: #22361F; }
[data-bs-theme="dark"] .cat-fruit     { --cat-fg: #F09A9A; --cat-bg: #3D2020; }
[data-bs-theme="dark"] .cat-herb      { --cat-fg: #C7B2E8; --cat-bg: #2F2640; }
[data-bs-theme="dark"] .cat-flower    { --cat-fg: #EFA3C8; --cat-bg: #3D2231; }
[data-bs-theme="dark"] .cat-tree      { --cat-fg: #D6B08C; --cat-bg: #352A1F; }
[data-bs-theme="dark"] .cat-shrub     { --cat-fg: #C7D07E; --cat-bg: #2E3119; }
[data-bs-theme="dark"] .cat-vine      { --cat-fg: #86CFC9; --cat-bg: #1B3432; }
[data-bs-theme="dark"] .cat-bulb      { --cat-fg: #F0B077; --cat-bg: #3B2A19; }
[data-bs-theme="dark"] .cat-grain     { --cat-fg: #E6CB6E; --cat-bg: #383017; }
[data-bs-theme="dark"] .cat-grass     { --cat-fg: #ABD884; --cat-bg: #253419; }
[data-bs-theme="dark"] .cat-fern      { --cat-fg: #8CCBAC; --cat-bg: #1C3329; }
[data-bs-theme="dark"] .cat-succulent { --cat-fg: #8EC6D8; --cat-bg: #1C3038; }
[data-bs-theme="dark"] .cat-mushroom  { --cat-fg: #CDBFB2; --cat-bg: #332D28; }
.cat-tile { background: var(--cat-bg); color: var(--cat-fg); border-color: color-mix(in srgb, var(--cat-fg) 35%, transparent) !important; }
.cat-fg { color: var(--cat-fg); }
.cat-btn { --bs-btn-color: var(--cat-fg); --bs-btn-border-color: var(--cat-fg); --bs-btn-hover-color: var(--cat-fg);
           --bs-btn-hover-bg: var(--cat-bg); --bs-btn-hover-border-color: var(--cat-fg);
           --bs-btn-active-color: var(--cat-bg); --bs-btn-active-bg: var(--cat-fg); --bs-btn-active-border-color: var(--cat-fg); }
.cat-btn[aria-current] { color: var(--cat-bg); background: var(--cat-fg); border-color: var(--cat-fg); }
