/* ==========================================================================
   Theme refresh (MOCK) — loaded only on the dashboard "all posts" page for now.
   Additive layer on top of style.css; remove the controller's css() line to revert.
   Establishes design tokens and modernizes the navbar, buttons, feed cards,
   search widget, tags and form focus. Nothing here is page-structural.
   ========================================================================== */

:root{
  --brand:        #1f6feb;
  --brand-dark:   #1a5fce;
  --brand-tint:   #eaf1fd;
  --ink:          #1f2329;   /* headings */
  --text:         #3a4047;   /* body copy (passes AA on white) */
  --muted:        #6b727c;   /* meta / secondary */
  --bg:           #f4f6f9;   /* page canvas so white cards lift */
  --surface:      #ffffff;
  --border:       #e4e8ee;
  --radius:       10px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md:    0 8px 24px rgba(16,24,40,.12);
}

/* ---- Page canvas & base type --------------------------------------------- */
body{ background:var(--bg); color:var(--text); }
p{ color:var(--text); }
a{ transition:color .18s ease; }

/* Tighten the oversized gap under the banner (header had padding-top:68px) and
   sit the content a comfortable distance below the navbar. */
#header{ padding-top:0; }
#blog{ margin-top:32px; }

/* ---- Navbar -------------------------------------------------------------- */
.navbar{
  background:#222d3d;   /* lighter, slate-blue banner (was near-black) */
  box-shadow:0 2px 10px rgba(0,0,0,.16);
}
/* The logo PNG is dark artwork on transparency; render it white so the
   "Kaseidon" wordmark reads clearly on the dark header. */
.navbar-brand img{
  -webkit-filter:brightness(0) invert(1);
  filter:brightness(0) invert(1);
}
.navbar-inverse .navbar-nav > li > a{
  color:#cdd4df;
  border-radius:6px;
  transition:background-color .18s ease, color .18s ease;
}
.navbar-inverse .navbar-nav > li > a:hover{
  background-color:rgba(31,111,235,.18);
  color:#fff;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus{
  background-color:var(--brand);
  color:#fff;
}
.navbar-inverse .navbar-nav .dropdown-menu{
  border-radius:10px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
  margin-top:6px;
}
.navbar-inverse .navbar-nav .dropdown-menu > li:hover > a,
.navbar-inverse .navbar-nav .dropdown-menu > li:focus > a,
.navbar-inverse .navbar-nav .dropdown-menu > li.active > a{
  background-color:var(--brand);
  color:#fff;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn-primary,
.btn-primary.search-btn{
  background:var(--brand);
  border:1px solid var(--brand);
  border-radius:var(--radius-sm);
  padding:8px 18px;
  font-family:'glacial_indifferencebold';
  box-shadow:var(--shadow-sm);
  transition:background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.search-btn:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
  box-shadow:var(--shadow-md);
  transform:translateY(-1px);
}
/* Give the "Search" and "Add Post" buttons one shared width so they match
   (both edges line up) regardless of their differing label lengths. */
.btn-primary.search-btn{ min-width:120px; text-align:center; }

/* ---- Inputs / selects ---------------------------------------------------- */
.form-control{
  border-radius:var(--radius-sm);
  border-color:var(--border);
  box-shadow:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(201,169,90,.22);
}

/* ---- Search widget ------------------------------------------------------- */
.widget.search{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:20px;
  margin-bottom:24px;
  overflow:hidden;          /* clip inner controls to the rounded corners so the top edge isn't cut */
}
/* Nudge the "Search" button toward the navbar "Add Post" button without letting
   it hug the card's right edge: drop the extra 12px margin and trim the column
   gutter to a small, balanced gap. */
.srch_btn{ margin-right:0; padding-right:8px; }

/* ---- Feed cards ---------------------------------------------------------- */
.blog .blog-item .blog-content{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  /* bottom padding reserves space for the absolutely-positioned footer
     (.bottom-box) so it never overlaps the labels above it */
  padding:20px 22px 52px;
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog .blog-item .blog-content:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
  border-color:#d7deea;
}
/* breathing room between the labels and the footer bar */
.blog-content .tag-list{ margin-bottom:4px; }

/* footer bar (Helpful / Followers / View) — match the card's rounded bottom */
.blog-content .bottom-box{
  background:#f7f9fc;
  border-top:1px solid var(--border);
  border-radius:0 0 var(--radius) var(--radius);
  padding:10px 14px;
}
.blog-content h3{ width:auto; padding-right:60px; }
.blog-content h3 a{
  color:var(--ink) !important;
  font-size:1.3em !important;
  line-height:1.3;
}
.blog-content:hover h3 a{ color:var(--brand) !important; }
.blog-content > p{ color:var(--text); line-height:1.6; }
.post-user p, .post-user span, .post-user a{ color:var(--muted); }
.post-user span i{ color:var(--brand); }

/* Unread/updated accents: a clean left rule instead of a full color wash */
.blog-content.update{ background:var(--surface) !important; border-left:3px solid #e5484d; }
.blog-content.notify{ background:var(--surface) !important; border-left:3px solid var(--brand); }

/* Post id chip */
.serial_no.big{
  background:var(--brand-tint);
  color:var(--brand);
  border-radius:8px;
  padding:0 8px;
}

/* ---- Tag pills ----------------------------------------------------------- */
.tag-list ul li a{
  background:var(--brand-tint);
  color:var(--brand);
  border-radius:999px;
  padding:4px 12px;
  font-size:12px;
  transition:background-color .15s ease, color .15s ease;
}
.tag-list ul li a:hover{
  background:var(--brand);
  color:#fff;
}

/* ---- Right-column widgets ------------------------------------------------ */
.widget h3{
  color:var(--ink);
  font-size:16px;
  letter-spacing:.2px;
}

/* ===== Site-wide component polish ========================================= */

/* Secondary / danger buttons share the same shape language as primary */
.btn-default{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  color:var(--ink);
  transition:background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-default:hover,
.btn-default:focus{
  background:#f3f5f8;
  border-color:#cfd6e0;
  color:var(--ink);
}
.btn-danger{
  background:#e5484d;
  border:1px solid #e5484d;
  border-radius:var(--radius-sm);
  transition:background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-danger:hover,
.btn-danger:focus{
  background:#cf3a3f;
  border-color:#cf3a3f;
  box-shadow:var(--shadow-md);
  transform:translateY(-1px);
}

/* Modals */
.modal-content{
  border:0;
  border-radius:14px;
  box-shadow:0 20px 60px rgba(16,24,40,.22);
  overflow:hidden;
}
.modal-header{ border-bottom:1px solid var(--border); padding:16px 20px; }
.modal-header .modal-title{ color:var(--ink); }
.modal-body{ padding:20px; }
.modal-footer{ border-top:1px solid var(--border); padding:14px 20px; }

/* Tables (incl. DataTables) */
.table{ color:var(--text); }
.table > thead > tr > th{
  border-bottom:2px solid var(--border);
  color:var(--ink);
  font-family:'glacial_indifferencebold';
}
.table > tbody > tr > td{ border-top:1px solid var(--border); }
.table-hover > tbody > tr:hover{ background:var(--brand-tint); }

/* Panels */
.panel{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.panel-heading{ background:#f7f9fc; border-bottom:1px solid var(--border); }

/* "Leave this post" — a clear, cautionary outline button (red on white) that
   stands out among the muted action-bar buttons without being as alarming as a
   delete. Lives in the post's bottom action bar. */
.kd-leave-btn{
  background:#fff;
  color:#c0392b;
  border:1px solid #e2b6af;
  border-radius:8px;
  font-weight:600;
  padding:6px 14px;
  margin-left:6px;
  vertical-align:middle;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.kd-leave-btn:hover,
.kd-leave-btn:focus{
  background:#c0392b;
  color:#fff;
  border-color:#c0392b;
  box-shadow:0 2px 8px rgba(192,57,43,.28);
}
.kd-leave-btn .fa{ margin-right:6px; }

/* ---- Sidebar: compact contribution stat strip --------------------------- */
/* Replaces the three oversized bare circles (getPvhScore) with a tidy,
   contained card that links to My Scoreboard. */
.kd-statstrip{
  position:relative;
  display:flex;            /* column flex so the stat row can stretch to fill the taller card */
  flex-direction:column;
  text-decoration:none;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  /* Vertical alignment with the left column on the dashboard:
     - min-height grows the card so its bottom lines up with the "Sort by" box.
     - margin-bottom is the gap that puts the Labels box top level with the
       first post card. Nudge these two values if the alignment drifts. */
  min-height:140px;
  margin-bottom:24px;
  overflow:hidden;
  transition:box-shadow .18s ease;
}
.kd-statstrip:hover,
.kd-statstrip:focus{ box-shadow:var(--shadow-md); text-decoration:none; }
/* Quiet "this card is clickable" cue, in place of a redundant footer link. */
.kd-statstrip::after{
  content:'\203A';
  position:absolute;
  top:5px;
  right:11px;
  font-size:16px;
  line-height:1;
  color:var(--muted);
  transition:color .18s ease;
}
.kd-statstrip:hover::after{ color:var(--brand); }
.kd-statstrip .kd-stat-row{ display:flex; flex:1 1 auto; } /* fill the card height so cells + dividers stretch */
.kd-statstrip .kd-stat{
  flex:1;
  display:flex;                 /* center the number + label vertically in the taller cell */
  flex-direction:column;
  justify-content:center;
  text-align:center;
  padding:14px 6px;
  border-right:1px solid var(--border);
}
.kd-statstrip .kd-stat:last-child{ border-right:0; }
.kd-statstrip .kd-stat-n{
  display:block;
  font-size:24px;
  font-weight:800;
  color:var(--brand);
  line-height:1;
}
.kd-statstrip .kd-stat-t{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
}
/* Freshness nudge footer on the stat strip (only when posts are due review). */
.kd-statstrip .kd-stat-review{
  display:block;
  text-align:center;
  padding:7px 8px;
  background:#fff4e5;
  border-top:1px solid #ffd9a8;
  color:#b45309;
  font-size:12px;
  font-weight:600;
}
.kd-statstrip:hover .kd-stat-review{ background:#ffe9cc; }

/* ---- Sidebar: Labels box polish ----------------------------------------- */
/* The "Expand all labels" control was a loud green button clashing with the
   blue toolbar -- make it a quiet outline button. */
.click_all_label,
.click_all_label.btn-success{
  background:#fff !important;
  color:var(--brand) !important;
  border:1px solid var(--border) !important;
  font-weight:600;
  box-shadow:none !important;
}
.click_all_label:hover,
.click_all_label.btn-success:hover{
  background:var(--brand-tint) !important;
  border-color:#cfd6e0 !important;
  color:var(--brand-dark) !important;
}
/* Compact, scannable label rows -- lighter and denser so more labels show,
   with a calm hover (arrow/badge positions left intact). */
.cd-accordion-menu label,
.cd-accordion-menu a{
  background:#f7f9fc;
  border-color:var(--border);
  border-radius:6px;
  font-weight:600;
  font-size:14px;
  padding-top:7px;
  padding-bottom:7px;
  margin-bottom:4px;
}
.no-touch .cd-accordion-menu label:hover,
.no-touch .cd-accordion-menu a:hover{
  background:var(--brand-tint);
  color:var(--ink);
}
/* Per-row "filter by label" magnifier: calm grey, and on desktop it stays out
   of the way until you hover the row (kept visible on touch, which has no hover). */
.label-search-icon{ color:#9aa3af; }
.label-title:hover .label-search-icon{ color:var(--brand); }
.no-touch .label-search-icon{ opacity:0; transition:opacity .15s ease; }
.no-touch .label-title:hover .label-search-icon{ opacity:1; }
/* Child-label count: a quiet muted pill, not a red alert badge. */
.label-title .badge{
  background-color:#e4e8ee !important;
  color:var(--muted) !important;
  font-weight:600;
}

/* ---- Labels widget: clean header (icon toolbar) + persistent filter ----- */
.widget.tags .kd-lbl-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.widget.tags .kd-lbl-head h3{ margin:0; }
.kd-lbl-tools{ display:flex; align-items:center; gap:2px; }
.kd-lbl-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:6px;
  color:var(--brand);
  font-size:15px;
  text-decoration:none;
  transition:background-color .15s ease, color .15s ease;
}
.kd-lbl-icon:hover,
.kd-lbl-icon:focus{
  background:var(--brand-tint);
  color:var(--brand-dark);
  text-decoration:none;
}
.kd-lbl-search{ margin-bottom:10px; }
.kd-lbl-search .form-control{ height:34px; }

/* ---- Per-post review cadence control (post detail) ----------------------- */
.kd-postinterval{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  margin:10px 0; padding:10px 12px;
  background:#f7f9fc; border:1px solid var(--border); border-radius:8px;
  font-size:13px; color:var(--muted);
}
.kd-postinterval input[type=number]{
  width:72px; padding:4px 8px; border:1px solid var(--border);
  border-radius:6px; font-weight:600; color:var(--ink);
}
.kd-postinterval button{
  padding:4px 12px; border-radius:6px; border:1px solid var(--brand);
  background:var(--brand); color:#fff; font-weight:600;
}
.kd-postinterval button:hover{ background:var(--brand-dark); }
.kd-postinterval-hint{ color:var(--muted); font-style:italic; }

/* ---- User menu dropdown ---------------------------------------------------
   Make the toggle and the menu the same width, left-aligned, so they line up
   as a clean column (the bare .drop-mini sized to the name and clipped the
   longer labels like "Change Password"). */
.navbar-inverse .navbar-nav li.user-menu > .dropdown-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  width:190px;
}
.navbar-inverse .navbar-nav li.user-menu > .dropdown-toggle .user-menu-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.navbar-inverse .navbar-nav li.user-menu > .dropdown-toggle > .fa-angle-down{ margin-left:auto; }
.navbar-inverse .navbar-nav .dropdown-menu.drop-user{
  left:0 !important;
  right:auto;
  width:190px;
  min-width:190px !important;
}
.dropdown-menu.drop-user > li > a{ white-space:nowrap; }
/* uniform icon column so the labels line up under one another */
.dropdown-menu.drop-user .fa, .dropdown-menu.drop-user .user-avatar-mini{ width:16px; text-align:center; margin-right:6px; }
.user-avatar-mini{
  width:16px; height:16px;
  vertical-align:middle;
  margin-right:2px;
  filter: brightness(0);
}

/* ---- Auth card (Change Password) ----------------------------------------- */
/* Replaces the dated .login-form horizontal layout with a centered surface
   card that matches the theme tokens used across the site. */
.kd-authcard{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:32px 34px 30px;
  margin:56px 0 90px;
}
.kd-authcard-head{ text-align:center; margin-bottom:24px; }
.kd-authcard-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--brand-tint);
  color:var(--brand);
  font-size:22px;
}
.kd-authcard-head h2{
  margin:0 0 6px;
  color:var(--ink);
  font-size:24px;
}
.kd-authcard-head p{ margin:0; color:var(--muted); font-size:14px; }

/* Stack the fields with clear labels (vertical, not the old col-sm-4 split). */
.kd-authform .kd-field{ margin-bottom:18px; }
.kd-authform .kd-field label{
  display:block;
  margin-bottom:6px;
  color:var(--ink);
  font-size:13px;
  font-weight:600;
  letter-spacing:.2px;
}
.kd-authform .form-control{ height:42px; }
.kd-field-hint{ margin:6px 0 0; color:var(--muted); font-size:12px; }

/* Show/hide password eye sits inside the input. */
.kd-input-wrap{ position:relative; }
.kd-input-wrap .form-control{ padding-right:42px; }
.kd-pw-toggle{
  position:absolute;
  top:0;
  right:0;
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:15px;
  cursor:pointer;
  transition:color .15s ease;
}
.kd-pw-toggle:hover,
.kd-pw-toggle:focus{ color:var(--brand); outline:none; }

/* Actions row: Cancel (quiet) + Change Password (primary), right-aligned. */
.kd-authform-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:26px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.kd-authform-actions .btn{ padding:9px 22px; }

@media (max-width:480px){
  .kd-authcard{ padding:24px 20px; margin:32px 0 60px; }
  .kd-authform-actions{ flex-direction:column-reverse; }
  .kd-authform-actions .btn{ width:100%; }
}

/* ---- Login page ------------------------------------------------------------
   Reuses the .kd-authcard system above instead of the old .login-form /
   bg1.png cartoon-ocean layout, so sign-in matches the rest of the refresh. */
/* Everything in the sign-in unit is sized off one number -- the seal's
   diameter -- so the fields and the submit bar stay in proportion with the
   crest above them at any breakpoint. Change --kd-seal and the whole block
   rescales together. Field width is 1.6x the seal (the same wide/short
   "window" ratio the row was designed around) and field height is 0.2x it.

   The seal itself is viewport-relative so the stack actually fills the
   screen instead of floating as a small island in the gradient. The whole
   unit is ~1.71 seals tall (seal + gap + two fields + submit bar), so
   48vh - 56px keeps it at roughly 83% of the viewport height at any size;
   the 58vw term takes over on narrow screens, where width binds first.
   Height and text size are clamped so a huge monitor doesn't produce
   comically tall inputs, and a short landscape phone still gets tappable
   ones. */
.kd-login-page{
  --kd-seal:clamp(120px, min(calc(48vh - 56px), calc(58vw - 24px)), 420px);
  --kd-field-w:min(100%, calc(var(--kd-seal) * 1.6));
  --kd-field-h:clamp(44px, calc(var(--kd-seal) * 0.2), 84px);
  min-height:100vh;
  margin:0;
  position:relative;
  display:flex;
  flex-direction:column;
}
/* Fixed full-viewport layer so the gradient is one continuous paint behind
   the card and footer, instead of being recomputed per flex box (which was
   producing a visible seam at the wrap/footer boundary in some browsers). */
.kd-login-page::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,193,102,.35) 0%, rgba(255,193,102,0) 40%),
    radial-gradient(circle at 88% 85%, rgba(84,226,209,.35) 0%, rgba(84,226,209,0) 45%),
    linear-gradient(135deg, #2f7ff5 0%, var(--brand) 45%, #123a91 100%);
}
.kd-login-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 0 auto;
  padding:40px 20px;
  box-sizing:border-box;
}
/* Card + footer travel together as one balanced unit so the footer stays
   close to the card instead of drifting to the bottom of the viewport.
   No Bootstrap grid wrapper anymore -- flexbox alone centers the card,
   which is simpler and avoids the old col-md-6/offset-3 math drifting out
   of sync with the card's own width as its size changed. */
.kd-login-center{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  gap:calc(var(--kd-seal) * 0.09);
}
/* Crest above the card: sized to actually be seen (not a faint watermark),
   in normal flow so it takes its own place above the fields. */
.kd-login-seal{
  width:var(--kd-seal);
  height:var(--kd-seal);
  flex:0 0 auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
@media (max-width:600px){
  .kd-login-wrap{ padding:24px 16px; }
}
/* Page-level notice (wrong domain), sits above the card as its own strip
   instead of living inside the sign-in form and inflating its height. */
.kd-domain-banner{
  position:relative;
  background:var(--brand-tint);
  color:var(--ink);
  text-align:center;
  font-size:14px;
  line-height:1.5;
  padding:12px 20px;
  border-bottom:1px solid rgba(16,24,40,.08);
}
.kd-domain-banner strong{ font-weight:700; }
.kd-domain-banner a{ color:var(--brand-dark); font-weight:600; text-decoration:underline; }
/* Wide, short "window" proportions (~1.6:1 width:height, golden-ratio
   landscape) instead of the tall single-column stack. Putting the two
   fields side by side is what makes the card land in that range without
   leaving a single wide input looking empty. */
/* No card -- the fields sit directly on the gradient as frosted-glass
   inputs instead of inside an opaque white box. */
.kd-login-card{
  width:100%;
  max-width:var(--kd-field-w);
  margin:0 auto;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}
.kd-login-fields-row{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:calc(var(--kd-field-h) * 0.28);
}
.kd-login-fields-row .kd-field{ flex:none; width:100%; min-width:0; margin-bottom:0; }
.kd-login-card .kd-field label{ font-size:14px; margin-bottom:6px; }
/* Recessed/embedded look: a dark tint plus inset shadows (dark on the top
   edge, a thin light rim on the bottom edge) so the field reads as a groove
   carved into the background instead of a raised glass panel floating on
   top of it. */
.kd-login-card .form-control{
  height:var(--kd-field-h);
  font-size:clamp(15px, calc(var(--kd-field-h) * 0.32), 22px);
  padding-left:calc(var(--kd-field-h) * 0.42);
  border-radius:calc(var(--kd-field-h) / 2);
  background:rgba(2,8,24,.42);
  border:1px solid transparent;
  border-top-color:rgba(0,0,0,.5);
  border-left-color:rgba(0,0,0,.4);
  border-right-color:rgba(255,255,255,.2);
  border-bottom-color:rgba(255,255,255,.3);
  color:#fff;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,.65),
    inset 0 6px 12px rgba(0,0,0,.45),
    inset 0 -2px 0 rgba(255,255,255,.18);
}
.kd-login-card .form-control::placeholder{ color:rgba(255,255,255,.55); }
.kd-login-card .form-control:focus{
  background:rgba(2,8,24,.5);
  border-color:rgba(255,255,255,.5);
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,.65),
    inset 0 6px 12px rgba(0,0,0,.45),
    inset 0 -2px 0 rgba(255,255,255,.18),
    0 0 0 3px rgba(255,255,255,.2);
}
.kd-login-card .kd-pw-toggle{
  width:var(--kd-field-h);
  height:var(--kd-field-h);
  font-size:clamp(15px, calc(var(--kd-field-h) * 0.3), 20px);
  color:rgba(255,255,255,.8);
}
.kd-login-card .kd-pw-toggle:hover,
.kd-login-card .kd-pw-toggle:focus{ color:#fff; }
.kd-login-card .kd-input-wrap .form-control{ padding-right:calc(var(--kd-field-h) * 0.95); }
.kd-login-card .kd-field-hint{ font-size:12px; color:#ffe1e1; }
/* Sign-in arrow lives INSIDE the password field, at its right end (2026-11):
   a brass pill (~22% of the field width), always visible; the show/hide eye sits just left of it.
   Enter in either field still submits. */
.kd-login-card .kd-login-pw .form-control{ padding-right:calc(var(--kd-field-h) * 2.8); }
.kd-login-card .kd-login-pw .kd-pw-toggle{ right:calc(var(--kd-field-h) * 1.95); width:calc(var(--kd-field-h) * 0.8); }
.kd-login-go{
  position:absolute;
  top:50%;
  right:calc(var(--kd-field-h) * 0.12);
  transform:translateY(-50%);
  width:calc(var(--kd-field-h) * 1.8);   /* ~22% of the field: a clear button, field still dominant */
  height:calc(var(--kd-field-h) * 0.76);
  padding:0;
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg, #dcc58c 0%, #c9a95a 100%);
  color:#081c33;
  box-shadow:0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
  font-size:clamp(15px, calc(var(--kd-field-h) * 0.3), 22px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease, box-shadow .15s ease;
}
.kd-login-go:hover, .kd-login-go:focus{ background:linear-gradient(180deg, #e9d9aa 0%, #d8c48a 100%); color:#081c33; outline:none; }
.kd-login-go:focus-visible{ box-shadow:0 0 0 3px rgba(244,236,214,.85), 0 2px 8px rgba(0,0,0,.35); }
.kd-login-go .fa{ transition:transform .15s ease; }
.kd-login-go:hover .fa{ transform:translateX(4px); }
.kd-login-footer{
  background:transparent;
  color:transparent;
  font-size:12px;
  text-align:center;
  margin:0;
  padding:0;
}
.kd-login-footer a{ color:transparent; }
/* Terms / Disclaimer (public site): small line right under "Sign up here" */
.kd-signup-link .kd-login-legal{ display:block; margin-top:6px; font-size:12.5px; color:rgba(255,255,255,.55); }
.kd-signup-link .kd-login-legal a{ color:rgba(255,255,255,.8); text-decoration:none; }
.kd-signup-link .kd-login-legal a:hover{ color:#fff; text-decoration:underline; }
/* Default browser selection highlight is a blue tint that would nearly
   vanish against this gradient -- make selecting the copyright text still
   visibly show a highlight. */
.kd-login-footer::selection,
.kd-login-footer *::selection{ background:#fff; color:var(--brand-dark); }
.kd-login-footer::-moz-selection,
.kd-login-footer *::-moz-selection{ background:#fff; color:var(--brand-dark); }

/* ==========================================================================
   NAVY & BRASS (2026-11) -- carries the login seal's identity into the app.
   Phase 1: fonts, header (every page), list-page band + feed cards + sidebar.
   ========================================================================== */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('../fonts/inter-latin-var.woff2') format('woff2');
}
@font-face{
  font-family:'Source Serif 4';
  font-style:normal;
  font-weight:500 700;
  font-display:swap;
  src:url('../fonts/sourceserif4-latin-var.woff2') format('woff2');
}
:root{
  --nb-midnight:#081c33;
  --nb-navy-deep:#0b2440;
  --nb-navy:#14355e;
  --nb-navy-line:#22426b;
  --nb-link:#1d4f91;
  --nb-brass:#c9a95a;
  --nb-brass-light:#d8c48a;
  --nb-brass-text:#8a6a1f;
  --nb-brass-tint:#f6ecd0;
  --nb-cream:#f4ecd6;
  --nb-paper:#f4f1ea;
  --nb-hair:#e3ddcf;
  --nb-ink:#262c33;
  --nb-muted:#59616b;
  --nb-on-navy:#b7c4d8;
  --nb-serif:'Source Serif 4', Georgia, 'Times New Roman', serif;
  --nb-sans:'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---- Header (all front pages) ------------------------------------------- */
#header .navbar{
  background:var(--nb-midnight);
  border:0;
  border-bottom:3px solid var(--nb-brass);
  border-radius:0;
  margin-bottom:0;
  min-height:80px;
  padding:0;
  font-family:var(--nb-sans);
}
#header .navbar > .container{ min-height:77px; }
#header .navbar-brand.kd-brand{
  display:flex;
  align-items:center;
  gap:12px;
  height:77px;
  padding:0 15px;
  float:left;
}
#header .kd-brand-seal{ width:48px; height:48px; flex:none; }
#header .kd-brand-text{ display:flex; flex-direction:column; line-height:1.05; }
#header .kd-brand-name{
  font-family:var(--nb-serif);
  font-weight:700;
  font-size:25px;
  letter-spacing:5px;
  color:#efe2bd;
}
#header .kd-brand-tag{
  margin-top:4px;
  font-family:var(--nb-sans);
  font-size:10px;
  font-weight:600;
  letter-spacing:3.2px;
  color:var(--nb-brass);
}
#header .navbar-collapse{ padding-top:16px; }
#header .navbar-inverse .navbar-nav > li > a,
#header .navbar-nav > li > a{
  color:#d5dde9;
  font-size:15px;
  font-weight:500;
  padding:12px 14px;
  border-radius:10px;
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li > a:focus{ background:var(--nb-navy); color:#fff; }
#header .navbar-nav > .active > a,
#header .navbar-nav > .open > a,
#header .navbar-nav > .open > a:hover,
#header .navbar-nav > .open > a:focus{ background:var(--nb-navy); color:#fff; }
#header .navbar-nav > li > a .fa{ color:var(--nb-brass-light); }
/* style.css draws the user icon on a light-grey disc; make it a brass avatar */
#header .navbar-inverse .navbar-nav > li > a i.fa-user,
#header .navbar-nav > li > a i.fa-user{
  background:var(--nb-brass);
  color:var(--nb-midnight) !important;
  line-height:20px;
}
/* Unread count: brass pill */
#header .bell-circle{
  background:var(--nb-brass);
  color:var(--nb-midnight);
  font-weight:700;
  border:0;
}
/* "Add Post": the one bright action in the bar */
#header .navbar-nav .search-btn,
#header .navbar-nav .btn-primary.search-btn{
  background:var(--nb-brass);
  border:0;
  color:var(--nb-midnight);
  font-family:var(--nb-sans);
  font-weight:700;
  font-size:15px;
  height:44px;
  padding:0 22px;
  margin-top:-4px;
  border-radius:22px;
  box-shadow:0 4px 14px rgba(201,169,90,.35);
}
#header .navbar-nav .search-btn:hover,
#header .navbar-nav .search-btn:focus{ background:var(--nb-brass-light); color:var(--nb-midnight); }
#header .navbar-nav > li > a:has(.search-btn){ padding:12px 0 0 8px; background:none; }
/* the link is the control; the pill is a span (a <button> inside <a> was invalid, two tab stops) */
#header .navbar-nav span.search-btn{ display:inline-block; line-height:44px; }
#header .navbar-nav > li > a:has(.search-btn):focus-visible .search-btn{ outline:2px solid #fff; outline-offset:2px; }
/* Dropdowns keep their white panel; active row turns navy, not blue */
#header .navbar-nav .dropdown-menu > li > a:hover,
#header .navbar-nav .dropdown-menu > li.active > a{ background:var(--nb-navy-deep); color:#fff; }
@media (max-width:767px){
  #header .navbar-toggle{ margin-top:21px; border-color:var(--nb-navy-line); }
  #header .navbar-collapse{ padding-top:0; }
  #header .kd-brand-tag{ display:none; }
}

/* ---- List pages: navy band (search + tabs) ------------------------------ */
/* The band's navy runs edge to edge via a pseudo-element; no stacking context
   is created (no isolation/transform on .kd-band) so Bootstrap modals that
   live inside the tabs partial still sit above the body-level backdrop. */
html:has(.kd-band){ overflow-x:clip; }
#blog.kd-feed{ margin-top:0; font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-band{ position:relative; padding:28px 0 0; margin-bottom:28px; }
.kd-band::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:0; bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:var(--nb-navy-deep);
}
.kd-band .widget.search{
  border:0;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  margin-bottom:22px;
}
/* Tabs: underline style on navy, replacing the skewed white folder tabs */
.kd-band .tabbed{
  min-width:0;
  margin:0;
  border-bottom:1px solid var(--nb-navy-line);
  overflow:visible;
}
.kd-band .tabbed ul{
  float:none;
  display:flex;
  flex-wrap:wrap;
  gap:0 32px;
  padding:0;
  overflow:visible;
}
.kd-band .tabbed ul li{ display:flex; align-items:center; gap:10px; }
.kd-band .tabbed ul li a,
.kd-band .tabbed ul li.active a{
  float:none;
  margin:0 0 -1px;
  padding:10px 0 14px;
  background:none;
  color:var(--nb-on-navy);
  font-family:var(--nb-sans);
  font-size:17px;
  font-weight:500;
  border-bottom:3px solid transparent;
  text-decoration:none;
}
.kd-band .tabbed ul li a:before,
.kd-band .tabbed ul li a:after{ display:none; }
.kd-band .tabbed ul li a:hover,
.kd-band .tabbed ul li a:focus{ color:#fff; }
.kd-band .tabbed ul li a.active{
  background:none;
  color:#fff;
  font-weight:600;
  border-bottom-color:var(--nb-brass);
}
.kd-band .add-interest{ position:static; padding-bottom:4px; }
.kd-band .add-interest span,
.kd-band .add-interest i{ color:var(--nb-on-navy); font-size:16px; }
.kd-band .add-interest span:hover i{ color:var(--nb-brass-light); }
/* Content sits on top of the band's lower edge */
.kd-feed > .blog{ position:relative; }
.kd-feed .tab-content > .tab-pane > .blog-item:first-child{ margin-bottom:6px; }
.kd-feed #sorting .control-label{ color:var(--nb-muted); font-weight:500; padding-top:10px; }
.kd-feed #sorting .form-control{ border-radius:10px; height:40px; }

/* ---- Feed cards --------------------------------------------------------- */
.kd-feed .blog .blog-item .blog-content{
  position:relative;
  background:#fff;
  border:1px solid var(--nb-hair);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(8,28,51,.10), 0 1px 3px rgba(8,28,51,.08);
  padding:26px 30px 74px;
  margin-bottom:12px;
}
.kd-feed .blog .blog-item .blog-content:hover{
  transform:none;
  border-color:#d6cdb8;
  box-shadow:0 14px 36px rgba(8,28,51,.14), 0 1px 3px rgba(8,28,51,.08);
}
.kd-feed .blog-content h3{ padding-right:96px; margin-bottom:10px; }
.kd-feed .blog-content h3 a{
  font-family:var(--nb-serif) !important;
  font-weight:700;
  font-size:27px !important;
  line-height:1.25;
  color:var(--nb-navy-deep) !important;
}
.kd-feed .blog-content:hover h3 a{ color:var(--nb-link) !important; }
.kd-feed .blog-content > p,
.kd-feed .blog-content p{ font-size:17px; line-height:1.55; color:#444b54; }
.kd-feed .blog-content p.small{ font-size:14px; color:var(--nb-muted); }
.kd-feed .post-user span,
.kd-feed .post-user a{ font-size:14px; color:var(--nb-muted); }
.kd-feed .post-user span i{ color:var(--nb-brass-text); }
/* Post id chip */
.kd-feed .serial_no.big{
  background:#e6edf7;
  color:var(--nb-link);
  font-family:var(--nb-sans);
  font-size:14px;
  font-weight:700;
  height:26px;
  border-radius:7px;
  padding:0 9px;
}
/* Label pills */
.kd-feed .tag-list ul li a{
  background:var(--nb-paper);
  border:1px solid var(--nb-hair);
  color:var(--nb-ink);
  font-size:14px;
  font-weight:500;
  border-radius:16px;
  padding:4px 13px;
}
.kd-feed .tag-list ul li a:hover{ background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:#fff; }
/* Unread states: a tag sitting on the card's top edge, not a coloured stripe */
.kd-feed .blog-content.update,
.kd-feed .blog-content.notify{ border-left:1px solid var(--nb-hair); background:#fff !important; }
.kd-feed .blog-content.update::before,
.kd-feed .blog-content.notify::before{
  position:absolute;
  top:-13px;
  left:28px;
  padding:3px 12px;
  border-radius:7px;
  font-family:var(--nb-sans);
  font-size:13px;
  font-weight:700;
  letter-spacing:.3px;
  line-height:20px;
}
.kd-feed .blog-content.update::before{ content:"Updated"; background:var(--nb-brass); color:var(--nb-midnight); }
.kd-feed .blog-content.notify::before{ content:"New comments"; background:var(--nb-navy-deep); color:#fff; }
.kd-feed .update-circle,
.kd-feed .notify-circle{ display:none; }
/* Edit / transfer icons */
.kd-feed .edit-icon,
.kd-feed .exchange-icon{ top:24px; color:var(--nb-muted); font-size:19px; }
.kd-feed .edit-icon{ right:24px; }
.kd-feed .exchange-icon{ right:60px; }
.kd-feed .edit-icon:hover,
.kd-feed .exchange-icon:hover{ color:var(--nb-navy-deep); }
/* Footer bar: quiet icon + count actions */
.kd-feed .blog-content .bottom-box{
  background:#fff;
  border-top:1px solid #eee8dc;
  border-radius:0 0 16px 16px;
  padding:10px 20px;
}
.kd-feed .tab-btn,
.kd-feed .tab-btn a{
  color:#444b54;
  font-family:var(--nb-sans);
  font-size:15px;
}
.kd-feed .tab-btn{ padding:8px 12px; border-radius:10px; transition:background-color .15s ease; }
.kd-feed .tab-btn:hover{ background:var(--nb-paper); }
.kd-feed .tab-btn a:hover,
.kd-feed .tab-btn a:hover span{ color:var(--nb-navy-deep); }
.kd-feed .tab-btn.like-btn{ background:var(--nb-brass-tint); color:#5e4710; font-weight:700; }
.kd-feed .tab-btn.like-btn:hover{ background:#efdfb4; }
.kd-feed .not-found h2{ font-family:var(--nb-serif); color:var(--nb-navy-deep); }

/* ---- Sidebar ------------------------------------------------------------ */
.kd-feed aside .widget{
  background:#fff;
  border:1px solid var(--nb-hair);
  border-radius:16px;
  box-shadow:0 1px 3px rgba(8,28,51,.06);
}
.kd-feed aside .widget h3,
.kd-feed aside h3{
  font-family:var(--nb-serif);
  font-weight:700;
  font-size:21px;
  color:var(--nb-navy-deep);
  letter-spacing:0;
}
.kd-feed aside a{ color:var(--nb-link); }
/* Scoreboard strip: brass-topped card with serif figures */
.kd-feed .kd-statstrip{
  border:1px solid var(--nb-hair);
  border-top:4px solid var(--nb-brass);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 30px rgba(8,28,51,.10);
}
.kd-feed .kd-statstrip .kd-stat-n{
  font-family:var(--nb-serif);
  font-weight:700;
  font-size:34px;
  line-height:1.1;
  color:var(--nb-navy-deep);
}
.kd-feed .kd-statstrip .kd-stat:last-child .kd-stat-n{ color:var(--nb-brass-text); }
.kd-feed .kd-statstrip .kd-stat-t{
  font-family:var(--nb-sans);
  font-size:13px;
  font-weight:600;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:var(--nb-muted);
}
/* Warm paper canvas on converted pages */
body:has(.kd-feed){ background:var(--nb-paper); }

/* ---- Alignment pass (2026-11) -------------------------------------------
   One left/right edge for header, band and feed; one vertical centre line
   for everything in the header bar. */
#header .navbar > .container .navbar-brand.kd-brand{ margin-left:0; padding:0; }
#header .bell-circle{
  left:auto; right:-11px; top:-10px;
  width:18px; height:18px;
  font-size:10px;
}
#header .navbar-nav > li > a i.fa-user{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  font-size:14px; line-height:1; margin:0;
}
/* user menu: caret next to the name, not pinned 190px away */
#header .navbar-nav li.user-menu > .dropdown-toggle{ width:auto; }
#header .navbar-nav li.user-menu > .dropdown-toggle > .fa-angle-down{ margin-left:0; }
@media (min-width:768px){
  #header .navbar-collapse.collapse{
    display:flex !important;
    align-items:center;
    height:77px;
    padding-top:0;
    padding-bottom:0;
  }
  #header .navbar-nav{ display:flex; align-items:center; gap:4px; float:none; margin:0; }
  #header .navbar-nav > li{ float:none; }
  #header .navbar-nav > li > a{
    display:flex; align-items:center; gap:8px;
    height:44px; padding:0 14px;
    line-height:1;
  }
  #header .navbar-nav > li > a:has(.search-btn){ padding:0 0 0 12px; }
  #header .navbar-nav .search-btn,
  #header .navbar-nav .btn-primary.search-btn{ margin:0; float:none !important; }
}
/* Feed: sort row starts flush with the sidebar's first card */
.kd-feed .tab-content > .tab-pane > .blog-item:first-child{ margin:0 0 14px; }
.kd-feed #sorting .form-group{ margin:0; }
.kd-feed #sorting .form-control{ height:42px; }
.kd-feed aside > :first-child,
.kd-feed aside .kd-statstrip:first-child{ margin-top:0; }

/* ---- Header search (2026-11) --------------------------------------------
   The search form now lives in the header (kdHeaderSearchForm). Pages that
   used to draw a white search card keep only its links + hidden modals. */
.kd-hsearch-wrap{ display:block; clear:both; padding:0 0 12px; }  /* phones: full-width row under the bar */
@media (min-width:768px){
  #header .navbar > .container{ display:flex; align-items:center; }
  #header .navbar > .container::before,
  #header .navbar > .container::after{ display:none; }
  #header .navbar-header{ float:none; flex:none; }
  #header .navbar-collapse.collapse{ float:none !important; flex:none; margin-left:auto; }
  .kd-hsearch-wrap{ display:block; clear:none; padding:0; flex:1 1 auto; min-width:0; margin:0 28px 0 36px; }
}
.kd-hsearch{
  display:flex;
  align-items:center;
  height:46px;
  margin:0;
  background:#10294a;
  border:1px solid #2a4a74;
  border-radius:23px;
  font-family:var(--nb-sans);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.kd-hsearch:focus-within{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.25); }
/* the magnifier is the submit button; Enter also searches */
.kd-hsearch-go{
  flex:none; width:44px; height:44px; margin:0 2px 0 4px; padding:0;
  border:0; border-radius:50%; background:none;
  color:#9fb0c8; font-size:17px;
}
.kd-hsearch-go:hover,
.kd-hsearch-go:focus{ color:var(--nb-brass-light); outline:none; }
.kd-hsearch-input{
  flex:1 1 auto; min-width:0; height:100%;
  border:0; background:none; outline:none; box-shadow:none;
  color:#fff; font-size:15px; padding:0 20px 0 0;
}
.kd-hsearch-input::placeholder{ color:#8fa1bb; opacity:1; }
.kd-hsearch-input::-webkit-search-cancel-button{ filter:invert(1) opacity(.6); }
/* Icon-only Home and Notifications so the search gets the room */
@media (min-width:768px){
  #header .kd-nav-label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #header .navbar-nav > li > a:has(#bell_notif) > .fa-angle-down,
  #header .navbar-nav > li > a:has(.kd-su-icon) > .fa-angle-down{ display:none; }
  #header .navbar-nav > li > a .kd-su-icon{ font-size:18px; color:var(--nb-brass-light); }
  #header .navbar-nav > li > a .fa-home,
  #header .navbar-nav > li > a .fa-bell{ font-size:19px; }
}
@media (max-width:991px) and (min-width:768px){
  #header .kd-brand-tag{ display:none; }
  .kd-hsearch-wrap{ margin:0 12px 0 18px; }
}

/* The search card's remains: Advanced / Saved links */
.kd-search-links{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px 22px; font-family:var(--nb-sans); font-size:14px; }
.kd-search-links a{ color:var(--nb-link); text-decoration:none; }
.kd-search-links a:hover{ color:var(--nb-navy-deep); text-decoration:underline; }
.kd-search-links .fa{ margin-right:4px; }
.widget.search:has(> .kd-search-links){
  background:none; border:0; box-shadow:none; border-radius:0;
  padding:0; margin:0 0 12px; overflow:visible;
}
/* In the band they ride on the tabs row, right-aligned */
.kd-band{ padding-top:22px; }
/* no z-index here: it would trap the #add_label / #add_search modals inside under the backdrop */
.kd-band .widget.search:has(> .kd-search-links){ position:absolute; right:0; bottom:15px; width:auto; float:none; margin:0; }
.kd-band .kd-search-links a{ color:var(--nb-on-navy); }
.kd-band .kd-search-links a:hover{ color:#fff; }
.kd-band .kd-search-links .fa{ color:var(--nb-brass-light); }
.kd-band:has(.kd-search-links:not([hidden])) .tabbed{ padding-right:260px; }
@media (max-width:991px){
  .kd-band .widget.search:has(> .kd-search-links){ position:static; margin:0 0 6px; }
  .kd-band .tabbed{ padding-right:0; }
}

/* Header search, round 3: centred, full width, Advanced/Saved inside the pill */
.kd-hsearch-wrap > #indv_search{ display:none; }   /* hidden-input form; its .search-form margins pushed the pill down */
.kd-hsearch-wrap > .kd-hsearch{ width:100%; }
.kd-hsearch-opts{ flex:none; display:flex; align-items:center; height:30px; margin-right:6px; padding-left:6px; border-left:1px solid #2a4a74; }
.kd-hsearch-opt{
  display:inline-flex; align-items:center; gap:6px;
  height:32px; padding:0 11px; border-radius:16px;
  color:#cfd8e6; font-size:14px; font-weight:500; text-decoration:none; white-space:nowrap;
}
.kd-hsearch-opt .fa{ color:var(--nb-brass-light); font-size:15px; }
.kd-hsearch-opt:hover,
.kd-hsearch-opt:focus{ background:var(--nb-navy); color:#fff; text-decoration:none; outline:none; }
.kd-search-links[hidden]{ display:none; }
.widget.search:has(> .kd-search-links[hidden]){ margin:0; }
@media (max-width:1199px){ .kd-hsearch-opt > span{ display:none; } .kd-hsearch-opt{ padding:0 9px; } }

/* Header, round 4: compact nav so the search gets the width.
   Home / Notifications / Super User = one tight group of 40px icon buttons;
   the account is just its avatar (full name in the tooltip). */
@media (min-width:768px){
  .kd-hsearch-wrap{ margin:0 18px 0 30px; }
  #header .navbar-nav{ gap:2px; }
  #header .navbar-nav > li > a:has(.fa-home),
  #header .navbar-nav > li > a:has(#bell_notif),
  #header .navbar-nav > li > a:has(.kd-su-icon){
    width:40px; padding:0; justify-content:center; gap:0;
  }
  /* account: avatar + first name as one pill, same 2px rhythm as the icon group */
  #header .navbar-nav li.user-menu > .dropdown-toggle{
    width:auto; height:40px; margin-left:2px; padding:0 14px 0 3px; gap:8px; border-radius:20px;
  }
  #header .navbar-nav li.user-menu .user-menu-name{
    display:inline-block; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    font-size:14px; font-weight:600; color:#e6ecf4;
  }
  #header .navbar-nav li.user-menu > .dropdown-toggle > .fa-angle-down{ display:none; }
  #header .navbar-nav li.user-menu > .dropdown-toggle i.fa-user{ width:34px; height:34px; font-size:15px; }
  /* menu opens leftward from the avatar so it stays on screen */
  #header .navbar-nav .dropdown-menu.drop-user{ left:auto !important; right:0; }
  #header .navbar-nav > li > a:has(.search-btn){ padding:0 0 0 10px; }
  #header .navbar-nav .search-btn,
  #header .navbar-nav .btn-primary.search-btn{ padding:0 18px; }
  #header .bell-circle{ right:-9px; }
}

/* Header, round 5: more room for search.
   Wide screens: front pages use a 1280px container (the mockup's width), so
   header, band and feed widen together and keep one shared edge. */
@media (min-width:1320px){
  body:has(#header .kd-brand) .container{ width:1280px; }
}
@media (min-width:768px){
  #header .navbar-brand.kd-brand{ gap:10px; }
  #header .kd-brand-seal{ width:44px; height:44px; }
  #header .kd-brand-name{ font-size:23px; letter-spacing:4px; }
  #header .kd-brand-tag{ letter-spacing:2.6px; }
  .kd-hsearch-wrap{ margin:0 12px 0 22px; }
}

/* ==========================================================================
   NAVY & BRASS -- SITE-WIDE LAYER (phase 2, 2026-11)
   Scoped to body.kd-site (the front layout), so the login page is untouched.
   ========================================================================== */
/* The older refresh layer draws buttons, focus rings, cards and widgets from
   these tokens; re-pointing them carries the palette onto every page. */
.kd-site{
  --brand:#14355e;
  --brand-dark:#0b2440;
  --brand-tint:#e6edf7;
  --ink:#0b2440;
  --text:#3a4047;
  --muted:#59616b;
  --bg:#f4f1ea;
  --surface:#ffffff;
  --border:#e3ddcf;
  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 1px 3px rgba(8,28,51,.08);
  --shadow-md:0 10px 30px rgba(8,28,51,.10), 0 1px 3px rgba(8,28,51,.08);
  background:var(--nb-paper);
  font-family:var(--nb-sans);
  color:var(--nb-ink);
}

/* ---- Page frame ---------------------------------------------------------- */
.kd-site .post-sec{ margin-top:0; padding:36px 0 48px; }
.kd-site #blog:not(.kd-feed){ margin-top:36px; }

/* ---- Headings: serif navy, like the cards' titles ----------------------- */
.kd-site section :is(h1,h2,h3),
.kd-site .modal-title,
.kd-site .kd-authcard h2{
  font-family:var(--nb-serif);
  font-weight:700;
  color:var(--nb-navy-deep);
  letter-spacing:0;
}
.kd-site .h3-heading{
  font-family:var(--nb-serif);
  font-size:30px;
  font-weight:700;
  text-transform:none;
  color:var(--nb-navy-deep);
  border-bottom:0;
  padding-bottom:12px;
  margin:4px 0 26px;
  position:relative;
}
.kd-site .h3-heading::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:56px;
  height:3px;
  border-radius:2px;
  background:var(--nb-brass);
}
.kd-site .h3-heading h3{ margin:0; font-size:inherit; }

/* ---- Cards ---------------------------------------------------------------- */
.kd-site .add-post,
.kd-site .widget:not(.search),
.kd-site :not(.kd-feed) > .blog .blog-item .blog-content,
.kd-site .panel{
  background:#fff;
  border:1px solid var(--nb-hair);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(8,28,51,.08), 0 1px 3px rgba(8,28,51,.06);
}
.kd-site .add-post{ padding:28px 34px; margin-bottom:20px; }
.kd-site .panel{ overflow:hidden; }
.kd-site .panel-heading{
  background:var(--nb-paper) !important;
  border-bottom:1px solid var(--nb-hair);
  color:var(--nb-navy-deep);
  font-weight:600;
}
.kd-site .panel-title{ font-family:var(--nb-sans); font-weight:600; color:var(--nb-navy-deep); }
.kd-site .blog-content h3 a{ font-family:var(--nb-serif) !important; color:var(--nb-navy-deep) !important; }

/* ---- Tabs outside the band (post detail, labels): underline on paper ---- */
.kd-site .tabbed:not(.kd-band .tabbed){
  min-width:0;
  margin:0 0 22px;
  overflow:visible;
  border-bottom:1px solid var(--nb-hair);
}
.kd-site .tabbed:not(.kd-band .tabbed) ul{
  float:none;
  display:flex;
  flex-wrap:wrap;
  gap:0 30px;
  padding:0;
  margin:0;
  overflow:visible;
}
.kd-site .tabbed:not(.kd-band .tabbed) ul li{ float:none; display:flex; align-items:center; }
.kd-site .tabbed:not(.kd-band .tabbed) ul li a,
.kd-site .tabbed:not(.kd-band .tabbed) ul li.active a{
  float:none;
  margin:0 0 -1px;
  padding:10px 0 13px;
  background:none;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  color:var(--nb-muted);
  font-family:var(--nb-sans);
  font-size:17px;
  font-weight:500;
  text-decoration:none;
  box-shadow:none;
}
.kd-site .tabbed:not(.kd-band .tabbed) ul li a::before,
.kd-site .tabbed:not(.kd-band .tabbed) ul li a::after{ display:none; }
.kd-site .tabbed:not(.kd-band .tabbed) ul li a:hover{ color:var(--nb-navy-deep); }
.kd-site .tabbed:not(.kd-band .tabbed) ul li a.active,
.kd-site .tabbed:not(.kd-band .tabbed) ul li.active a{
  color:var(--nb-navy-deep);
  font-weight:600;
  border-bottom-color:var(--nb-brass);
}
.kd-site .nav-tabs{ border-bottom:1px solid var(--nb-hair); }
.kd-site .nav-tabs > li > a{
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  margin-right:22px;
  padding:10px 2px 12px;
  color:var(--nb-muted);
  background:none;
  font-weight:500;
}
.kd-site .nav-tabs > li > a:hover{ background:none; color:var(--nb-navy-deep); }
.kd-site .nav-tabs > li.active > a,
.kd-site .nav-tabs > li.active > a:hover,
.kd-site .nav-tabs > li.active > a:focus{
  border:0;
  border-bottom:3px solid var(--nb-brass);
  background:none;
  color:var(--nb-navy-deep);
  font-weight:600;
}

/* ---- Buttons (style guide: navy primary, outlined secondary) ------------- */
.kd-site section .btn,
.kd-site .modal .btn,
.kd-site .signup-container .btn{
  border-radius:22px;
  font-family:var(--nb-sans);
  font-weight:600;
  padding-left:18px;
  padding-right:18px;
}
.kd-site section .btn-primary,
.kd-site .modal .btn-primary,
.kd-site .signup-container .btn-primary{
  background:var(--nb-navy-deep);
  border-color:var(--nb-navy-deep);
  color:#fff;
}
.kd-site section .btn-primary:hover,
.kd-site section .btn-primary:focus,
.kd-site .modal .btn-primary:hover,
.kd-site .modal .btn-primary:focus,
.kd-site .signup-container .btn-primary:hover{
  background:var(--nb-navy);
  border-color:var(--nb-navy);
  color:#fff;
}
.kd-site section .btn-default,
.kd-site .modal .btn-default{
  background:#fff;
  border:1px solid #d9d2c2;
  color:var(--nb-navy-deep);
}
.kd-site section .btn-default:hover,
.kd-site .modal .btn-default:hover{ background:var(--nb-paper); border-color:#cbbf9f; }
.kd-site section .btn-danger,
.kd-site .modal .btn-danger{ background:#fff; border:1px solid #f1c4bf; color:#b42318; }
.kd-site section .btn-danger:hover,
.kd-site .modal .btn-danger:hover{ background:#fdecea; color:#912018; }

/* ---- Form controls -------------------------------------------------------- */
.kd-site section .form-control,
.kd-site .modal .form-control,
.kd-site .signup-container .form-control{
  border:1px solid #d9d2c2;
  border-radius:10px;
  box-shadow:none;
  color:var(--nb-ink);
}
.kd-site section .form-control:focus,
.kd-site .modal .form-control:focus,
.kd-site .signup-container .form-control:focus{
  border-color:var(--nb-brass);
  box-shadow:0 0 0 3px rgba(201,169,90,.22);
  outline:none;
}

/* ---- Modals ---------------------------------------------------------------- */
.kd-site .modal-content{
  border:0;
  border-radius:16px;
  box-shadow:0 24px 60px rgba(8,28,51,.30);
  overflow:hidden;
}
.kd-site .modal-header{ border-bottom:3px solid var(--nb-brass); background:#fff; }
.kd-site .modal-footer{ border-top:1px solid var(--nb-hair); background:var(--nb-paper); }
.kd-site .modal-backdrop.in{ background:var(--nb-midnight); opacity:.6; }

/* ---- Tables ---------------------------------------------------------------- */
.kd-site section .table > thead > tr > th{
  background:var(--nb-paper);
  color:var(--nb-navy-deep);
  font-weight:600;
  border-bottom:2px solid var(--nb-hair);
}
.kd-site section .table > tbody > tr > td{ border-top-color:var(--nb-hair); }
.kd-site section .table-hover > tbody > tr:hover{ background:#faf7f0; }

/* ---- Alerts ----------------------------------------------------------------- */
.kd-site .alert{ border-radius:12px; }
.kd-site .alert-info{ background:var(--brand-tint); border-color:#c9d7ea; color:var(--nb-navy-deep); }

/* ---- My Profile: band + one card, two sections --------------------------- */
.kd-band--plain{ padding-bottom:26px; }
/* profile: title centred over the centred 860px card */
.kd-profilepage .kd-band-head{ max-width:860px; margin-left:auto; margin-right:auto; justify-content:center; text-align:center; }
.kd-site #blog.kd-profilepage{ margin-top:0; font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-profile-card{
  max-width:860px; margin:0 auto 48px; padding:8px 36px 28px;
  background:#fff; border:1px solid var(--nb-hair); border-radius:16px;
  box-shadow:0 1px 2px rgba(8,28,51,.04), 0 8px 24px rgba(8,28,51,.06);
  font-family:var(--nb-sans);
}
.kd-profile-card > .alert{ margin:22px 0 0; }
.kd-profile-section{ padding:26px 0 6px; border-bottom:1px solid var(--nb-hair); }
.kd-profile-section-head{ margin-bottom:18px; }
.kd-profile-section-head h2{ margin:0 0 4px; font-family:var(--nb-serif); font-size:22px; font-weight:700; color:var(--nb-navy-deep); }
.kd-profile-section-head p{ margin:0; font-size:14px; color:var(--nb-muted); }
.kd-profile-form label{ font-size:14px; font-weight:600; color:var(--nb-ink); margin-bottom:6px; }
.kd-profile-form .kd-req{ color:var(--nb-brass-text); }
.kd-profile-form .kd-opt{ margin-left:4px; font-size:12px; font-weight:500; color:var(--nb-muted); }
.kd-site .kd-profile-form .form-control{ height:44px; padding:8px 14px; font-size:15px; }
.kd-site .kd-profile-form .form-control[disabled]{ background:var(--nb-paper); color:var(--nb-muted); cursor:not-allowed; }
.kd-profile-form .kd-help{ margin:6px 0 0; font-size:13px; color:var(--nb-muted); }
.kd-profile-form .kd-help .fa{ margin-right:4px; color:var(--nb-brass-text); }
.kd-profile-form .form-group > p:not([class]){ margin:6px 0 0; font-size:13px; color:#b42318; } /* form_error() output */
.kd-profile-actions{ display:flex; justify-content:flex-end; gap:12px; padding-top:22px; }
.kd-site section .kd-profile-actions .btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:120px; height:44px; }
.kd-site section .btn.kd-btn-brass{ background:var(--nb-brass); border-color:var(--nb-brass); color:var(--nb-midnight); min-width:180px; }
.kd-site section .btn.kd-btn-brass:hover,
.kd-site section .btn.kd-btn-brass:focus{ background:var(--nb-brass-light); border-color:var(--nb-brass-light); color:var(--nb-midnight); }
@media (max-width:767px){
  .kd-profile-card{ padding:4px 18px 22px; }
  .kd-profile-actions{ flex-direction:column-reverse; }
  .kd-site section .kd-profile-actions .btn{ width:100%; }
}

/* ---- Notifications page ---------------------------------------------------- */
.kd-site .drop-notif.notif-page .name{ color:var(--nb-navy-deep); }
.kd-site .drop-notif.notif-page .notif-comment{ border-bottom-color:var(--nb-hair); }

/* ---- Footer: quiet midnight strip ------------------------------------------ */
.kd-site .foote-sec{
  background:var(--nb-midnight);
  color:var(--nb-on-navy);
  border-top:3px solid var(--nb-brass);
  font-family:var(--nb-sans);
  font-size:14px;
}

/* ---- Palette sweep (2026-11): Bootstrap's own blue + post-card details --- */
:where(.kd-site) a{ color:var(--nb-link); }
:where(.kd-site) a:hover,
:where(.kd-site) a:focus{ color:var(--nb-navy-deep); }
.kd-site .btn-primary{ background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); }
.kd-site .btn-primary:hover,
.kd-site .btn-primary:focus,
.kd-site .btn-primary:active{ background:var(--nb-navy); border-color:var(--nb-navy); }
.kd-site .btn-info{ background:var(--nb-navy); border-color:var(--nb-navy); color:#fff; }
.kd-site .btn-link{ color:var(--nb-link); }
.kd-site .label-primary,
.kd-site .bg-primary,
.kd-site .progress-bar{ background-color:var(--nb-navy); }
.kd-site .label-info{ background-color:var(--nb-link); }
.kd-site .text-primary,
.kd-site .text-info{ color:var(--nb-link); }
.kd-site .dropdown-menu > .active > a,
.kd-site .dropdown-menu > .active > a:hover,
.kd-site .nav-pills > li.active > a,
.kd-site .nav-pills > li.active > a:hover,
.kd-site .list-group-item.active,
.kd-site .list-group-item.active:hover,
.kd-site .pagination > .active > a,
.kd-site .pagination > .active > a:hover{ background-color:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:#fff; }
.kd-site .pagination > li > a{ color:var(--nb-navy-deep); }
/* Card tool icons (transfer ownership, edit): quiet navy, brass on hover */
.kd-site .edit-icon i,
.kd-site .exchange-icon i,
.kd-site .edit-tag i,
.kd-site .add-label i{ color:var(--nb-navy); transition:color .15s ease; }
.kd-site .edit-icon:hover i,
.kd-site .exchange-icon:hover i,
.kd-site .edit-tag:hover i,
.kd-site .add-label:hover i{ color:var(--nb-brass-text); }
/* Owner / co-owner chips: same family as the post-id chip */
.kd-site .owner-box,
.kd-site .co-owner-box{
  background:var(--nb-brass-tint) !important;
  color:#5e4710 !important;
  border-radius:14px;
  padding:3px 12px;
  font-weight:600;
}
.kd-site .owner-box a,
.kd-site .co-owner-box a{ color:inherit !important; }
.kd-site .update-circle{ background-color:var(--nb-brass); }

/* ---- Band header (mockup): eyebrow + page title, Sort by on the right ---- */
.kd-band-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px 24px; flex-wrap:wrap;
  margin:14px 0 22px;
}
.kd-band .kd-eyebrow{
  margin:0;
  font-family:var(--nb-sans); font-size:14px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase; color:var(--nb-brass);
}
.kd-band .kd-band-title{
  margin:6px 0 0;
  font-family:var(--nb-serif); font-weight:600; font-size:44px; line-height:1.15;
  color:var(--nb-cream);
}
.kd-band-tools{ padding-bottom:6px; }
.kd-band-tools #sorting{ margin:0; }
.kd-band-tools #sorting .form-group{ display:flex; align-items:center; gap:10px; margin:0; }
.kd-band-tools #sorting .form-group > [class*="col-"]{ float:none; width:auto; padding:0; }
.kd-band-tools #sorting .control-label{
  padding:0; margin:0; color:#cfd8e6;
  font-family:var(--nb-sans); font-size:15px; font-weight:500; white-space:nowrap;
}
.kd-band-tools #sorting .form-control{
  height:42px; min-width:220px; padding:0 12px;
  background:var(--nb-navy); color:#fff;
  border:1px solid #2a4a74; border-radius:10px;
  font-family:var(--nb-sans); font-size:15px;
}
.kd-band-tools #sorting .form-control:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.25); }
.kd-band-tools #sorting option{ background:#fff; color:var(--nb-ink); }
/* tabs: sentence case (style.css uppercases them) + count pill */
.kd-band .tabbed ul li a,
.kd-band .tabbed ul li.active a{ text-transform:none; letter-spacing:0; }
.kd-band .tabbed ul li a{ display:inline-flex; align-items:center; gap:8px; }
.kd-tab-count{
  display:inline-block; min-width:22px; padding:1px 8px; border-radius:11px;
  background:var(--nb-brass); color:var(--nb-midnight);
  font-size:13px; font-weight:700; line-height:20px; text-align:center;
}
@media (max-width:767px){
  .kd-band .kd-band-title{ font-size:32px; }
  .kd-band-tools #sorting .form-control{ min-width:0; }
}

/* ---- Header stays pinned but keeps its own space ---------------------------
   The navbar was position:fixed (out of flow) and the 68px header padding that
   used to make room for it had been zeroed, so page tops slid under the bar.
   Sticky on the header keeps it pinned while scrolling AND in the flow. */
.kd-site #header{ position:sticky; top:0; z-index:1030; padding-top:0; }
/* style.css sets body{height:100%}: the body box is one screen tall, so a sticky
   header (bounded by its parent) scrolled away after one screen. Let the body grow. */
body.kd-site{ height:auto; min-height:100%; }
.kd-site #header .navbar{ position:relative; top:auto; }

/* ---- Band, compact (2026-11): title only; Sort by shares the tabs row ---- */
.kd-band{ padding-top:18px; }
.kd-band-head{ margin:4px 0 6px; }
.kd-band .kd-band-title{ margin:0; font-size:38px; }
.kd-band-row{
  display:flex; align-items:flex-end; flex-wrap:wrap; gap:0 24px;
  border-bottom:1px solid var(--nb-navy-line);
}
.kd-band-row > .tabbed{ flex:1 1 auto; width:auto; min-width:0; border-bottom:0 !important; margin:0; }
.kd-band-row > .kd-band-tools{ flex:none; padding:0 0 5px; margin-left:auto; }
.kd-band:has(.kd-search-links:not([hidden])) .tabbed{ padding-right:0; }
/* "Save the current search" (advanced results only): top-right, by the title */
.kd-band .widget.search:has(> .kd-search-links){ top:24px; bottom:auto; }
@media (max-width:767px){
  .kd-band .kd-band-title{ font-size:30px; }
  .kd-band-row > .kd-band-tools{ margin:8px 0 10px; }
}

/* ---- Post pages (Post / History / Analytics): band with the post title --- */
.kd-site #blog.kd-postpage,
.kd-site #post.kd-postpage{ margin-top:0; padding-top:0; }
.kd-postpage > .blog,
.kd-postpage > .row{ margin-top:0; }
.kd-band--post .kd-band-title{ font-size:34px; line-height:1.2; max-width:960px; }
.kd-post-no{
  display:inline-block; vertical-align:middle;
  margin:-4px 14px 0 0; padding:2px 10px; border-radius:8px;
  background:var(--nb-navy); color:var(--nb-brass-light);
  font-family:var(--nb-sans); font-size:16px; font-weight:700; line-height:24px;
}
/* tools at the right end of the tabs row */
.kd-post-tools{ display:flex; align-items:center; gap:10px; }
.kd-post-tools #followun,
.kd-post-tools #followun > div{ float:none; width:auto; padding:0; margin:0; }
.kd-post-tools .pull-right{ float:none !important; }
.kd-post-tools a{ text-decoration:none; }
.kd-post-tools .kd-tool-btn,
.kd-post-tools #followun .btn{
  display:inline-flex; align-items:center; gap:7px;
  height:38px; min-width:0; padding:0 18px; border-radius:19px;
  background:transparent; border:1px solid var(--nb-brass-light);
  color:var(--nb-cream); font-family:var(--nb-sans); font-size:15px; font-weight:600;
  box-shadow:none;
}
.kd-post-tools .kd-tool-btn .fa{ color:var(--nb-brass-light); }
.kd-post-tools a:hover .kd-tool-btn,
.kd-post-tools #followun .btn:hover,
.kd-post-tools #followun .btn:focus{ background:var(--nb-brass); border-color:var(--nb-brass); color:var(--nb-midnight); }
.kd-post-tools a:hover .kd-tool-btn .fa{ color:var(--nb-midnight); }
/* the title now lives in the band */
.kd-postpage .kd-dup-title{ display:none; }
.kd-postpage .kd-card-title{ font-size:24px; margin:0 0 14px; }
/* analytics sub-tabs (Views / Followers / Helpful): underline, like the main tabs */
.kd-postpage .tab-nav.mini-tab ul li{ border:0 !important; }
.kd-postpage .tab-nav.mini-tab ul li a{ color:var(--nb-muted); font-weight:500; border-bottom:3px solid transparent; }
.kd-postpage .tab-nav.mini-tab ul li.active a{ color:var(--nb-navy-deep); font-weight:600; border-bottom-color:var(--nb-brass); }
@media (max-width:767px){
  .kd-band--post .kd-band-title{ font-size:26px; }
}
/* post card body: same type and pills as the feed cards */
.kd-postpage .kd-band{ margin-bottom:24px; }
.kd-postpage .blog .blog-item .blog-content{ padding:28px 34px 32px; }
.kd-postpage .blog-content p{ font-size:17px; line-height:1.6; color:#3a4047; }
.kd-postpage .post-user p,
.kd-postpage .post-user span,
.kd-postpage .post-user a{ font-size:14px; color:var(--nb-muted); }
.kd-postpage .post-user span i{ color:var(--nb-brass-text); }
.kd-postpage .tag-list ul li a{
  background:var(--nb-paper); border:1px solid var(--nb-hair); color:var(--nb-ink);
  font-size:14px; font-weight:500; border-radius:16px; padding:4px 13px;
}
.kd-postpage .tag-list ul li a.colorvisibleclass{ background:var(--nb-brass-tint) !important; border-color:#e3cf98; }
.kd-postpage .tag-list ul li a:hover{ background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:#fff; }
.kd-postpage .blog-content hr{ border-top-color:var(--nb-hair); margin:22px 0; }
.kd-postpage .blog-content h4{ font-family:var(--nb-serif); font-weight:700; color:var(--nb-navy-deep); }
.kd-postpage .comment-box h2{ font-size:24px; }

/* ---- Post page: footer bar in flow, blocks, Expand All ------------------- */
/* On the feed the Helpful/Followers bar is absolutely pinned to the card's
   bottom (cards are short). A post can hold any number of blocks, so here it
   sits in the flow after the content instead of on top of it. */
.kd-postpage .blog .blog-item .blog-content{ padding-bottom:0; }
.kd-postpage .blog-content .bottom-box{
  position:static;
  width:auto;
  margin:28px -34px 0;
  padding:12px 24px;
  background:#fff;
  border-top:1px solid #eee8dc;
  border-radius:0 0 16px 16px;
}
.kd-postpage .tab-btn,
.kd-postpage .tab-btn a{ color:#444b54; font-family:var(--nb-sans); font-size:15px; }
.kd-postpage .tab-btn{ background:none; border:0; border-radius:10px; padding:7px 12px; }
.kd-postpage .tab-btn:hover{ background:var(--nb-paper); }
.kd-postpage .tab-btn.like-btn{ background:var(--nb-brass-tint); color:#5e4710; font-weight:700; }
.kd-postpage .tab-btn.like-btn:hover{ background:#efdfb4; }
.kd-postpage .tab-btn .fa{ color:var(--nb-muted); }
.kd-postpage .tab-btn.like-btn .fa{ color:#5e4710; }
/* Expand All Blocks: was an orange warning button jammed under the content */
.kd-postpage div:has(> .click_all_blocks){ margin:30px 0 14px !important; }
.kd-postpage .click_all_blocks,
.kd-postpage .click_all_blocks.btn-warning{
  background:#fff; border:1px solid #d9d2c2; color:var(--nb-navy-deep);
  border-radius:18px; padding:6px 16px; font-weight:600; font-size:14px;
}
.kd-postpage .click_all_blocks:hover,
.kd-postpage .click_all_blocks:focus{ background:var(--nb-paper); border-color:#cbbf9f; color:var(--nb-navy-deep); }
/* block panels */
.kd-postpage .panel-group .panel{ margin-bottom:12px; }
.kd-postpage .panel-group .panel + .panel{ margin-top:0; }
.kd-postpage .panel-heading{ padding:12px 16px; }
.kd-postpage .panel-title{ font-family:var(--nb-serif); font-size:20px; font-weight:700; }
/* block delete button: its inline color:#fff vanished on the white danger style */
.kd-site .panel-title .btn-danger{ color:#b42318 !important; }
.kd-site .panel-title .btn-danger:hover{ background:#fdecea; }
/* block heading: title takes the row, edit/delete hug the right edge
   (the markup gives both halves width:100% and the edit button margin-left:68%) */
.kd-postpage .panel-title{ display:flex; align-items:center; gap:12px; }
.kd-postpage .panel-title > a{ flex:1 1 auto; width:auto !important; min-width:0; display:flex; align-items:center; gap:10px; }
.kd-postpage .panel-title > a > .plusbtnblock{ flex:none; }
.kd-postpage .panel-title > .text-right{ flex:none; width:auto !important; display:flex; gap:8px; }
.kd-postpage .panel-title > .text-right > .btn{ margin-left:0 !important; }
/* Buttons that must be noticed (user feedback): filled, not outlined */
.kd-postpage .click_all_blocks,
.kd-postpage .click_all_blocks.btn-warning{
  background:var(--nb-navy-deep); border:1px solid var(--nb-navy-deep); color:#fff;
  box-shadow:0 4px 12px rgba(8,28,51,.18);
}
.kd-postpage .click_all_blocks:hover,
.kd-postpage .click_all_blocks:focus{ background:var(--nb-navy); border-color:var(--nb-navy); color:#fff; }
.kd-postpage .click_all_blocks::before{ content:"\f0b2"; font-family:FontAwesome; margin-right:7px; color:var(--nb-brass-light); }
.kd-site .kd-leave-btn,
.kd-site .bottom-box .kd-leave-btn{
  background:#b42318; border:1px solid #b42318; color:#fff;
  border-radius:19px; padding:7px 16px; font-weight:600;
  box-shadow:0 4px 12px rgba(180,35,24,.22);
}
.kd-site .kd-leave-btn .fa{ color:#fff; }
.kd-site .kd-leave-btn:hover,
.kd-site .kd-leave-btn:focus{ background:#912018; border-color:#912018; color:#fff; }

/* ---- Add / edit post (and block) pages ------------------------------------
   A navy band behind the page top; the form card lifts off it. */
.kd-editpage{ position:relative; }
.kd-editpage::before{
  content:""; position:absolute; z-index:-1;
  top:0; left:50%; width:100vw; height:170px; transform:translateX(-50%);
  background:var(--nb-navy-deep);
}
html:has(.kd-editpage){ overflow-x:clip; }
.kd-site .kd-editpage{ padding-top:40px; }
.kd-editpage .add-post{
  padding:30px 40px 34px;
  box-shadow:0 18px 44px rgba(8,28,51,.16), 0 1px 3px rgba(8,28,51,.08);
}
.kd-editpage .h3-heading{ margin:0 0 26px; padding-bottom:16px; }
.kd-editpage .h3-heading h3{ font-size:34px; line-height:1.15; margin:4px 0 0; }
.kd-editpage .h3-heading .checkbox label{ color:var(--nb-navy-deep); }
.kd-editpage .h3-heading .form-group label{ color:var(--nb-muted) !important; }
.kd-editpage .h3-heading input[type="number"]{ border:1px solid #d9d2c2; border-radius:8px; }
.kd-editpage .form-group > label{ font-size:14px; font-weight:600; color:var(--nb-navy-deep); margin-bottom:6px; }
.kd-editpage .form-control{ height:44px; font-size:15px; }
.kd-editpage textarea.form-control{ height:auto; }
/* main action brass, Cancel and table-editing buttons outlined */
.kd-editpage .btn.search-btn,
.kd-editpage .btn-primary.search-btn{
  background:var(--nb-brass); border:1px solid var(--nb-brass); color:var(--nb-midnight);
  border-radius:24px; padding:10px 30px; font-weight:700;
  box-shadow:0 4px 14px rgba(201,169,90,.35);
}
.kd-editpage .btn.search-btn:hover,
.kd-editpage .btn.search-btn:focus{ background:var(--nb-brass-light); border-color:var(--nb-brass-light); color:var(--nb-midnight); }
.kd-site .newpost_btn,
.kd-site .btn.newpost_btn{
  background:#fff; border:1px solid #d9d2c2; color:var(--nb-navy-deep);
  border-radius:22px; font-weight:600;
}
.kd-site .newpost_btn:hover,
.kd-site .btn.newpost_btn:hover{ background:var(--nb-paper); border-color:#cbbf9f; color:var(--nb-navy-deep); }
.kd-editpage .btn.newpost_btn.btn-lg{ padding:10px 26px; }
/* chosen label picker + the tagged label chips */
.kd-editpage .chosen-container .chosen-single,
.kd-editpage .chosen-container-single .chosen-single{
  height:44px; line-height:42px; border:1px solid #d9d2c2; border-radius:10px;
  background:#fff; box-shadow:none; color:var(--nb-ink);
}
.kd-editpage .chosen-container-active .chosen-single{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-editpage .tag-cloud li{ margin:0 8px 8px 0; }
.kd-editpage .tag-cloud li a{
  background:var(--nb-paper); border:1px solid var(--nb-hair); color:var(--nb-ink);
  font-size:14px; font-weight:500; border-radius:16px; padding:4px 14px;
}
.kd-editpage .close-label{ top:-7px; right:-7px; }
.kd-editpage .close-label i{ background:#fff; border-radius:50%; }
@media (max-width:767px){
  .kd-editpage .add-post{ padding:22px 18px; }
  .kd-editpage .h3-heading h3{ font-size:28px; }
}
/* the Content Request / review options live inside .h3-heading and inherited its 30px serif */
.kd-editpage .h3-heading [class*="col-"]:not(:first-child),
.kd-editpage .h3-heading [class*="col-"]:not(:first-child) *{ font-family:var(--nb-sans); }
.kd-editpage .h3-heading .checkbox{ margin:6px 0 4px; }
.kd-editpage .h3-heading .checkbox label,
.kd-editpage .h3-heading .checkbox label strong{ font-size:16px; font-weight:600; color:var(--nb-navy-deep); }
.kd-editpage .h3-heading .form-group label{ font-size:14px !important; line-height:1.9; }
.kd-editpage .h3-heading .form-group{ margin-bottom:0; }
.kd-editpage .btn.search-btn.btn-lg,
.kd-editpage .btn.newpost_btn.btn-lg{
  display:inline-flex; align-items:center; justify-content:center;
  height:48px; min-width:130px; padding:0 28px; font-size:16px; line-height:1; vertical-align:middle;
}
.kd-editpage .btn.btn-block{
  background:#fff; border:1px solid #d9d2c2; color:var(--nb-navy-deep);
  border-radius:20px; font-weight:600;
}
.kd-editpage .btn.btn-block:hover{ background:var(--nb-paper); border-color:#cbbf9f; }
.kd-editpage .btn.btn-block .glyphicon{ color:var(--nb-brass-text); }

/* ==========================================================================
   HOME LAYOUT, OPTION B (2026-11): impact numbers in the band, open requests
   as a strip above the feed, Labels alone in a left rail.
   ========================================================================== */
/* ---- Band: impact numbers beside the title -------------------------------- */
.kd-band-head{ align-items:flex-end; }
.kd-bandstats{
  display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 22px;
  margin-left:auto; padding-bottom:6px;
  font-family:var(--nb-sans); font-size:14px; color:var(--nb-on-navy); text-decoration:none;
}
.kd-bandstats:hover,
.kd-bandstats:focus{ text-decoration:none; color:#fff; }
.kd-bs{ display:inline-flex; align-items:baseline; gap:6px; }
.kd-bs-n{ font-family:var(--nb-serif); font-weight:700; font-size:24px; line-height:1; color:var(--nb-cream); }
.kd-bs-help .kd-bs-n{ color:var(--nb-brass-light); }
.kd-bs-review{
  align-self:center;
  background:var(--nb-brass); color:var(--nb-midnight);
  font-size:13px; font-weight:700; border-radius:14px; padding:4px 12px;
}
.kd-bandstats:hover .kd-bs-review{ background:var(--nb-brass-light); }
/* "Save the current search" (advanced results) no longer fits top-right */
.kd-band .widget.search:has(> .kd-search-links){ position:static; margin:0 0 2px; }
.kd-band .widget.search:has(> .kd-search-links) .kd-search-links{ justify-content:flex-end; }

/* ---- Feed + rail: rail on the left, sticky, labels only ------------------- */
@media (min-width:992px){
  .kd-feed .blog > .row{ display:flex; align-items:flex-start; }
  .kd-feed .blog > .row::before,
  .kd-feed .blog > .row::after{ display:none; }
  .kd-feed .kd-rail{
    order:-1; float:none; flex:0 0 280px; width:280px;
    position:sticky; top:100px;
    max-height:calc(100vh - 120px); overflow-y:auto;
    padding-right:22px;
  }
  .kd-feed .kd-feedcol{ float:none; flex:1 1 0; width:auto; min-width:0; }
}

/* ---- Requests strip ------------------------------------------------------ */
.kd-reqstrip{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px;
  margin:0 0 18px; padding:12px 18px;
  background:var(--nb-brass-tint); border:1px solid #e3cf98; border-radius:14px;
  font-family:var(--nb-sans);
}
.kd-reqstrip-head{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:#5e4710; white-space:nowrap; }
.kd-reqstrip-items{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; min-width:0; flex:1 1 auto; }
.kd-reqstrip-items a{ font-size:15px; font-weight:600; color:var(--nb-navy-deep); text-decoration:none; }
.kd-reqstrip-items a:hover{ color:var(--nb-link); text-decoration:underline; }
.kd-reqstrip-dot{ color:#a8935a; }
.kd-reqstrip-all{ margin-left:auto; font-size:14px; font-weight:700; color:#5e4710; white-space:nowrap; text-decoration:none; }
.kd-reqstrip-all:hover{ color:var(--nb-navy-deep); text-decoration:underline; }

/* ---- Labels in the rail: a light navigation list -------------------------- */
.kd-feed .kd-rail .widget.tags{ background:none; border:0; box-shadow:none; padding:0; margin:0; float:none; }
.kd-feed .kd-rail .widget.tags .kd-lbl-head{ margin-bottom:8px; }
.kd-feed .kd-rail .widget.tags .kd-lbl-head h3{
  font-family:var(--nb-sans); font-size:12px; font-weight:700;
  letter-spacing:1.4px; text-transform:uppercase; color:var(--nb-muted);
}
.kd-rail .kd-lbl-icon{ color:var(--nb-navy); }
.kd-rail .kd-lbl-icon:hover,
.kd-rail .kd-lbl-icon:focus{ background:#fff; color:var(--nb-navy-deep); }
.kd-rail .kd-lbl-search .form-control{ height:36px; border-radius:9px; background:#fff; }
.kd-rail .label-header-fix{ max-height:none; overflow:visible; }
.kd-rail .label-header-fix > .col-md-12{ padding:0; float:none; }
.kd-rail .cd-accordion-menu li{ margin:0; }
.kd-rail .cd-accordion-menu label,
.kd-rail .cd-accordion-menu a{
  display:flex; align-items:center; gap:6px;
  min-height:34px; margin:0; padding:6px 8px 6px 26px;
  background:none; border:0; border-radius:8px; box-shadow:none;
  color:var(--nb-ink); font-family:var(--nb-sans); font-size:15px; font-weight:500;
}
.no-touch .kd-rail .cd-accordion-menu label:hover,
.no-touch .kd-rail .cd-accordion-menu a:hover,
.kd-rail .cd-accordion-menu label:hover,
.kd-rail .cd-accordion-menu a:hover{ background:#fff; color:var(--nb-navy-deep); }
.kd-rail .cd-accordion-menu input[type=checkbox]:checked + label{ color:var(--nb-navy-deep); font-weight:600; }
/* chevron drawn with borders (the old sprite icons are hidden) */
.kd-rail .cd-accordion-menu label::after,
.kd-rail .cd-accordion-menu a::after{ display:none; }
.kd-rail .cd-accordion-menu label::before{
  content:""; left:10px; width:7px; height:7px; background:none;
  border-right:2px solid var(--nb-muted); border-bottom:2px solid var(--nb-muted);
  transform:translateY(-70%) rotate(-45deg);
}
.kd-rail .cd-accordion-menu input[type=checkbox]:checked + label::before{
  border-color:var(--nb-brass-text); transform:translateY(-70%) rotate(45deg);
}
.kd-rail .cd-accordion-menu li:not(.has-children) > label::before{ display:none; }
.kd-rail .label-title > span:first-child{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kd-rail .label-title .badge{
  order:3; position:static; float:none; right:auto;
  width:auto; height:auto; margin-left:auto; padding:0 2px;
  background:none !important; color:var(--nb-muted) !important;
  font-size:13px; font-weight:500; border-radius:0; line-height:1.4;
}
.kd-rail .label-title .badge::before{ display:none; }
.kd-rail .label-search-icon,
.kd-rail .view-list-icon{ position:static !important; order:2; font-size:13px; padding:0 2px; }
.kd-rail .cd-accordion-menu ul{ border:0; padding:0 0 0 16px; margin:0; background:none; }
.kd-rail .cd-accordion-menu ul label,
.kd-rail .cd-accordion-menu ul a{ background:none; font-size:14px; min-height:32px; }
@media (max-width:991px){
  .kd-feed .kd-rail{ margin-top:24px; }
}
@media (min-width:992px) and (hover:hover){
  .kd-rail .label-search-icon,
  .kd-rail .view-list-icon{ opacity:0; transition:opacity .15s ease; }
  .kd-rail .label-title:hover .label-search-icon,
  .kd-rail .label-title:hover .view-list-icon{ opacity:1; }
}

/* ---- Labels full screen (#expand-toggle adds .tags.fullscreen) ------------
   The sticky rail is its own stacking context, so lift the whole rail above
   the sticky header while the panel is open; the panel itself becomes an
   opaque paper sheet with the tree laid out in columns. */
.kd-feed .kd-rail:has(.tags.fullscreen){ z-index:1045; overflow:visible; }
.kd-site .widget.tags.fullscreen{
  position:fixed; inset:0; z-index:1045; width:auto; height:auto;
  margin:0; float:none; cursor:default; overflow:auto;
  background:var(--nb-paper) !important; border:0; border-radius:0; box-shadow:none;
  padding:28px max(32px, calc((100vw - 1240px) / 2)) 48px !important;
}
.kd-site .widget.tags.fullscreen .kd-lbl-head{
  margin:0 0 16px; padding-bottom:14px; border-bottom:1px solid var(--nb-hair);
}
.kd-site .widget.tags.fullscreen .kd-lbl-head h3{
  font-family:var(--nb-serif); font-size:28px; font-weight:600;
  letter-spacing:0; text-transform:none; color:var(--nb-navy-deep);
}
.kd-site .widget.tags.fullscreen .kd-lbl-icon{ width:36px; height:36px; font-size:17px; }
.kd-site .widget.tags.fullscreen .kd-lbl-search{ max-width:420px; margin-bottom:20px; }
.kd-site .widget.tags.fullscreen .label-header-fix,
.kd-site .widget.tags.fullscreen #change-height{ max-height:none !important; overflow:visible !important; }
.kd-site .widget.tags.fullscreen #mylabel{ columns:260px 4; column-gap:40px; }
.kd-site .widget.tags.fullscreen #mylabel > li{
  break-inside:avoid; margin:0 0 14px; padding:8px 12px;
  background:#fff; border:1px solid var(--nb-hair); border-radius:12px;
}
.kd-site .widget.tags.fullscreen .label-search-icon,
.kd-site .widget.tags.fullscreen .view-list-icon{ opacity:1; }

/* ---- Empty state ("no posts") ------------------------------------------- */
.kd-site .not-found{
  margin:24px 0; padding:48px 24px 52px; text-align:center;
  background:#fff; border:1px dashed #d8ccaa; border-radius:16px;
}
.kd-site .not-found .kd-empty-art{ display:block; margin:0 auto 18px; width:120px; height:120px; }
.kd-site .not-found h2{
  margin:0 0 8px; font-family:var(--nb-serif); font-size:26px; font-weight:600;
  color:var(--nb-navy-deep); text-align:center;
}
.kd-site .not-found p{
  margin:0 auto; max-width:460px; font-family:var(--nb-sans); font-size:15px;
  color:var(--nb-muted); text-align:center;
}

/* ==========================================================================
   IN-POST EDITORS (2026-11): Calendar (FullCalendar 3), Map (OrgChart),
   List (sheet tabs + rendered tables), Timeline (Google Charts tooltip).
   User-chosen colours (map node fills, list cell colours, calendar event
   colours when set) stay as the user picked them; only the frame changes.
   The library stylesheets load after this file (some in the page body), so
   rules carry .kd-site for specificity.
   ========================================================================== */

/* ---- Calendar ------------------------------------------------------------- */
.kd-site .fc{ font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-site .fc-toolbar{ margin-bottom:14px; }
.kd-site .fc-toolbar h2{ font-family:var(--nb-serif); font-size:22px; font-weight:700; color:var(--nb-navy-deep); }
.kd-site .fc .fc-button,
.kd-site .fc-state-default{
  height:34px; padding:0 12px; background:#fff; background-image:none;
  border:1px solid #d9d2c1; color:var(--nb-navy); text-shadow:none; box-shadow:none;
  font-size:13px; font-weight:600; text-transform:capitalize;
}
.kd-site .fc-state-default.fc-corner-left{ border-top-left-radius:10px; border-bottom-left-radius:10px; }
.kd-site .fc-state-default.fc-corner-right{ border-top-right-radius:10px; border-bottom-right-radius:10px; }
.kd-site .fc-state-hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-site .fc-state-active,
.kd-site .fc-state-down{ background:var(--nb-navy); border-color:var(--nb-navy); color:#fff; box-shadow:none; }
.kd-site .fc-state-disabled{ opacity:.45; }
.kd-site .fc-unthemed th,
.kd-site .fc-unthemed td,
.kd-site .fc-unthemed thead,
.kd-site .fc-unthemed tbody,
.kd-site .fc-unthemed .fc-divider,
.kd-site .fc-unthemed .fc-row,
.kd-site .fc-unthemed .fc-popover{ border-color:var(--nb-hair); }
.kd-site .fc-unthemed thead .fc-day-header{
  padding:8px 0; background:var(--nb-paper); color:var(--nb-muted);
  font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase;
}
.kd-site .fc-unthemed td.fc-today{ background:var(--nb-brass-tint); }
.kd-site .fc-day-number{ padding:4px 6px !important; font-size:13px; color:var(--nb-muted); }
.kd-site .fc-today .fc-day-number{ color:var(--nb-brass-text); font-weight:700; }
.kd-site .fc-other-month .fc-day-number{ opacity:.45; }
.kd-site .fc-event{
  border:0; border-left:3px solid var(--nb-brass); border-radius:6px;
  background-color:var(--nb-navy); color:#fff; padding:2px 6px; font-size:12px;
}
.kd-site .fc-event:hover{ color:#fff; filter:brightness(1.12); }
.kd-site .fc-highlight{ background:var(--nb-brass); opacity:.18; }
.kd-site .fc-list-heading td{ background:var(--nb-paper) !important; color:var(--nb-navy-deep); font-weight:700; }
.kd-site .fc-list-item:hover td{ background:#faf7f0; }
.kd-site .fc-list-item-marker .fc-event-dot{ background:var(--nb-navy); }
.kd-site .fc-now-indicator{ border-color:var(--nb-brass); }

/* ---- Map ------------------------------------------------------------------ */
.kd-site #chart-container,
.kd-site .chart-containerblock{
  background:var(--nb-paper)
    radial-gradient(circle, rgba(20,53,94,.10) 1px, transparent 1.2px) 0 0 / 18px 18px;
  border:1px solid var(--nb-hair); border-radius:14px;
}
/* connector lines (library default is red) */
.kd-site .orgchart .lines .topLine{ border-top-color:rgba(20,53,94,.45) !important; }
.kd-site .orgchart .lines .rightLine{ border-right-color:rgba(20,53,94,.45); }
.kd-site .orgchart .lines .leftLine{ border-left-color:rgba(20,53,94,.45); }
.kd-site .orgchart .lines .downLine{ background-color:rgba(20,53,94,.45); }
.kd-site .orgchart .verticalNodes > td::before,
.kd-site .orgchart .verticalNodes ul > li::before,
.kd-site .orgchart .verticalNodes ul > li::after{ border-color:rgba(20,53,94,.45); }
/* nodes: fill is the user's colour (inline); default (none chosen) is navy */
.kd-site .orgchart .node{ background-color:var(--nb-navy); box-shadow:0 2px 6px rgba(8,28,51,.18); }
.kd-site .orgchart .node:hover,
.kd-site .orgchart .node.focused{ box-shadow:0 0 0 3px rgba(201,169,90,.55), 0 4px 12px rgba(8,28,51,.22); }
.kd-site .orgchart .node.kd-selected{ outline-color:var(--nb-brass); box-shadow:0 0 0 4px rgba(201,169,90,.35); }
.kd-site .orgchart .node .title.kd-inline-edit{ outline-color:var(--nb-brass); }
/* zoom / fit buttons (inline-styled grey SVGs) */
.kd-site [data-tlbr] svg,
.kd-site .map-block-btn-fit svg,
.kd-site .map-block-btn-zoomin svg,
.kd-site .map-block-btn-zoomout svg{
  background:#fff !important; border:1px solid var(--nb-hair) !important; border-radius:8px;
  box-shadow:0 1px 3px rgba(8,28,51,.12) !important;
}
.kd-site [data-tlbr] svg rect,
.kd-site [class^="map-block-btn-"] svg rect{ fill:#fff; }
.kd-site [data-tlbr] svg path,
.kd-site [data-tlbr] svg line,
.kd-site [class^="map-block-btn-"] svg path,
.kd-site [class^="map-block-btn-"] svg line{ stroke:var(--nb-navy); }
.kd-site [data-tlbr] svg circle,
.kd-site [class^="map-block-btn-"] svg circle{ fill:var(--nb-brass); }
.kd-site [data-tlbr]:hover svg,
.kd-site [class^="map-block-btn-"]:hover svg{ border-color:var(--nb-brass) !important; }
.kd-site .map-search-box{ border-color:#d9d2c1; border-radius:10px; font-family:var(--nb-sans); }
.kd-site .map-search-box:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.25); }
/* map editor panel buttons (edit pages) */
.kd-site #edit-panel button:hover,
.kd-site #edit-panel button:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.25); }

/* ---- List (rendered sheets on the post page) ------------------------------ */
.kd-site .ls-sheet-tabs.nav-tabs{ border-bottom:2px solid var(--nb-hair); margin-bottom:0; }
.kd-site .ls-sheet-tabs.nav-tabs > li > a{
  margin-right:4px; padding:7px 14px; border:1px solid transparent; border-radius:10px 10px 0 0;
  font-size:13px; font-weight:600; color:var(--nb-muted);
}
.kd-site .ls-sheet-tabs.nav-tabs > li > a:hover{ background:var(--nb-paper); border-color:transparent; color:var(--nb-navy-deep); }
.kd-site .ls-sheet-tabs.nav-tabs > li.active > a,
.kd-site .ls-sheet-tabs.nav-tabs > li.active > a:hover,
.kd-site .ls-sheet-tabs.nav-tabs > li.active > a:focus{
  background:#fff; border-color:var(--nb-hair) var(--nb-hair) #fff; color:var(--nb-navy-deep);
  box-shadow:inset 0 3px 0 var(--nb-brass);
}
.kd-site .ls-filter-indicator{ color:var(--nb-brass-text); opacity:1 !important; }

/* ---- Timeline (Google Charts tooltip) ------------------------------------- */
.kd-site .google-visualization-tooltip{
  border:1px solid var(--nb-hair) !important; border-radius:12px !important;
  box-shadow:0 12px 28px rgba(8,28,51,.18) !important; font-family:var(--nb-sans) !important;
}
.kd-site .google-visualization-tooltip-item-list .google-visualization-tooltip-item:first-child{ color:var(--nb-navy-deep); }

/* narrow desktops: the account pill drops back to the avatar alone */
@media (min-width:768px) and (max-width:1099px){
  #header .navbar-nav li.user-menu .user-menu-name{ display:none; }
  #header .navbar-nav li.user-menu > .dropdown-toggle{ padding:0 3px; }
}

/* ==========================================================================
   BAND, OPTION C (2026-11): same places, quieter.
   Numbers = one muted line beside the title; review = outlined chip;
   Sort = plain text with a brass caret (still a native <select>).
   ========================================================================== */
.kd-bandstats{ gap:0 8px; padding-bottom:10px; font-size:14px; }
.kd-bs{ gap:4px; }
.kd-bs-n{ font-family:var(--nb-sans); font-size:14px; font-weight:600; color:var(--nb-cream); }
.kd-bs-help .kd-bs-n{ color:var(--nb-cream); }
.kd-bs-dot{ color:#5f7392; }
.kd-bs-review{
  margin-left:8px; padding:2px 10px;
  background:transparent; border:1px solid #8a7440; border-radius:12px;
  color:var(--nb-brass-light); font-size:13px; font-weight:600;
}
.kd-bandstats:hover .kd-bs-review{ background:rgba(201,169,90,.14); border-color:var(--nb-brass); }
.kd-bandstats:hover .kd-bs-n{ color:#fff; }

/* Sort: text, no box */
.kd-band-tools #sorting .form-group{ gap:6px; }
.kd-band-tools #sorting .control-label{ font-size:14px; color:var(--nb-on-navy); }
.kd-band-tools #sorting .form-control{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  field-sizing:content; width:auto; min-width:0; height:34px;
  padding:0 22px 0 4px; border:0; border-radius:8px; box-shadow:none;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d8c48a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  color:#fff; font-size:15px; font-weight:600; cursor:pointer;
}
.kd-band-tools #sorting .form-control:hover{ background-color:rgba(255,255,255,.06); }
.kd-band-tools #sorting .form-control:focus{ outline:none; box-shadow:0 0 0 2px rgba(201,169,90,.45); border:0; }

/* ==========================================================================
   ADVANCED SEARCH POPUP (2026-11): sections, ranges on one line, sticky footer
   with "Name this search" + Clear / Save & search / Search.
   ========================================================================== */
.modal .modal-dialog.kd-adv-dialog{ width:760px; max-width:calc(100vw - 24px); margin:40px auto; }
.kd-site .kd-adv{ width:auto; display:flex; flex-direction:column; max-height:calc(100vh - 80px); font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-adv > form{ display:flex; flex-direction:column; min-height:0; flex:1 1 auto; }
.kd-adv-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding:22px 28px 16px; background:var(--nb-navy-deep); border-bottom:3px solid var(--nb-brass);
}
.kd-adv-head .modal-title{ margin:0 0 4px; font-family:var(--nb-serif); font-size:24px; font-weight:700; color:var(--nb-cream); }
.kd-adv-head p{ margin:0; font-size:14px; color:var(--nb-on-navy); }
.kd-adv-head .close{ margin:2px 0 0; font-size:28px; font-weight:400; line-height:1; color:var(--nb-on-navy); opacity:1; text-shadow:none; }
.kd-adv-head .close:hover{ color:#fff; }

.kd-adv-body{ flex:1 1 auto; min-height:0; overflow-y:auto; padding:6px 28px 8px; background:#fff; }
.kd-adv-sec{ padding:18px 0 14px; border-bottom:1px solid var(--nb-hair); }
.kd-adv-sec:last-of-type{ border-bottom:0; }
.kd-adv-sec-title{
  display:flex; align-items:center; gap:8px; margin:0 0 12px;
  font-size:12px; font-weight:700; letter-spacing:1.3px; text-transform:uppercase; color:var(--nb-muted);
}
.kd-adv-sec-title .fa{ color:var(--nb-brass-text); font-size:13px; }
.kd-adv label{ display:block; margin:0 0 6px; font-size:14px; font-weight:600; color:var(--nb-ink); }
.kd-adv .form-group{ margin-bottom:12px; }
.kd-site .kd-adv .form-control{ height:42px; border-radius:10px; font-size:15px; }
.kd-adv-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }

/* keyword: the main field, with an icon */
.kd-adv-keyword{ position:relative; margin-bottom:14px; }
.kd-adv-keyword .fa{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--nb-muted); font-size:16px; pointer-events:none; }
.kd-site .kd-adv .kd-adv-keyword .form-control{ height:50px; padding-left:44px; font-size:16px; border-radius:25px; }

/* chosen selects to match the inputs */
.kd-adv .chosen-container{ font-size:15px; }
.kd-adv .chosen-container-multi .chosen-choices,
.kd-adv .chosen-container-single .chosen-single{
  min-height:42px; padding:4px 10px; border:1px solid #d9d2c1; border-radius:10px;
  background:#fff; box-shadow:none; background-image:none;
}
.kd-adv .chosen-container-single .chosen-single{ height:42px; line-height:32px; }
.kd-adv .chosen-container-single .chosen-single div b{ background-position:0 10px; }
.kd-adv .chosen-container-active .chosen-choices,
.kd-adv .chosen-container-active .chosen-single{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-adv .chosen-container-multi .chosen-choices li.search-field input[type=text]{ height:32px; font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-adv .chosen-container-multi .chosen-choices li.search-choice{
  margin:3px 6px 3px 0; padding:5px 26px 5px 10px; border:1px solid #e3cf98; border-radius:14px;
  background:var(--nb-brass-tint); box-shadow:none; color:#5e4710; font-weight:600; line-height:1.2;
}
.kd-adv .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{ top:7px; right:7px; }
.kd-adv .chosen-container .chosen-drop{ border-color:#d9d2c1; border-radius:0 0 10px 10px; box-shadow:0 10px 24px rgba(8,28,51,.14); }
.kd-adv .chosen-container .chosen-results li.highlighted{ background:var(--nb-navy); background-image:none; }

/* label chips */
.kd-adv-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; padding:0; list-style:none; }
.kd-adv-chips:empty{ display:none; }
.kd-adv-chips li{ position:relative; margin:0 !important; }
.kd-adv-chips li a{
  display:inline-block; padding:5px 28px 5px 12px; border-radius:14px;
  background:var(--nb-navy) !important; color:#fff !important; font-size:13px; font-weight:600; text-decoration:none;
}
.kd-adv-chips .close-label{ position:absolute; top:50%; right:8px; transform:translateY(-50%); line-height:1; }
.kd-adv-chips .close-label i{ color:var(--nb-brass-light); font-size:14px; cursor:pointer; background:none; }
.kd-adv-chips .close-label i:hover{ color:#fff; }

/* check rows */
.kd-adv-check{ display:flex !important; align-items:flex-start; gap:10px; margin:12px 0 0 !important; font-weight:500 !important; cursor:pointer; }
.kd-adv-check input{ width:17px; height:17px; margin:2px 0 0; flex:none; accent-color:var(--nb-navy); }
.kd-adv-check small{ color:var(--nb-muted); font-weight:400; }

/* ranges: label + from – to on one line */
.kd-adv-range{ display:grid; grid-template-columns:92px 1fr 18px 1fr; align-items:center; gap:0 8px; margin-bottom:10px; }
.kd-adv-range-label{ font-size:14px; font-weight:600; color:var(--nb-ink); }
.kd-adv-dash{ text-align:center; color:var(--nb-muted); }

/* footer: save name on the left, actions on the right */
.kd-adv-foot{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 28px; background:var(--nb-paper); border-top:1px solid var(--nb-hair);
}
.kd-adv-save{ position:relative; flex:1 1 220px; min-width:200px; }
.kd-adv-save .fa{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--nb-brass-text); pointer-events:none; }
.kd-site .kd-adv .kd-adv-save .form-control{ height:40px; padding-left:36px; border-radius:20px; font-size:14px; }
.kd-adv-err{ position:absolute; left:14px; top:100%; margin-top:3px; font-size:12px; color:#b42318; display:none; }
.kd-adv-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.kd-site .kd-adv .kd-adv-clear{ padding:8px 10px; color:var(--nb-muted); font-weight:600; text-decoration:none; }
.kd-site .kd-adv .kd-adv-clear:hover{ color:var(--nb-navy-deep); text-decoration:underline; }
.kd-site .kd-adv .kd-adv-savebtn{ height:40px; border-radius:20px; background:#fff; border:1px solid #d9d2c1; color:var(--nb-navy-deep); font-weight:600; }
.kd-site .kd-adv .kd-adv-savebtn:hover{ border-color:var(--nb-navy); background:#fff; }
.kd-site .kd-adv .kd-adv-go{
  height:40px; padding:0 22px; border:0; border-radius:20px;
  background:var(--nb-brass); color:var(--nb-midnight); font-weight:700;
}
.kd-site .kd-adv .kd-adv-go:hover,
.kd-site .kd-adv .kd-adv-go:focus{ background:var(--nb-brass-light); color:var(--nb-midnight); }

@media (max-width:600px){
  .kd-adv-head, .kd-adv-body, .kd-adv-foot{ padding-left:18px; padding-right:18px; }
  .kd-adv-grid2{ grid-template-columns:1fr; }
  .kd-adv-range{ grid-template-columns:1fr 18px 1fr; }
  .kd-adv-range-label{ grid-column:1 / -1; margin-bottom:4px; }
  .kd-adv-actions{ width:100%; justify-content:flex-end; }
}

/* ---- Saved searches popup (same frame as Advanced search) ---------------- */
.modal .modal-dialog.kd-saved-dialog{ width:640px; }
.kd-saved-body{ padding-top:16px; padding-bottom:16px; background:var(--nb-paper); }
.kd-saved-list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.kd-saved-item{
  display:flex; align-items:stretch; background:#fff; border:1px solid var(--nb-hair); border-radius:14px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.kd-saved-item:hover{ border-color:#d8c48a; box-shadow:0 6px 18px rgba(8,28,51,.08); }
.kd-saved-run{
  flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:14px;
  padding:14px 12px 14px 16px; border:0; background:none; text-align:left; cursor:pointer; border-radius:14px 0 0 14px;
}
.kd-saved-run:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:-2px; }
.kd-saved-icon{
  flex:none; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px;
  background:var(--nb-brass-tint); color:var(--nb-brass-text); font-size:16px;
}
.kd-saved-text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:6px; }
.kd-saved-name{ font-size:16px; font-weight:700; color:var(--nb-navy-deep); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-saved-sum{ display:flex; flex-wrap:wrap; gap:4px 6px; }
.kd-saved-chip{
  display:inline-flex; align-items:center; gap:5px; padding:2px 9px; border-radius:11px;
  background:var(--nb-paper); border:1px solid var(--nb-hair); font-size:12px; font-weight:500; color:var(--nb-muted); white-space:nowrap;
}
.kd-saved-chip .fa{ color:var(--nb-brass-text); font-size:11px; }
.kd-saved-chip--muted{ font-style:italic; }
.kd-saved-go{ flex:none; font-size:13px; font-weight:700; color:var(--nb-link); opacity:0; transform:translateX(-4px); transition:opacity .15s ease, transform .15s ease; }
.kd-saved-item:hover .kd-saved-go,
.kd-saved-run:focus-visible .kd-saved-go{ opacity:1; transform:none; }
.kd-saved-tools{ flex:none; display:flex; align-items:center; gap:4px; padding:0 12px 0 4px; border-left:1px solid var(--nb-hair); }
.kd-saved-tool{
  width:34px; height:34px; border:0; border-radius:9px; background:none; color:var(--nb-navy); font-size:15px; cursor:pointer;
}
.kd-saved-tool:hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-saved-tool.kd-saved-del:hover{ background:#fbeeec; color:#b42318; }
.kd-saved-empty{ padding:34px 16px 30px; text-align:center; }
.kd-saved-empty[hidden]{ display:none; }
.kd-saved-empty-icon{
  display:inline-flex; align-items:center; justify-content:center; width:58px; height:58px; margin-bottom:12px; border-radius:50%;
  background:var(--nb-brass-tint); border:2px solid #e3cf98; color:var(--nb-brass-text); font-size:22px;
}
.kd-saved-empty h5{ margin:0 0 6px; font-family:var(--nb-serif); font-size:20px; font-weight:700; color:var(--nb-navy-deep); }
.kd-saved-empty p{ margin:0 auto; max-width:380px; font-size:14px; color:var(--nb-muted); }
.kd-saved-count{ font-size:13px; font-weight:600; color:var(--nb-muted); }
@media (hover:none){ .kd-saved-go{ opacity:1; transform:none; } }
@media (max-width:600px){ .kd-saved-go{ display:none; } }

/* ==========================================================================
   POST FORM HEADER (2026-11): title + number, edit-lock pill, settings strip.
   Markup: application/views/post/form_head.php (Add/Edit post, Add/Edit block).
   ========================================================================== */
.kd-site .kd-form-head{ margin:4px 0 26px; padding-bottom:0; font-family:var(--nb-sans); font-size:15px; font-weight:400; }
.kd-site .kd-form-head::after{ display:none; }
.kd-form-head-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding-bottom:14px; border-bottom:1px solid var(--nb-hair); position:relative;
}
.kd-form-head-row::after{
  content:""; position:absolute; left:0; bottom:-2px; width:56px; height:3px; border-radius:2px; background:var(--nb-brass);
}
.kd-site .kd-form-head .kd-form-title{
  display:flex; align-items:center; gap:12px; margin:0;
  font-family:var(--nb-serif); font-size:34px; font-weight:700; line-height:1.15; color:var(--nb-navy-deep);
}
.kd-form-no{
  padding:3px 11px; border-radius:10px; background:#e6edf6;
  font-family:var(--nb-sans); font-size:16px; font-weight:700; color:var(--nb-navy); line-height:1.4;
}

/* edit lock: a quiet pill instead of the plugin's big pink/black clock */
.kd-form-lock{
  display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 14px 0 12px;
  border:1px solid var(--nb-hair); border-radius:19px; background:#fff;
  font-size:13px; color:var(--nb-muted); white-space:nowrap;
}
.kd-form-lock .fa{ color:var(--nb-brass-text); font-size:14px; }
.kd-form-lock-label{ font-weight:600; }
.kd-form-lock #ms_timer,
.kd-form-lock #ms_timer.colorDefinition,
.kd-form-lock #ms_timer.size_lg{
  display:inline-block; width:auto; height:auto; padding:0; margin:0; border:0; border-radius:0;
  background:none !important; box-shadow:none; text-shadow:none;
  font-family:var(--nb-sans); font-size:15px; font-weight:700; line-height:1; letter-spacing:.5px;
  color:var(--nb-navy-deep) !important; font-variant-numeric:tabular-nums;
}

/* settings strip */
.kd-form-settings{
  display:flex; align-items:stretch; flex-wrap:wrap; gap:12px; margin-top:16px;
}
.kd-form-opt{
  flex:1 1 260px; display:flex; align-items:flex-start; gap:12px; margin:0;
  padding:12px 16px; border:1px solid var(--nb-hair); border-radius:12px; background:#fff;
  font-family:var(--nb-sans); font-size:14px; font-weight:400; color:var(--nb-ink); cursor:pointer;
}
.kd-form-opt:hover{ border-color:#d8c48a; }
.kd-form-opt input[type=checkbox]{ width:18px; height:18px; margin:2px 0 0; flex:none; accent-color:var(--nb-navy); cursor:pointer; }
.kd-form-opt strong{ display:block; font-size:15px; font-weight:600; color:var(--nb-navy-deep); }
.kd-form-opt small{ display:block; margin-top:2px; font-size:13px; color:var(--nb-muted); }
.kd-form-review{ flex-direction:column; gap:8px; cursor:default; }
.kd-form-review-title{ display:flex; align-items:center; gap:8px; }
.kd-form-review-title .fa{ color:var(--nb-brass-text); }
.kd-form-review-title strong{ display:inline; }
.kd-form-review-ctrls{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.kd-form-inline{ display:inline-flex !important; align-items:center; gap:6px; margin:0 !important; font-size:14px !important; font-weight:500 !important; color:var(--nb-ink) !important; cursor:pointer; }
.kd-form-inline input{ width:17px; height:17px; margin:0; accent-color:var(--nb-navy); }
.kd-form-or{ font-size:14px; color:var(--nb-muted); }
.kd-site .kd-form-head input.kd-form-days{
  width:96px; height:34px; padding:4px 10px; border:1px solid #d9d2c1; border-radius:8px; font-size:14px;
}
.kd-form-review:has(input[name=post_review_off]:checked) .kd-form-days,
.kd-form-review:has(input[name=post_review_off]:checked) .kd-form-or{ opacity:.45; }
@media (max-width:767px){
  .kd-site .kd-form-head .kd-form-title{ font-size:28px; }
}

/* ==========================================================================
   LABELS PANEL, round 2 (2026-11): name = show posts, active label,
   "+ New" and a "more" menu instead of four bare icons.
   ========================================================================== */
.kd-lbl-tools{ display:flex; align-items:center; gap:6px; }
.kd-site .kd-lbl-new{
  display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 11px;
  border:1px solid #d9d2c1; border-radius:14px; background:#fff;
  font-family:var(--nb-sans); font-size:12.5px; font-weight:700; letter-spacing:0; text-transform:none;
  color:var(--nb-navy-deep); text-decoration:none;
}
.kd-site .kd-lbl-new .fa{ font-size:11px; color:var(--nb-brass-text); }
.kd-site .kd-lbl-new:hover{ border-color:var(--nb-brass); color:var(--nb-navy-deep); text-decoration:none; }
.kd-lbl-more-btn{ border:0; background:none; cursor:pointer; }
.kd-lbl-more-btn[aria-expanded="true"]{ background:#fff; }
.kd-lbl-more{
  display:flex; flex-direction:column; margin:0 0 10px; padding:6px;
  background:#fff; border:1px solid var(--nb-hair); border-radius:12px;
  box-shadow:0 6px 18px rgba(8,28,51,.08);
}
.kd-lbl-more[hidden]{ display:none; }
.kd-site .kd-lbl-more a{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px;
  font-family:var(--nb-sans); font-size:14px; font-weight:500; color:var(--nb-ink); text-decoration:none;
}
.kd-site .kd-lbl-more a .fa{ width:16px; text-align:center; color:var(--nb-brass-text); }
.kd-site .kd-lbl-more a:hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }

/* clear the active label */
.kd-site .kd-lbl-clear{
  display:flex; align-items:center; gap:8px; margin:0 0 10px; padding:8px 12px;
  border-radius:10px; background:var(--nb-brass-tint); border:1px solid #e3cf98;
  font-size:13px; font-weight:600; color:#5e4710; text-decoration:none;
}
.kd-site .kd-lbl-clear:hover{ color:var(--nb-navy-deep); text-decoration:none; border-color:var(--nb-brass); }

/* the name is the "show posts" target */
.kd-rail .kd-lbl-name{ cursor:pointer; border-radius:4px; }
.kd-rail .cd-accordion-menu label .kd-lbl-name:hover,
.kd-rail .cd-accordion-menu a:hover .kd-lbl-name{ color:var(--nb-link); text-decoration:underline; text-underline-offset:3px; }
.kd-rail .kd-lbl-name:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-rail .cd-accordion-menu label > .kd-lbl-name{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* active label: brass bar + tint */
.kd-rail [data-label].is-active{
  background:var(--nb-brass-tint) !important; border-radius:8px; box-shadow:inset 3px 0 0 var(--nb-brass);
}
.kd-rail [data-label].is-active .kd-lbl-name{ color:var(--nb-navy-deep); font-weight:700; text-decoration:none; }
.kd-rail [data-label].is-loading{ opacity:.7; }

/* results title for a label: small "LABEL" kicker before the name */
.kd-band .kd-band-kicker{
  display:inline-block; margin-right:6px; padding:3px 9px; vertical-align:middle;
  border:1px solid #8a7440; border-radius:11px;
  font-family:var(--nb-sans); font-size:12px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--nb-brass-light); position:relative; top:-4px;
}
.kd-site .kd-lbl-more a.click_all_label{ border:0 !important; box-shadow:none !important; background:none !important; color:var(--nb-ink) !important; font-weight:500; }
.kd-site .kd-lbl-more a.click_all_label:hover{ background:var(--nb-paper) !important; color:var(--nb-navy-deep) !important; }

/* ---- Labels panel, round 3: make "has sub-labels" obvious ----------------
   Parents: a boxed chevron button (click = open/close) + folder icon.
   Leaves: a tag icon. Opened children hang off a faint guide line. */
.kd-rail .cd-accordion-menu label,
.kd-rail .cd-accordion-menu a{ position:relative; padding-left:32px; }
.kd-rail .cd-accordion-menu li.has-children > label::before{
  content:"\f105"; position:absolute; left:4px; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center; width:20px; height:20px;
  border:1px solid #d9d2c1; border-radius:6px; background:#fff;
  font-family:FontAwesome; font-size:13px; line-height:1; color:var(--nb-navy);
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.kd-rail .cd-accordion-menu li.has-children > label:hover::before{ border-color:var(--nb-brass); }
.kd-rail .cd-accordion-menu li.has-children > input[type=checkbox]:checked + label::before{
  content:"\f107"; transform:translateY(-50%); border-color:#e3cf98; background:var(--nb-brass-tint); color:var(--nb-brass-text);
}
/* icons before the name */
.kd-rail .cd-accordion-menu .kd-lbl-name::before{
  display:inline-block; width:18px; margin-right:6px; text-align:center;
  font-family:FontAwesome; font-weight:normal; font-size:14px; color:var(--nb-brass-text); text-decoration:none;
}
.kd-rail .cd-accordion-menu li.has-children > label .kd-lbl-name::before{ content:"\f114"; }              /* folder-o */
.kd-rail .cd-accordion-menu li.has-children > input:checked + label .kd-lbl-name::before{ content:"\f115"; } /* folder-open-o */
.kd-rail .cd-accordion-menu li:not(.has-children) > a .kd-lbl-name::before,
.kd-rail .cd-accordion-menu li:not(.has-children) > label .kd-lbl-name::before{ content:"\f02b"; font-size:12px; color:#b9a56e; } /* tag */
/* parents read a touch stronger than leaves */
.kd-rail .cd-accordion-menu li.has-children > label{ font-weight:600; color:var(--nb-navy-deep); }
/* children hang off a guide line */
.kd-rail .cd-accordion-menu ul{ margin:0 0 4px 13px; padding:0 0 0 8px; border-left:1px solid var(--nb-hair); }
.kd-rail .cd-accordion-menu ul label,
.kd-rail .cd-accordion-menu ul a{ padding-left:30px; }
.kd-rail .cd-accordion-menu ul li:not(.has-children) > a{ padding-left:10px; }

/* ---- Customize All posts popup + "Filtered" flag on the tab (2026-11) ---- */
.modal .modal-dialog.kd-int-dialog{ width:600px; }
.kd-int-state{
  display:flex; align-items:flex-start; gap:10px; margin:16px 0 2px; padding:12px 14px;
  border-radius:12px; font-size:14px; line-height:1.45;
}
.kd-int-state .fa{ margin-top:2px; font-size:15px; }
.kd-int-state.is-all{ background:var(--nb-paper); border:1px solid var(--nb-hair); color:var(--nb-muted); }
.kd-int-state.is-all .fa{ color:var(--nb-navy); }
.kd-int-state.is-filtered{ background:var(--nb-brass-tint); border:1px solid #e3cf98; color:#5e4710; }
.kd-int-state.is-filtered .fa{ color:var(--nb-brass-text); }
.kd-int-state strong{ color:var(--nb-navy-deep); }
.kd-int .kd-adv-err{ position:static; display:none; margin-top:6px; }
.kd-band .add-interest > span{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.kd-band .kd-int-flag{
  padding:1px 8px; border:1px solid #8a7440; border-radius:10px;
  font-size:11.5px; font-weight:700; letter-spacing:.3px; color:var(--nb-brass-light);
}
.kd-band .add-interest > span:hover .kd-int-flag{ border-color:var(--nb-brass); color:#fff; }

/* ==========================================================================
   PHONES / NARROW TABLETS (< 992px): Labels rail as a slide-in drawer.
   Button + close + shade are added by labels_widget.php's script.
   ========================================================================== */
.kd-lbl-drawer-btn,
.kd-lbl-drawer-close,
.kd-lbl-shade{ display:none; }
@media (max-width:991px){
  .kd-lbl-drawer-btn{
    display:flex; align-items:center; gap:10px; width:100%; margin:0 0 14px; padding:11px 16px;
    border:1px solid var(--nb-hair); border-radius:12px; background:#fff;
    font-family:var(--nb-sans); font-size:15px; font-weight:600; color:var(--nb-navy-deep); text-align:left; cursor:pointer;
    box-shadow:0 1px 2px rgba(8,28,51,.04);
  }
  .kd-lbl-drawer-btn > .fa-tags{ color:var(--nb-brass-text); }
  .kd-lbl-drawer-cur{
    min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    padding:2px 10px; border-radius:11px; background:var(--nb-brass-tint); border:1px solid #e3cf98;
    font-size:13px; font-weight:700; color:#5e4710;
  }
  .kd-lbl-drawer-go{ margin-left:auto; font-size:18px; color:var(--nb-muted); }
  .kd-lbl-drawer-btn:active{ background:var(--nb-paper); }

  /* the rail itself: off-canvas on the left */
  .kd-feed .kd-rail{
    position:fixed; top:0; bottom:0; left:0; z-index:1060;
    width:86vw; max-width:340px; margin:0; padding:18px 16px 24px;
    background:var(--nb-paper); box-shadow:12px 0 40px rgba(8,28,51,.28);
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    transform:translateX(-105%); visibility:hidden;
    transition:transform .24s ease, visibility 0s linear .24s;
  }
  body.kd-lbl-open .kd-feed .kd-rail{ transform:none; visibility:visible; transition:transform .24s ease; }
  body.kd-lbl-open{ overflow:hidden; }
  .kd-lbl-drawer-close{
    display:flex; align-items:center; justify-content:center; position:absolute; top:10px; right:10px; z-index:2;
    width:36px; height:36px; border:0; border-radius:50%; background:#fff;
    font-size:24px; line-height:1; color:var(--nb-navy-deep); cursor:pointer; box-shadow:0 1px 3px rgba(8,28,51,.15);
  }
  .kd-feed .kd-rail .kd-lbl-head{ padding-right:44px; }
  .kd-lbl-shade{
    display:block; position:fixed; inset:0; z-index:1055; background:rgba(8,28,51,.55);
    opacity:0; visibility:hidden; transition:opacity .24s ease, visibility 0s linear .24s;
  }
  body.kd-lbl-open .kd-lbl-shade{ opacity:1; visibility:visible; transition:opacity .24s ease; }
  /* bigger tap targets inside the drawer */
  .kd-rail .cd-accordion-menu label,
  .kd-rail .cd-accordion-menu a{ min-height:42px; }
}
@media (prefers-reduced-motion:reduce){
  .kd-feed .kd-rail, .kd-lbl-shade{ transition:none !important; }
}
.kd-lbl-drawer-close:focus{ outline:none; }
.kd-lbl-drawer-close:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }

/* ---- Sign-in page, Navy & Brass (2026-11) --------------------------------
   Deep navy backdrop instead of the old bright-blue gradient: a lighter
   navy pool behind the seal, a faint brass glow top-left, darker corners. */
.kd-login-page::before{
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(29,79,145,.55) 0%, rgba(29,79,145,0) 70%),
    radial-gradient(circle at 10% 8%, rgba(201,169,90,.16) 0%, rgba(201,169,90,0) 38%),
    linear-gradient(160deg, #0f2d52 0%, #0b2440 45%, #081c33 100%);
}
.kd-login-page .kd-login-seal{ filter:drop-shadow(0 12px 30px rgba(0,0,0,.5)) drop-shadow(0 0 1px rgba(216,196,138,.6)); }
/* fields: keep the recessed look, but a hair lighter so they read on navy */
.kd-login-card .form-control{ background:rgba(255,255,255,.06); border-right-color:rgba(216,196,138,.18); border-bottom-color:rgba(216,196,138,.3); }
.kd-login-card .form-control:focus{ background:rgba(255,255,255,.09); border-color:rgba(216,196,138,.65); }
/* "Don't have an account? Sign up here" -- readable on navy, brass link */
.kd-login-card .kd-signup-link{ color:var(--nb-on-navy, #b7c4d8); font-size:14px; }
.kd-login-card .kd-signup-link > a{ color:var(--nb-brass-light, #d8c48a); font-weight:600; text-decoration:none; }
.kd-login-card .kd-signup-link > a:hover{ color:#f4ecd6; text-decoration:underline; text-underline-offset:3px; }
/* wrong-domain strip (www only): cream instead of pale blue */
.kd-login-page .kd-domain-banner{ background:#f4ecd6; color:#081c33; border-bottom-color:rgba(138,106,31,.25); }
.kd-login-page .kd-domain-banner a{ color:#14355e; }
/* Phones: taller fields and a 44px sign-in arrow (comfortable thumb target) */
@media (max-width:600px){
  .kd-login-page{ --kd-field-h:52px; }
  .kd-login-go{ width:76px; height:44px; right:4px; font-size:18px; }
  .kd-login-card .kd-login-pw .kd-pw-toggle{ right:82px; width:40px; }
  .kd-login-card .kd-login-pw .form-control{ padding-right:128px; }
}

/* ==========================================================================
   POST > ANALYTICS (2026-11): metric cards (= sub-tabs) + one chart card
   ========================================================================== */
.kd-analytics .kd-an-metrics{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; margin:18px 0 16px; font-family:var(--nb-sans); }
.kd-site .kd-an-metric{
  position:relative; display:flex; flex-direction:column; gap:2px; padding:16px 18px 14px;
  background:#fff; border:1px solid var(--nb-hair); border-radius:14px; color:var(--nb-ink); text-decoration:none;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.kd-site .kd-an-metric:hover{ border-color:var(--nb-brass); box-shadow:0 6px 18px rgba(8,28,51,.08); color:var(--nb-ink); text-decoration:none; }
.kd-site .kd-an-metric:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-an-metric-label{ font-size:13px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--nb-muted); }
.kd-an-metric-label .fa{ width:16px; color:var(--nb-brass-text); }
.kd-an-metric-num{ font-family:var(--nb-serif); font-size:34px; font-weight:700; line-height:1.15; color:var(--nb-navy-deep); }
.kd-an-metric-sub{ font-size:13px; color:var(--nb-muted); }
.kd-an-metric-sub b{ color:#2f6b3a; font-weight:700; }
/* selected metric: navy card, brass top edge */
.kd-site .kd-an-metric.is-active{ background:linear-gradient(160deg, var(--nb-navy) 0%, var(--nb-navy-deep) 100%); border-color:var(--nb-navy-deep); box-shadow:0 8px 22px rgba(8,28,51,.18); }
.kd-site .kd-an-metric.is-active::before{ content:""; position:absolute; left:16px; right:16px; top:0; height:3px; border-radius:0 0 3px 3px; background:var(--nb-brass); }
.kd-an-metric.is-active .kd-an-metric-label{ color:var(--nb-on-navy); }
.kd-an-metric.is-active .kd-an-metric-label .fa{ color:var(--nb-brass-light); }
.kd-an-metric.is-active .kd-an-metric-num{ color:var(--nb-cream); }
.kd-an-metric.is-active .kd-an-metric-sub{ color:var(--nb-on-navy); }
.kd-an-metric.is-active .kd-an-metric-sub b{ color:var(--nb-brass-light); }

.kd-an-card{ background:#fff; border:1px solid var(--nb-hair); border-radius:16px; padding:20px 22px 14px; font-family:var(--nb-sans); box-shadow:0 1px 2px rgba(8,28,51,.04); }
.kd-an-missing{ margin-top:18px; color:var(--nb-muted); }
.kd-an-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.kd-an-title{ margin:0 0 2px; font-family:var(--nb-serif); font-size:22px; font-weight:700; color:var(--nb-navy-deep); }
.kd-an-sum{ margin:0; font-size:14px; color:var(--nb-muted); }
.kd-an-sum b{ color:var(--nb-navy-deep); }
.kd-an-range{ display:inline-flex; padding:3px; background:var(--nb-paper); border:1px solid var(--nb-hair); border-radius:999px; }
.kd-an-range button{
  border:0; background:none; padding:6px 14px; border-radius:999px; cursor:pointer;
  font-family:var(--nb-sans); font-size:13.5px; font-weight:600; color:var(--nb-muted); white-space:nowrap;
}
.kd-an-range button:hover{ color:var(--nb-navy-deep); }
.kd-an-range button.is-active{ background:#fff; color:var(--nb-navy-deep); box-shadow:0 1px 3px rgba(8,28,51,.14), inset 0 -2px 0 var(--nb-brass); }
.kd-an-range button:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:1px; }
.kd-an-chart{ position:relative; height:340px; margin:4px -6px 0; }
.kd-an-loading, .kd-an-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; height:100%; color:var(--nb-muted); font-size:14px; text-align:center; }
.kd-an-empty .fa{ font-size:30px; color:#d9cfb6; margin-bottom:4px; }
.kd-an-empty strong{ font-size:15px; color:var(--nb-navy-deep); }
.kd-an-empty span{ max-width:520px; }
.kd-an-retry{ margin-top:8px; padding:6px 16px; border:1px solid #d9d2c1; border-radius:999px; background:#fff; font-family:var(--nb-sans); font-size:13.5px; font-weight:600; color:var(--nb-navy-deep); cursor:pointer; }
.kd-an-retry:hover{ border-color:var(--nb-brass); }
.kd-an-hint{ margin:6px 0 0; font-size:12.5px; color:var(--nb-muted); }
.kd-an-hint .fa{ color:var(--nb-brass-text); margin-right:4px; }

/* "Who" popup */
.modal .modal-dialog.kd-an-who-dialog{ width:440px; max-width:calc(100vw - 24px); margin:60px auto; }
.kd-site .kd-an-who{ width:100%; }
.kd-an-who .kd-adv-body{ padding:10px 22px 16px; max-height:60vh; }
.kd-an-people{ list-style:none; margin:0; padding:0; }
.kd-an-people li{ display:flex; align-items:center; gap:12px; padding:9px 2px; border-bottom:1px solid var(--nb-hair); font-size:15px; color:var(--nb-ink); }
.kd-an-people li:last-child{ border-bottom:0; }
.kd-an-ava{ flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:var(--nb-brass-tint); border:1px solid #e3cf98; color:var(--nb-brass-text); font-size:12.5px; font-weight:700; letter-spacing:.5px; }
.kd-an-nobody{ margin:14px 0; color:var(--nb-muted); }

@media (max-width:767px){
  .kd-analytics .kd-an-metrics{ gap:8px; margin:14px 0 12px; }
  .kd-site .kd-an-metric{ padding:12px 12px 10px; border-radius:12px; }
  .kd-an-metric-label{ font-size:11.5px; letter-spacing:.2px; }
  .kd-an-metric-label .fa{ display:none; }
  .kd-an-metric-num{ font-size:26px; }
  .kd-an-metric-sub{ font-size:11.5px; }
  .kd-an-card{ padding:16px 14px 12px; border-radius:14px; }
  .kd-an-range{ width:100%; }
  .kd-an-range button{ flex:1 1 0; padding:8px 4px; font-size:13px; }
  .kd-an-chart{ height:280px; }
}

/* ==========================================================================
   POST > HISTORY (2026-11): day-grouped timeline with change details
   ========================================================================== */
.kd-h-card{ margin-top:18px; background:#fff; border:1px solid var(--nb-hair); border-radius:16px; padding:20px 24px 18px; font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-h-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.kd-h-title{ margin:0 0 2px; font-family:var(--nb-serif); font-size:22px; font-weight:700; color:var(--nb-navy-deep); }
.kd-h-sum{ margin:0; font-size:14px; color:var(--nb-muted); }
.kd-h-day + .kd-h-day{ margin-top:6px; }
.kd-h-day[hidden], .kd-h-item[hidden]{ display:none; }
.kd-site .kd-h-daylabel{ margin:16px 0 8px; font-family:var(--nb-sans) !important; font-size:12px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--nb-brass-text); }
.kd-h-list{ list-style:none; margin:0; padding:0 0 0 2px; position:relative; }
.kd-h-list::before{ content:""; position:absolute; left:15px; top:6px; bottom:6px; width:2px; background:var(--nb-hair); border-radius:2px; }
.kd-h-item{ position:relative; display:flex; gap:14px; padding:6px 0 10px; }
.kd-h-dot{ position:relative; z-index:1; flex:0 0 30px; width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border:2px solid var(--nb-hair); color:var(--nb-navy); font-size:12px; }
.kd-h-item.is-create .kd-h-dot{ background:var(--nb-navy); border-color:var(--nb-navy); color:var(--nb-brass-light); }
.kd-h-item.is-edit   .kd-h-dot{ border-color:#c9d3e1; color:var(--nb-link); }
.kd-h-item.is-people .kd-h-dot{ border-color:#e3cf98; color:var(--nb-brass-text); background:var(--nb-brass-tint); }
.kd-h-item.is-owner  .kd-h-dot{ border-color:var(--nb-brass); color:#fff; background:var(--nb-brass); }
.kd-h-body{ flex:1 1 auto; min-width:0; }
.kd-h-line{ display:flex; align-items:center; gap:10px; min-height:30px; flex-wrap:wrap; }
.kd-h-ava{ flex:0 0 24px; width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:var(--nb-paper); border:1px solid var(--nb-hair); color:var(--nb-navy-deep); font-size:10.5px; font-weight:700; letter-spacing:.3px; }
.kd-h-text{ flex:1 1 260px; min-width:0; font-size:15px; line-height:1.45; }
.kd-h-text strong{ font-weight:700; color:var(--nb-navy-deep); }
.kd-h-time{ margin-left:auto; font-size:12.5px; color:var(--nb-muted); white-space:nowrap; }
.kd-h-muted{ color:var(--nb-muted); }
.kd-h-tag{ display:inline-block; padding:1px 7px; border-radius:9px; background:var(--nb-paper); border:1px solid var(--nb-hair); font-size:11.5px; font-weight:700; color:var(--nb-muted); vertical-align:1px; }
.kd-h-block{ display:inline-flex; align-items:center; gap:5px; margin-left:4px; padding:1px 8px; border-radius:9px; background:#eef2f8; color:var(--nb-navy); font-size:12.5px; font-weight:600; }
.kd-h-block .fa{ font-size:11px; }

/* the change list under an entry */
.kd-h-changes{ list-style:none; margin:6px 0 2px 34px; padding:8px 12px; background:var(--nb-paper); border:1px solid #ece6d8; border-radius:10px; }
.kd-h-changes li{ display:flex; gap:12px; align-items:baseline; padding:4px 0; font-size:14px; line-height:1.5; }
.kd-h-changes li + li{ border-top:1px dashed #e6dfcf; }
.kd-h-field{ flex:0 0 150px; color:var(--nb-muted); font-size:13px; font-weight:600; }
.kd-h-field .fa{ width:15px; text-align:center; color:var(--nb-brass-text); }
.kd-h-val{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.kd-h-old{ color:var(--nb-muted); text-decoration:line-through; text-decoration-color:rgba(89,97,107,.45); }
.kd-h-new{ color:var(--nb-navy-deep); font-weight:600; }
.kd-h-arrow{ margin:0 4px; color:var(--nb-brass-text); font-size:12px; }
.kd-h-plus{ color:#2f6b3a; font-weight:600; }
.kd-h-minus{ color:#9b3b2f; font-weight:600; margin-left:6px; }
.kd-h-chip{ display:inline-block; margin:2px 6px 2px 0; padding:2px 10px; border-radius:12px; font-size:13px; font-weight:600; line-height:1.5; }
.kd-h-chip.is-add{ background:#e7f3ea; border:1px solid #bcd9c3; color:#24592f; }
.kd-h-chip.is-add::before{ content:"+ "; font-weight:700; }
.kd-h-chip.is-del{ background:#f8e9e6; border:1px solid #e6c3bc; color:#86342a; text-decoration:line-through; text-decoration-color:rgba(134,52,42,.5); }
.kd-h-chip.is-del::before{ content:"\2212  "; font-weight:700; text-decoration:none; display:inline-block; }
.kd-h-chip em{ margin-left:4px; padding:0 6px; border-radius:8px; background:var(--nb-brass); color:#fff; font-style:normal; font-size:10.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; vertical-align:1px; }
.kd-h-text .kd-h-part{ font-weight:600; color:var(--nb-navy-deep); background:linear-gradient(transparent 62%, rgba(201,169,90,.28) 62%); padding:0 1px; }
.kd-h-excerpt{ margin:6px 0 2px; padding:7px 10px; border:0; border-left:3px solid var(--nb-brass); border-radius:0 8px 8px 0; background:#fff; font-size:13.5px; line-height:1.55; color:var(--nb-ink); }
.kd-h-ctx{ color:var(--nb-muted); }
.kd-h-ins{ text-decoration:none; background:#e7f3ea; color:#1f4f29; border-radius:3px; padding:0 2px; }
.kd-h-rem{ background:#f8e9e6; color:#86342a; border-radius:3px; padding:0 2px; text-decoration-color:rgba(134,52,42,.55); }
.kd-h-bodyitems{ list-style:none; margin:6px 0 0; padding:0; }
.kd-h-changes .kd-h-bodyitems li{ display:block; border-top:0; margin:0 0 5px; padding:6px 10px; background:#fff; border-left:3px solid var(--nb-hair); border-radius:0 8px 8px 0; font-size:13.5px; line-height:1.55; }
.kd-h-changes .kd-h-bodyitems li.kd-h-muted{ background:none; border:0; padding:2px 0 0; }
.kd-h-op{ display:inline-block; margin-right:4px; padding:0 7px; border-radius:8px; font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; vertical-align:1px; }
.kd-h-op.is-add{ background:#e7f3ea; color:#24592f; }
.kd-h-op.is-del{ background:#f8e9e6; color:#86342a; }
.kd-h-op.is-chg{ background:var(--nb-brass-tint); color:var(--nb-brass-text); }
.kd-h-sheet + .kd-h-sheet{ margin-top:8px; }
.kd-h-tab{ display:inline-flex; align-items:center; gap:5px; padding:1px 9px; border-radius:6px 6px 0 0; border:1px solid #d9d2c1; border-bottom-color:var(--nb-brass); background:#fff; font-size:12.5px; font-weight:700; color:var(--nb-navy-deep); }
.kd-h-tab .fa{ color:var(--nb-brass-text); font-size:11px; }
.kd-h-sheet .kd-h-bodyitems{ margin-top:4px; }
.kd-h-none{ margin:18px 0 6px; color:var(--nb-muted); }
.kd-h-empty{ height:auto; padding:36px 0; }

@media (max-width:767px){
  .kd-h-card{ padding:16px 14px 14px; border-radius:14px; }
  .kd-h-filter{ width:100%; overflow-x:auto; }
  .kd-h-filter button{ flex:1 0 auto; }
  .kd-h-text{ font-size:14.5px; flex-basis:100%; order:3; }
  .kd-h-time{ margin-left:0; }
  .kd-h-changes{ margin-left:0; padding:6px 10px; }
  .kd-h-changes li{ flex-direction:column; gap:2px; }
  .kd-h-field{ flex-basis:auto; }
}

/* ==========================================================================
   CALENDAR EVENT DIALOG (2026-11): add / edit / delete an event
   ========================================================================== */
.modal .modal-dialog.kd-cal-dialog{ width:480px; max-width:calc(100vw - 24px); margin:70px auto; }
.kd-site .kd-cal, .kd-cal{ width:100%; font-family:var(--nb-sans); }
.kd-cal .kd-adv-head p{ min-height:20px; }
.kd-cal-body{ padding:20px 24px 20px; }
.kd-cal-modal.is-asking .kd-adv-actions{ display:none; }
.kd-site .kd-cal .kd-cal-title, .kd-cal .kd-cal-title{
  height:48px; padding:0 14px; border:1px solid #d9d2c1; border-radius:12px; font-size:18px; font-weight:600; color:var(--nb-navy-deep); box-shadow:none;
}
.kd-cal .kd-cal-title:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); outline:none; }
.kd-cal .form-control{ height:40px; border:1px solid #d9d2c1; border-radius:10px; font-size:15px; color:var(--nb-ink); box-shadow:none; }
.kd-cal .form-control:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }

/* "All day" switch */
.kd-cal .kd-cal-switch{ display:inline-flex; align-items:center; gap:10px; margin:16px 0 14px; font-size:14.5px; font-weight:600; color:var(--nb-ink); cursor:pointer; user-select:none; }
.kd-cal-switch input{ position:absolute; opacity:0; width:1px; height:1px; }
.kd-cal-track{ position:relative; width:38px; height:22px; border-radius:11px; background:#d6d0c2; transition:background .15s ease; }
.kd-cal-track::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:transform .15s ease; }
.kd-cal-switch input:checked + .kd-cal-track{ background:var(--nb-brass); }
.kd-cal-switch input:checked + .kd-cal-track::after{ transform:translateX(16px); }
.kd-cal-switch input:focus-visible + .kd-cal-track{ box-shadow:0 0 0 3px rgba(201,169,90,.35); }

.kd-cal-grid{ display:grid; grid-template-columns:56px 1fr; align-items:center; gap:10px 12px; }
.kd-cal-lbl{ font-size:13px; font-weight:700; letter-spacing:.3px; color:var(--nb-muted); text-transform:uppercase; }
.kd-cal-when{ display:flex; gap:8px; }
.kd-cal-when input[type=date]{ flex:1 1 auto; min-width:0; }
.kd-cal-when .kd-cal-time{ flex:0 0 118px; }
.kd-cal-when [hidden]{ display:none; }
.kd-cal-err{ margin:12px 0 0; padding:8px 12px; border-radius:8px; background:#f8e9e6; color:#86342a; font-size:13.5px; font-weight:600; }
.kd-cal-err[hidden]{ display:none; }

/* footer: Delete on the left (asks inline), Cancel / Save on the right */
.kd-cal-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.kd-cal-del{ min-width:0; }
.kd-cal-del [hidden]{ display:none !important; }
.kd-site .kd-cal .kd-cal-delbtn, .kd-cal .kd-cal-delbtn{ padding:6px 4px; color:#9b3b2f; font-weight:600; text-decoration:none; }
.kd-cal .kd-cal-delbtn:hover{ color:#7a2a20; text-decoration:underline; }
.kd-cal-delask{ display:inline-flex; align-items:center; flex-wrap:wrap; gap:2px 6px; font-size:13.5px; font-weight:600; color:#86342a; }
.kd-site .kd-cal .kd-cal-delyes, .kd-cal .kd-cal-delyes{ padding:4px 10px; border-radius:8px; background:#9b3b2f; color:#fff; font-weight:700; text-decoration:none; }
.kd-cal .kd-cal-delyes:hover{ background:#7a2a20; color:#fff; }
.kd-site .kd-cal .kd-cal-delno, .kd-cal .kd-cal-delno{ padding:4px 6px; color:var(--nb-muted); text-decoration:none; }

@media (max-width:480px){
  .modal .modal-dialog.kd-cal-dialog{ margin:16px auto; }
  .kd-cal-body{ padding:16px 16px 6px; }
  .kd-cal-grid{ grid-template-columns:1fr; gap:4px; }
  .kd-cal-lbl{ margin-top:6px; }
  .kd-cal-when .kd-cal-time{ flex-basis:104px; }
  .kd-cal-foot{ flex-wrap:wrap; }
}

/* History: jump / date filter bar (sticky under the site header) */
.kd-h-nav{ position:sticky; top:0; z-index:5; margin:10px -24px 4px; padding:10px 24px; background:rgba(255,255,255,.96);
  border-top:1px solid var(--nb-hair); border-bottom:1px solid var(--nb-hair); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.kd-h-months, .kd-h-range{ display:flex; align-items:center; gap:8px 10px; }
.kd-h-months{ margin-bottom:8px; min-width:0; }
.kd-h-navlbl{ flex:0 0 auto; font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--nb-muted); white-space:nowrap; }
.kd-h-navlbl .fa{ color:var(--nb-brass-text); margin-right:3px; }
.kd-h-monthlist{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:thin; padding:2px 0; min-width:0; }
.kd-h-month{ flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border:1px solid #d9d2c1; border-radius:999px; background:#fff;
  font-family:var(--nb-sans); font-size:13px; font-weight:600; color:var(--nb-navy-deep); cursor:pointer; white-space:nowrap; }
.kd-h-month span{ min-width:18px; padding:0 5px; border-radius:9px; background:var(--nb-paper); color:var(--nb-muted); font-size:11.5px; font-weight:700; text-align:center; }
.kd-h-month:hover{ border-color:var(--nb-brass); }
.kd-h-month.is-current{ background:var(--nb-navy); border-color:var(--nb-navy); color:var(--nb-cream); }
.kd-h-month.is-current span{ background:var(--nb-brass); color:var(--nb-midnight, #081c33); }
.kd-h-month.is-empty{ opacity:.45; }
.kd-h-month:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:1px; }
.kd-h-range{ flex-wrap:wrap; }
.kd-site .kd-h-range .form-control, .kd-h-range .form-control{ width:auto; min-width:150px; height:34px; padding:4px 10px; border:1px solid #d9d2c1; border-radius:9px; font-size:14px; box-shadow:none; }
.kd-h-range .form-control:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-h-dash{ font-size:13px; color:var(--nb-muted); }
.kd-h-clear{ border:0; background:none; padding:4px 6px; font-family:var(--nb-sans); font-size:13px; font-weight:600; color:#9b3b2f; cursor:pointer; }
.kd-h-clear:hover{ text-decoration:underline; }
.kd-h-clear[hidden]{ display:none; }
.kd-h-count{ margin-left:auto; font-size:13px; font-weight:600; color:var(--nb-brass-text); }
@media (max-width:767px){
  .kd-h-nav{ margin:8px -14px 4px; padding:8px 14px; }
  .kd-h-months{ flex-wrap:nowrap; }
  .kd-h-months .kd-h-navlbl{ display:none; }
  .kd-site .kd-h-range .form-control, .kd-h-range .form-control{ min-width:0; flex:1 1 120px; }
  .kd-h-range .kd-h-navlbl{ display:none; }
  .kd-h-count{ flex-basis:100%; margin-left:0; }
}

/* ==========================================================================
   ADD POST (2026-11): two columns -- writing on the left; labels, sharing,
   settings and Publish in a sticky column on the right.
   ========================================================================== */
/* band ends just under the title; the cards start on the paper background */
.kd-site .kd-editpage.kd-pf-page{ padding-top:30px; }
.kd-editpage.kd-pf-page::before{ height:104px; }
.kd-pf-page .kd-form-head{ margin:0 0 40px; }
.kd-pf-page .kd-form-head-row{ border-bottom:0; padding-bottom:6px; }
.kd-pf-page .kd-form-head-row::after{ bottom:-4px; }
.kd-site .kd-pf-page .kd-form-head .kd-form-title{ color:var(--nb-cream); }
.kd-pf{ display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:22px; align-items:start; font-family:var(--nb-sans); }
.kd-pf-main, .kd-pf-side{ min-width:0; }
.kd-pf-side{ position:sticky; top:96px; }
.kd-pf-card{ margin:0 0 16px; padding:20px 22px; background:#fff; border:1px solid var(--nb-hair); border-radius:16px;
  box-shadow:0 1px 2px rgba(8,28,51,.04); }
.kd-pf-main > .kd-pf-card:first-child{ box-shadow:0 18px 44px rgba(8,28,51,.14), 0 1px 3px rgba(8,28,51,.06); }
.kd-site .kd-pf-h{ display:flex; align-items:center; gap:10px; margin:0 0 14px; font-family:var(--nb-serif); font-size:19px; font-weight:700; color:var(--nb-navy-deep); }
.kd-pf-h > span{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%;
  background:var(--nb-brass-tint); border:1px solid #e3cf98; color:var(--nb-brass-text); font-family:var(--nb-sans); font-size:12.5px; font-weight:700; }
.kd-pf-h > .fa{ width:18px; color:var(--nb-brass-text); font-size:16px; }
.kd-pf-h small{ font-family:var(--nb-sans); font-size:12.5px; font-weight:600; color:var(--nb-muted); }
.kd-pf .kd-pf-label{ display:block; margin:0 0 6px; font-size:14px; font-weight:600; color:var(--nb-navy-deep); }
.kd-pf-help{ margin:-3px 0 8px; font-size:12.5px; color:var(--nb-muted); }

/* 1 -- post type tiles */
.kd-pf-types{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kd-pf-type{ display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; text-align:left;
  padding:12px 14px; border:1px solid #ddd6c6; border-radius:12px; background:#fff; cursor:pointer;
  font-family:var(--nb-sans); color:var(--nb-ink); transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.kd-pf-type .fa{ grid-row:1 / span 2; display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px;
  background:var(--nb-paper); color:var(--nb-navy); font-size:16px; }
.kd-pf-type b{ font-size:15px; font-weight:700; color:var(--nb-navy-deep); }
.kd-pf-type small{ font-size:12px; color:var(--nb-muted); line-height:1.3; }
.kd-pf-type:hover{ border-color:var(--nb-brass); box-shadow:0 4px 14px rgba(8,28,51,.07); }
.kd-pf-type:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-site .kd-pf .kd-pf-type.is-active, .kd-site .kd-pf .kd-pf-type.is-active:hover, .kd-site .kd-pf .kd-pf-type.is-active:focus{ background:var(--nb-navy-deep) !important; color:var(--nb-cream); opacity:1; border-color:var(--nb-navy-deep); box-shadow:inset 0 -3px 0 var(--nb-brass); }
.kd-pf-type.is-active .fa{ background:rgba(201,169,90,.18); color:var(--nb-brass-light); }
.kd-site .kd-pf .kd-pf-type.is-active b{ color:var(--nb-cream); }
.kd-site .kd-pf .kd-pf-type.is-active small{ color:var(--nb-on-navy); }
.kd-pf-typeselect{ position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0 !important; opacity:0; }
.kd-pf .error_msg{ display:block; margin-top:8px; color:#9b3b2f; font-size:13.5px; font-weight:600; }

/* 2 -- title & summary */
.kd-site .kd-pf .kd-pf-title{ height:52px; padding:0 16px; border:1px solid #d9d2c1; border-radius:12px; font-size:19px; font-weight:600; color:var(--nb-navy-deep); }
.kd-pf .kd-pf-title:focus, .kd-pf textarea.form-control:focus, .kd-pf .form-control:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); outline:none; }
.kd-pf-desc{ margin-top:14px; }
.kd-pf-desc .form-group{ margin-bottom:0; }
.kd-site .kd-pf textarea#short_description{ min-height:96px; border:1px solid #d9d2c1; border-radius:12px; resize:vertical; }

/* 3 -- content */
.kd-pf-pick{ margin:0; padding:22px; border:1px dashed #d9cfb6; border-radius:12px; background:var(--nb-paper); color:var(--nb-muted); text-align:center; font-size:14.5px; }
.kd-pf-pick .fa{ color:var(--nb-brass-text); margin-right:4px; }
.kd-pf-pick[hidden]{ display:none; }
.kd-pf-content > .row{ margin-left:-15px; margin-right:-15px; }
.kd-pf-content .form-group:last-child{ margin-bottom:0; }

/* labels (side) */
.kd-pf-labels .form-group > label{ display:none; }
.kd-pf-labels .form-group{ margin-bottom:6px; }
.kd-pf-labels .tag-cloud{ margin:0 0 8px; }
.kd-pf-labels .tag-cloud:empty{ display:none; }

/* people pickers (side) */
.kd-pp{ position:relative; margin:0 0 16px; }
.kd-pp-box{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-height:42px; padding:5px 8px; border:1px solid #d9d2c1; border-radius:12px; background:#fff; cursor:text; }
.kd-pp-box:focus-within{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-pp-chips{ display:contents; }
.kd-pp-chip{ display:inline-flex; align-items:center; gap:4px; padding:3px 4px 3px 10px; border-radius:14px; background:var(--nb-brass-tint); border:1px solid #e3cf98;
  font-size:13px; font-weight:600; color:var(--nb-navy-deep); }
.kd-pp-x{ width:20px; height:20px; border:0; border-radius:50%; background:transparent; color:var(--nb-brass-text); font-size:16px; line-height:1; cursor:pointer; }
.kd-pp-x:hover{ background:rgba(201,169,90,.25); color:var(--nb-navy-deep); }
.kd-pp-input{ flex:1 1 120px; min-width:100px; height:30px; border:0; outline:none; background:transparent; font-size:14px; color:var(--nb-ink); }
.kd-pp-menu{ position:absolute; left:0; right:0; z-index:20; margin:4px 0 0; padding:5px; list-style:none; background:#fff; border:1px solid var(--nb-hair); border-radius:12px;
  box-shadow:0 12px 28px rgba(8,28,51,.14); max-height:260px; overflow:auto; }
.kd-pp-menu[hidden]{ display:none; }
.kd-pp-menu li{ padding:8px 10px; border-radius:8px; font-size:14px; cursor:pointer; }
.kd-pp-menu li[data-v]:hover, .kd-pp-menu li.is-active{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-pp-menu li.kd-pp-none{ color:var(--nb-muted); cursor:default; }
.kd-pp-store{ display:none !important; }

/* private switch */
.kd-pf .kd-pf-switch{ display:flex; align-items:center; gap:12px; margin:4px 0 0; padding:12px 14px; border:1px solid var(--nb-hair); border-radius:12px; cursor:pointer; font-weight:400; }
.kd-pf-switch > input{ position:absolute; opacity:0; width:1px; height:1px; }
.kd-pf-switch .kd-cal-track{ flex:0 0 38px; }
.kd-pf-switch input:checked + .kd-cal-track{ background:var(--nb-brass); }
.kd-pf-switch input:checked + .kd-cal-track::after{ transform:translateX(16px); }
.kd-pf-switch input:focus-visible + .kd-cal-track{ box-shadow:0 0 0 3px rgba(201,169,90,.35); }
.kd-pf-switch b{ display:block; font-size:14.5px; color:var(--nb-navy-deep); }
.kd-pf-switch small{ display:block; font-size:12.5px; color:var(--nb-muted); }

/* settings (side): stack the two options */
.kd-pf-settings .kd-form-settings{ display:block; margin:0; }
.kd-pf-settings .kd-form-opt{ margin:0 0 10px; }
.kd-pf-settings .kd-form-opt:last-child{ margin-bottom:0; }
.kd-site .kd-pf-settings input.kd-form-days{ width:84px; height:34px; padding:4px 10px; border:1px solid #d9d2c1; border-radius:8px; font-size:14px; }

/* actions */
.kd-pf-actions{ display:flex; gap:10px; }
.kd-site .kd-pf .kd-pf-publish{ flex:1 1 auto; height:48px; border:0; border-radius:24px; background:var(--nb-brass); color:var(--nb-midnight, #081c33);
  font-size:16px; font-weight:700; box-shadow:0 6px 16px rgba(201,169,90,.35); }
.kd-site .kd-pf .kd-pf-publish:hover, .kd-site .kd-pf .kd-pf-publish:focus{ background:var(--nb-brass-light); color:var(--nb-midnight, #081c33); }
.kd-site .kd-pf .kd-pf-cancel{ height:48px; padding:0 20px; line-height:46px; border:1px solid #d9d2c1; border-radius:24px; background:#fff; color:var(--nb-navy-deep); font-weight:600; }
.kd-site .kd-pf .kd-pf-cancel:hover{ border-color:var(--nb-brass); }

@media (max-width:991px){
  .kd-pf{ grid-template-columns:1fr; }
  .kd-pf-side{ position:static; }
  .kd-pf-types{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .kd-pf-actions{ position:sticky; bottom:0; z-index:30; margin:0 -15px; padding:12px 15px; background:rgba(244,241,234,.96); border-top:1px solid var(--nb-hair);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
}
@media (max-width:480px){
  .kd-pf-card{ padding:16px 14px; border-radius:14px; }
  .kd-pf-type{ padding:10px; grid-template-columns:30px 1fr; }
  .kd-pf-type .fa{ width:30px; height:30px; }
  .kd-pf-type small{ display:none; }
}

/* Add post: label picker (side column) */
.kd-lp{ position:relative; }
.kd-lp .kd-pp-box{ cursor:text; }
.kd-lp-icon{ margin:0 2px 0 4px; color:var(--nb-muted); font-size:13px; }
.kd-lp-menu li{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; }
.kd-lp-menu li .fa{ width:14px; color:var(--nb-brass-text); font-size:12px; }
.kd-lp-menu li b{ font-weight:600; color:var(--nb-navy-deep); }
.kd-lp-menu li small{ flex-basis:100%; padding-left:20px; font-size:12px; color:var(--nb-muted); }
.kd-lp-menu li.kd-lp-new{ margin-top:4px; border-top:1px solid var(--nb-hair); border-radius:0 0 8px 8px; padding-top:9px; color:var(--nb-link); font-weight:600; }
.kd-lp-menu li.kd-lp-new .fa{ color:var(--nb-link); }
.kd-site .kd-pf .kd-lp-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; padding:0; }
.kd-site .kd-pf .kd-lp-chips li{ position:relative; display:inline-flex; align-items:center; margin:0; padding:0; float:none; }
.kd-site .kd-pf .kd-lp-chips li a{ display:inline-block; margin:0; padding:4px 30px 4px 11px; border-radius:14px; border:1px solid #e3cf98; background:var(--nb-brass-tint);
  font-size:13px; font-weight:600; color:var(--nb-navy-deep); line-height:1.4; }
.kd-site .kd-pf .kd-lp-chips .close-label{ position:absolute; top:50%; right:6px; transform:translateY(-50%); line-height:1; }
.kd-site .kd-pf .kd-lp-chips .close-label i{ font-size:15px; color:var(--nb-brass-text); background:none; cursor:pointer; }
.kd-site .kd-pf .kd-lp-chips .close-label i:hover{ color:#9b3b2f; }
.kd-lp-newbtn{ margin-top:8px; padding:4px 2px; border:0; background:none; font-family:var(--nb-sans); font-size:13.5px; font-weight:600; color:var(--nb-link); cursor:pointer; }
.kd-lp-newbtn:hover{ text-decoration:underline; }

/* "New label" popup */
.modal .modal-dialog.kd-adv-dialog.kd-nl-dialog{ width:520px; }
.kd-nl-body{ padding:18px 24px 14px; }
.kd-site .kd-nl .kd-nl-name{ height:46px; font-size:17px; font-weight:600; color:var(--nb-navy-deep); border-radius:12px; }
.kd-nl .kd-pf-label{ display:block; margin:0 0 6px; font-size:14px; font-weight:600; color:var(--nb-navy-deep); }
.kd-nl .kd-pf-label small{ font-weight:500; color:var(--nb-muted); }
.kd-nl-gap{ margin-top:16px !important; }
.kd-nl-err{ display:block; min-height:0; margin-top:6px; color:#9b3b2f; font-size:13px; font-weight:600; }
.kd-nl-err:empty{ display:none; }
.kd-nl-path{ margin:8px 0 0; padding:6px 10px; border-radius:8px; background:var(--nb-paper); font-size:13px; color:var(--nb-navy); }
.kd-nl-path::before{ content:"\f02b"; font-family:FontAwesome; margin-right:6px; color:var(--nb-brass-text); }
.kd-nl-path[hidden]{ display:none; }
.kd-nl-vis{ margin-top:18px; padding-top:14px; border-top:1px solid var(--nb-hair); }
.kd-nl-vis .kd-adv-sec-title small{ font-weight:500; color:var(--nb-muted); text-transform:none; letter-spacing:0; }
.kd-nl .kd-nl-inherit{ display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:14px; font-weight:500; color:var(--nb-ink); cursor:pointer; }
.kd-nl-inherit[hidden]{ display:none; }
.kd-nl-inherit input{ width:17px; height:17px; margin:0; accent-color:var(--nb-navy); }
.kd-nl .kd-pp{ margin-bottom:6px; }
.kd-nl .kd-pf-help{ margin:4px 0 0; font-size:12.5px; color:var(--nb-muted); }

/* label picker: tree view when nothing is typed */
.kd-lp-menu li.kd-lp-tree{ display:flex; flex-wrap:nowrap; align-items:center; gap:6px; padding-top:6px; padding-bottom:6px; }
.kd-lp-menu li.kd-lp-tree b{ font-weight:500; }
.kd-lp-menu li.kd-lp-tree.is-parent b{ font-weight:700; }
.kd-lp-menu li.kd-lp-tree.is-on{ color:var(--nb-muted); cursor:default; }
.kd-lp-menu li.kd-lp-tree.is-on b{ color:var(--nb-muted); }
.kd-lp-menu li.kd-lp-tree em{ margin-left:auto; font-style:normal; font-size:11.5px; color:var(--nb-brass-text); }
.kd-lp-menu{ max-height:320px; }

/* Add post side column: Sharing + Settings in the Labels-card style
   field head (icon · name · hint) -> chips -> search box; switch rows */
.kd-pf .kd-pp{ margin:0 0 16px; }
.kd-pf-fhead{ display:flex; align-items:baseline; gap:6px; margin:0 0 8px; font-size:14px; }
.kd-pf-fhead .fa{ width:15px; color:var(--nb-brass-text); font-size:13px; }
.kd-pf .kd-pf-fhead label{ margin:0; font-weight:700; color:var(--nb-navy-deep); }
.kd-pf-fhead span{ margin-left:auto; font-size:12px; color:var(--nb-muted); }
.kd-pf .kd-pp > .kd-pp-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.kd-pf .kd-pp > .kd-pp-chips:empty{ display:none; }
/* one chip look for labels and people */
.kd-pf .kd-pp-chip{ position:relative; padding:4px 30px 4px 11px; border-radius:14px; border:1px solid #e3cf98; background:var(--nb-brass-tint);
  font-size:13px; font-weight:600; line-height:1.4; color:var(--nb-navy-deep); }
.kd-pf .kd-pp-x{ position:absolute; top:50%; right:5px; transform:translateY(-50%); width:18px; height:18px; padding:0; border-radius:50%;
  background:var(--nb-brass-text); color:#fff; font-size:13px; line-height:18px; text-align:center; }
.kd-pf .kd-pp-x:hover{ background:#9b3b2f; color:#fff; }
.kd-pf .kd-pp-box{ min-height:42px; }

/* switch rows (Private, Content request, Review reminder) */
.kd-pf-rows{ display:flex; flex-direction:column; gap:10px; }
.kd-pf .kd-pf-switch{ margin:0; align-items:flex-start; }
.kd-pf .kd-pf-switch .kd-cal-track{ margin-top:2px; }
.kd-pf .kd-pf-switch:hover{ border-color:#d8c48a; }
.kd-pf-switchctl{ position:relative; display:flex; flex:0 0 38px; margin:0; cursor:pointer; }
.kd-pf-switchctl input{ position:absolute; opacity:0; width:1px; height:1px; }
.kd-pf-switchctl input:checked + .kd-cal-track{ background:var(--nb-brass); }
.kd-pf-switchctl input:checked + .kd-cal-track::after{ transform:translateX(16px); }
.kd-pf-switchctl input:focus-visible + .kd-cal-track{ box-shadow:0 0 0 3px rgba(201,169,90,.35); }
.kd-pf-review{ cursor:default; }
.kd-pf-review small{ line-height:1.9; }
.kd-pf-review .kd-pf-rev-off{ display:none; }
.kd-pf-review.is-off .kd-pf-rev-on{ display:none; }
.kd-pf-review.is-off .kd-pf-rev-off{ display:block; }
.kd-site .kd-pf .kd-pf-days{ width:84px; height:28px; margin:0 3px; padding:2px 8px; border:1px solid #d9d2c1; border-radius:7px;
  font-size:13px; color:var(--nb-ink); background:#fff; }
.kd-pf .kd-pf-days:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); outline:none; }
.kd-pf-settings .kd-form-settings{ display:none; }

/* Add post: compact file uploaders (Krajee fileinput) -- attachments + Graphic images */
.kd-pf .attachmentfile > label{ display:none; }
.kd-pf .attachmentfile, .kd-pf .attachmentfile .form-group, .kd-pf .upimg{ margin-bottom:0; }
.kd-pf .file-input .file-preview{ margin:0 0 8px; padding:4px; border:1px dashed #d9cfb6; border-radius:12px; background:var(--nb-paper); box-shadow:none; }
.kd-pf .file-input .file-drop-zone{ min-height:0; margin:0; padding:0; border:0; border-radius:10px; }
.kd-pf .file-input .file-drop-zone-title{ padding:6px 10px; font-size:13.5px; font-weight:500; color:var(--nb-muted); }
.kd-pf .file-input .file-drop-zone-title::before{ content:"\f0ee"; font-family:FontAwesome; margin-right:8px; color:var(--nb-brass-text); }
.kd-pf .file-input .file-preview .fileinput-remove{ top:4px; right:8px; }
.kd-pf .file-input .file-preview-thumbnails{ display:flex; flex-wrap:wrap; gap:6px; }
.kd-pf .file-input .file-preview-frame{ margin:0; padding:4px; height:auto; border-radius:8px; box-shadow:none; border:1px solid var(--nb-hair); background:#fff; }
.kd-pf .file-input .file-preview-image, .kd-pf .file-input .file-preview-other{ max-height:90px; width:auto !important; height:auto !important; }
.kd-pf .file-input .file-preview-other{ padding:10px 8px; font-size:12px; }
.kd-pf .file-input .file-thumbnail-footer{ height:auto; }
.kd-pf .file-input .file-footer-caption{ font-size:11.5px; margin:2px 0 0; }
.kd-pf .file-input .input-group{ display:flex; }
.kd-site .kd-pf .file-input .file-caption{ height:38px; padding:8px 12px; border:1px solid #d9d2c1; border-right:0; border-radius:10px 0 0 10px; font-size:13.5px; box-shadow:none; }
.kd-pf .file-input .input-group-btn{ display:flex; width:auto; }
.kd-site .kd-pf .file-input .btn{ height:auto; min-height:38px; padding:0 16px; border-radius:0; font-size:13.5px; font-weight:600; line-height:1; }
/* centre icon + text; only on buttons the plugin is showing (it hides Remove/Upload until files are picked) */
.kd-site .kd-pf .file-input .btn-file,
.kd-site .kd-pf .file-input:not(.file-input-new):not(.file-input-ajax-new) .fileinput-remove-button,
.kd-site .kd-pf .file-input:not(.file-input-new):not(.file-input-ajax-new) .fileinput-upload-button{ display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.kd-site .kd-pf .file-input-new .fileinput-remove-button, .kd-site .kd-pf .file-input-new .fileinput-upload-button, .kd-site .kd-pf .file-input-new .fileinput-cancel-button,
.kd-site .kd-pf .file-input-ajax-new .fileinput-remove-button, .kd-site .kd-pf .file-input-ajax-new .fileinput-upload-button, .kd-site .kd-pf .file-input-ajax-new .fileinput-cancel-button{ display:none !important; }
.kd-site .kd-pf .file-input .input-group{ align-items:stretch; }
.kd-site .kd-pf .file-input .btn .glyphicon, .kd-site .kd-pf .file-input .btn .fa{ top:0; margin:0; }
.kd-site .kd-pf .file-input .btn-file{ border-radius:0 10px 10px 0; background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:var(--nb-cream); }
.kd-site .kd-pf .file-input .btn-file:hover{ background:var(--nb-navy); }
.kd-pf .file-input .fileinput-remove-button, .kd-pf .file-input .fileinput-upload-button{ background:#fff; border:1px solid #d9d2c1; color:var(--nb-navy-deep); }

/* Add post: Timeline planner fields -- room between rows and above Add Event */
.kd-pf .timeline.box .demo-container .form-group{ margin-bottom:16px; }
.kd-pf .timeline.box .demo-container > .text-center{ clear:both; padding-top:8px; margin-bottom:18px; }
.kd-pf .timeline.box .demo-container > .text-center .btn{ min-width:140px; }

/* ===== List editor (Add post > List): setup row, toolbar ribbon, sheet tabs, grid ===== */
/* setup: "Start from" tiles */
.kd-site .kd-pf .kd-ls-setup .form-group{ margin-bottom:14px; }
.kd-ls-src{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; max-width:640px; }
.kd-site .kd-ls-srcbtn{ display:flex; align-items:center; gap:12px; padding:11px 14px; border:1px solid #ddd6c6; border-radius:12px; background:#fff;
  text-align:left; font-family:var(--nb-sans); color:var(--nb-ink); cursor:pointer; transition:border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.kd-ls-srcbtn .fa{ flex:0 0 32px; display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:9px; background:var(--nb-paper); color:var(--nb-navy); font-size:15px; }
.kd-ls-srcbtn b{ display:block; font-size:14.5px; color:var(--nb-navy-deep); }
.kd-ls-srcbtn small{ display:block; font-size:12px; color:var(--nb-muted); line-height:1.3; }
.kd-site .kd-ls-srcbtn:hover{ border-color:var(--nb-brass); }
.kd-ls-srcbtn:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-site .kd-ls-srcbtn.is-active{ border-color:var(--nb-brass); background:#fffaf0; box-shadow:inset 0 0 0 1px var(--nb-brass); }
.kd-ls-srcbtn.is-active .fa{ background:var(--nb-navy-deep); color:var(--nb-brass-light); }

/* import: one drop-style row + header switch beside it */
.kd-ls-import{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; margin:0 0 16px; }
.kd-site .kd-ls-drop{ position:relative; flex:1 1 320px; display:flex; align-items:center; gap:12px; margin:0; padding:10px 12px 10px 14px;
  border:1px dashed #cdbf98; border-radius:12px; background:var(--nb-paper); cursor:pointer; font-weight:400; transition:border-color .15s ease, background .15s ease; }
.kd-ls-drop:hover{ border-color:var(--nb-brass); background:#fbf8f1; }
.kd-ls-drop input[type=file]{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.kd-ls-drop:focus-within{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-ls-drop > .fa{ font-size:22px; color:#2f7d4f; }
.kd-ls-dropmain{ flex:1; min-width:0; }
.kd-ls-dropmain b{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; color:var(--nb-navy-deep); }
.kd-ls-dropmain small{ display:block; font-size:12px; color:var(--nb-muted); }
.kd-ls-dropbtn{ flex:0 0 auto; padding:7px 16px; border-radius:9px; background:var(--nb-navy-deep); color:var(--nb-cream); font-size:13.5px; font-weight:600; }
.kd-ls-drop:hover .kd-ls-dropbtn{ background:var(--nb-navy); }
.kd-site .kd-pf .kd-ls-hdr{ flex:0 1 300px; margin:0; align-items:center; background:#fff; }
.kd-ls-err{ flex-basis:100%; color:#b3261e; font-size:13px; }
.kd-ls-err:empty{ display:none; }

/* blank grid: size row */
.kd-site .kd-ls-size{ float:none; width:auto; margin:0 15px 16px !important; display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 16px; padding:10px 14px; border:1px solid var(--nb-hair); border-radius:12px; background:var(--nb-paper); }
.kd-ls-size label{ margin:0 6px 0 0; font-size:14px; font-weight:600; color:var(--nb-navy-deep); }
.kd-site .kd-ls-size input.form-control{ width:78px; height:36px; padding:4px 10px; border:1px solid #d9d2c1; border-radius:9px; font-size:14px; background:#fff; box-shadow:none; }
.kd-ls-size input.form-control:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-ls-size span{ font-size:13.5px; color:var(--nb-muted); }
.kd-site .kd-ls-size .subrowscol{ margin-left:auto; height:36px; padding:0 18px; border:0; border-radius:9px; background:var(--nb-navy-deep); color:var(--nb-cream); font-size:13.5px; font-weight:600; }
.kd-site .kd-ls-size .subrowscol:hover{ background:var(--nb-navy); }
.kd-ls-again{ margin:0 0 12px; }
.kd-site .kd-ls-again .addrowcols{ padding:0; border:0; background:none; color:var(--nb-link); font-size:13.5px; font-weight:600; }
.kd-ls-again .addrowcols:hover{ text-decoration:underline; }
.kd-ls-again .fa{ margin-right:4px; font-size:12px; }

/* toolbar: one ribbon card, actions row + formatting row */
.kd-site #ls-toolbar{ margin:0; padding:8px 10px; border:1px solid var(--nb-hair); border-bottom:0; border-radius:12px 12px 0 0; background:#fbf9f4; }
.kd-site #ls-toolbar > ul{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; overflow:visible; }
.kd-site #ls-toolbar > ul::before, .kd-site #ls-toolbar > ul::after{ content:""; order:20; flex-basis:100%; height:0; margin:1px 0; border-top:1px solid var(--nb-hair); }
.kd-site #ls-toolbar > ul::after{ order:40; border-top-style:dashed; }
/* row 3: cell rules + filters */
.kd-site #ls-toolbar li.ls-fmt > .ls-type-sel, .kd-site #ls-toolbar li.ls-fmt > .ls-rule-sel, .kd-site #ls-toolbar li.ls-fmt > .ls-cond-fmt{ order:50; }
.kd-site #ls-toolbar li:has(.ls-show-filters), .kd-site #ls-toolbar li:has(.ls-clear-filters), .kd-site #ls-toolbar li:has(.ls-set-header-row), .kd-site #ls-toolbar li:has(.ls-hide-cols-btn){ order:51; }
.kd-site #ls-toolbar li.ls-fx{ order:31; margin-left:auto; }
.kd-site #ls-toolbar .ls-fmt-num{ width:72px; }
.kd-site #ls-toolbar .ls-type-sel{ width:76px; }
.kd-site #ls-toolbar .ls-rule-sel{ width:96px; }
.kd-site #ls-toolbar .ls-cond-fmt{ width:104px; }
.kd-site #ls-toolbar .ls-chart-sel{ width:80px; }
.kd-site #ls-toolbar li{ display:flex; align-items:center; gap:4px; float:none; order:10; }
.kd-site #ls-toolbar li.ls-fmt{ display:contents; }
.kd-site #ls-toolbar li.ls-fmt > *{ order:30; }
.kd-site #ls-toolbar li.ls-find{ order:15; margin-left:auto; }
.kd-site #ls-toolbar li.ls-stats-li{ order:14; }
.kd-site #ls-toolbar li.ls-stats-li .ls-stats:empty{ display:none; }
/* group gaps */
.kd-site #ls-toolbar li:has(.ls-autofit-btn), .kd-site #ls-toolbar li.ls-chart-li, .kd-site #ls-toolbar li:has(.ls-show-filters){ margin-left:8px; }
.kd-site #ls-toolbar .ls-fmt-btn[data-fmt="left"], .kd-site #ls-toolbar .ls-color[data-fmt="fg"], .kd-site #ls-toolbar .ls-fmt-num,
.kd-site #ls-toolbar .ls-hyperlink-btn{ margin-left:8px !important; }
/* one control look */
.kd-site #ls-toolbar li > a, .kd-site #ls-toolbar .ls-fmt-btn, .kd-site #ls-toolbar select,
.kd-site #ls-toolbar .ls-color-main, .kd-site #ls-toolbar .ls-color-caret,
.kd-site #ls-toolbar .ls-find-nav, .kd-site #ls-toolbar .ls-replace-toggle, .kd-site #ls-toolbar .ls-do-replace, .kd-site #ls-toolbar .ls-do-replace-all{
  display:inline-flex; align-items:center; justify-content:center; gap:5px; height:32px; min-width:32px; margin:0; padding:0 10px;
  border:1px solid #e2dac6; border-radius:8px; background:#fff; box-shadow:none;
  font-family:var(--nb-sans); font-size:13px; font-weight:500; line-height:1; color:var(--nb-navy-deep); text-decoration:none; cursor:pointer; }
.kd-site #ls-toolbar .ls-fmt-btn[data-fmt]{ padding:0; width:32px; }
.kd-site #ls-toolbar .ls-fmt-btn[data-fmt] + .ls-fmt-btn[data-fmt]{ margin-left:-1px; }
.kd-site #ls-toolbar select{ -webkit-appearance:none; -moz-appearance:none; appearance:none; padding:0 10px; }
.kd-site #ls-toolbar li > a:hover, .kd-site #ls-toolbar .ls-fmt-btn:hover, .kd-site #ls-toolbar select:hover,
.kd-site #ls-toolbar .ls-color-main:hover, .kd-site #ls-toolbar .ls-color-caret:hover,
.kd-site #ls-toolbar .ls-find-nav:hover, .kd-site #ls-toolbar .ls-replace-toggle:hover{ background:var(--nb-brass-tint); border-color:var(--nb-brass-light); }
.kd-site #ls-toolbar .fa{ font-size:13px; color:var(--nb-navy); }
.kd-site #ls-toolbar .ls-totals-btn.ls-active{ background:var(--nb-brass-tint); border-color:var(--nb-brass); }
/* split colour buttons */
.kd-site #ls-toolbar .ls-color{ display:inline-flex; margin:0; }
.kd-site #ls-toolbar .ls-color-main{ flex-direction:column; gap:2px; padding:0 8px; border-radius:8px 0 0 8px; border-right:0; }
.kd-site #ls-toolbar .ls-color-main .ls-color-bar{ width:16px; height:3px; margin:0; }
.kd-site #ls-toolbar .ls-color-caret{ min-width:22px; padding:0 5px; border-radius:0 8px 8px 0; }
.kd-site #ls-toolbar .ls-color-caret .fa{ font-size:11px; color:var(--nb-muted); }
/* formulas hint: quiet */
.kd-site #ls-toolbar li.ls-fx span{ padding:0 4px; font-size:12.5px; color:var(--nb-muted); }
.kd-site #ls-toolbar li.ls-fx .fa{ color:var(--nb-brass-text); }
/* find */
.kd-site #ls-toolbar .ls-find-input{ width:170px; height:32px; padding:0 10px 0 30px; border:1px solid #e2dac6; border-radius:8px; font-size:13px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2359616b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
.kd-site #ls-toolbar .ls-find-input:focus{ border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); outline:none; }
.kd-site #ls-toolbar .ls-find-count{ min-width:0; font-size:11.5px; }
.kd-site #ls-toolbar .ls-find-count:empty{ display:none; }
.kd-site #ls-toolbar .ls-find-nav, .kd-site #ls-toolbar .ls-replace-toggle{ width:32px; padding:0; font-size:11px; color:var(--nb-muted); }
.kd-site #ls-toolbar .ls-replace-input{ height:32px; border:1px solid #e2dac6; border-radius:8px; }

/* sheet tabs: joined to the ribbon */
.kd-site #sheet_tabs.nav.nav-tabs{ margin:0; padding:6px 8px 0; min-height:0; border:1px solid var(--nb-hair); border-bottom:1px solid #d9d2c1; border-radius:0; background:#f1ece1; }
.kd-site #sheet_tabs.nav-tabs > li > a{ padding:6px 14px; border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; background:transparent; font-size:13px; color:var(--nb-muted); }
.kd-site #sheet_tabs.nav-tabs > li > a:hover{ background:#e8e1d1; border-color:transparent; color:var(--nb-navy-deep); }
.kd-site #sheet_tabs.nav-tabs > li.active > a, .kd-site #sheet_tabs.nav-tabs > li.active > a:hover, .kd-site #sheet_tabs.nav-tabs > li.active > a:focus{
  padding-top:6px; background:#fff; border-color:#d9d2c1; border-bottom-color:#fff; border-top:1px solid #d9d2c1; box-shadow:inset 0 2px 0 var(--nb-brass); color:var(--nb-navy-deep); font-weight:700; }
.kd-site #sheet_tabs.nav-tabs > li.ls-add > a{ border:0; background:transparent; color:var(--nb-link); font-weight:600; }
.kd-site #sheet_tabs.nav-tabs > li.ls-add > a:hover{ background:#e8e1d1; }

/* grid: quiet headers, compact cells */
.kd-site #table_mange{ border:1px solid var(--nb-hair); border-top:0; background:#fff; }
.kd-site #table_mange .handsontable th{ background:#f6f3ec; color:var(--nb-muted); font-size:12px; font-weight:600; border-color:#e6e0d2; }
.kd-site #table_mange .handsontable th.ht__highlight, .kd-site #table_mange .handsontable th.ht__active_highlight{ background:var(--nb-brass-tint); color:var(--nb-navy-deep); }
.kd-site #table_mange .handsontable td{ font-size:13px; color:var(--nb-ink); border-color:#ece7dc; }
.kd-site #ls-grid-resize{ border-color:var(--nb-hair); border-radius:0 0 12px 12px; background:#f1ece1; }

/* ===== People pickers at scale: count, +N more, browse, groups, paste note ===== */
.kd-pp-count{ margin-left:2px; padding:1px 7px; border-radius:10px; background:var(--nb-navy-deep); color:var(--nb-cream); font-style:normal; font-size:11.5px; font-weight:700; line-height:1.5; }
.kd-pp-count[hidden]{ display:none; }
.kd-site .kd-pp-more{ padding:4px 11px; border:1px dashed var(--nb-brass); border-radius:14px; background:#fff; font-size:13px; font-weight:600; line-height:1.4; color:var(--nb-brass-text); cursor:pointer; }
.kd-site .kd-pp-more:hover{ background:var(--nb-brass-tint); }
.kd-site .kd-pp-browse{ flex:0 0 auto; width:30px; height:30px; margin-left:auto; padding:0; border:0; border-radius:8px; background:transparent; color:var(--nb-muted); cursor:pointer; }
.kd-site .kd-pp-browse:hover, .kd-site .kd-pp-browse:focus-visible{ background:var(--nb-paper); color:var(--nb-navy-deep); outline:none; }
.kd-pp-note{ margin:6px 2px 0; font-size:12.5px; line-height:1.45; color:var(--nb-muted); }
.kd-pp-note[hidden]{ display:none; }
.kd-pp-menu li.kd-pp-grp, .kd-pp-menu li.kd-pp-act{ display:flex; align-items:baseline; gap:8px; }
.kd-pp-menu li.kd-pp-grp .fa, .kd-pp-menu li.kd-pp-act .fa{ width:15px; color:var(--nb-brass-text); }
.kd-pp-menu li.kd-pp-grp small{ margin-left:auto; font-size:12px; color:var(--nb-muted); }
.kd-pp-menu li.kd-pp-act{ font-weight:600; color:var(--nb-link); }
.kd-pp-menu li.kd-pp-browserow{ margin-top:4px; border-top:1px solid var(--nb-hair); border-radius:0 0 8px 8px; font-weight:500; color:var(--nb-muted); }
.kd-pp-menu li[data-g]:hover, .kd-pp-menu li[data-allq]:hover, .kd-pp-menu li[data-paste]:hover, .kd-pp-menu li[data-browse]:hover{ background:var(--nb-paper); }

/* people browser dialog (built by js/post_form.js on the shared .kd-dlg look) */
.kd-dlg.kd-pb{ width:560px; display:flex; flex-direction:column; max-height:min(680px, calc(100vh - 40px)); overflow:hidden; }
.kd-pb .kd-dlg-head{ position:relative; padding-right:28px; }
.kd-site .kd-pb .kd-pb-x{ position:absolute; top:-4px; right:-8px; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; font-size:24px; line-height:1; color:var(--nb-muted); cursor:pointer; }
.kd-site .kd-pb .kd-pb-x:hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-pb-search{ position:relative; }
.kd-pb-search .fa{ position:absolute; left:13px; top:13px; font-size:13px; color:var(--nb-muted); }
.kd-dlg .kd-pb-search input.kd-dlg-input{ padding-left:34px; }
.kd-pb-tabs{ display:flex; gap:4px; margin:2px 0 8px; padding:3px; border-radius:11px; background:var(--nb-paper); }
.kd-site .kd-pb-tabs button{ flex:1; height:34px; padding:0 10px; border:0; border-radius:8px; background:transparent; font-size:13.5px; font-weight:600; color:var(--nb-muted); cursor:pointer; }
.kd-pb-tabs button b{ margin-left:4px; padding:1px 7px; border-radius:9px; background:rgba(11,36,64,.08); font-size:11.5px; color:var(--nb-navy-deep); }
.kd-site .kd-pb-tabs button[aria-selected="true"]{ background:#fff; color:var(--nb-navy-deep); box-shadow:0 1px 3px rgba(8,28,51,.12); }
.kd-pb-tabs button[aria-selected="true"] b{ background:var(--nb-navy-deep); color:var(--nb-cream); }
.kd-pb-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; min-height:22px; margin:0 2px 6px; }
.kd-pb-bar:empty{ display:none; }
.kd-dlg .kd-pb-bar .kd-pb-savegrp{ margin-left:auto; color:var(--nb-brass-text); }
.kd-pb-list{ flex:1 1 auto; min-height:120px; overflow-y:auto; border:1px solid var(--nb-hair); border-radius:12px; }
.kd-dlg .kd-pb-list .kd-dlg-row.is-on{ background:#fffaf0; }
.kd-pb-more, .kd-pb-empty{ margin:0; padding:14px 16px; font-size:13.5px; color:var(--nb-muted); }
.kd-pb-empty a{ color:var(--nb-link); font-weight:600; }
.kd-pb-grp{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #eee8dc; }
.kd-pb-grp:last-child{ border-bottom:0; }
.kd-pb-grp > .fa{ flex:0 0 30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--nb-brass-tint); color:var(--nb-brass-text); font-size:13px; }
.kd-pb-grp > span{ flex:1; min-width:0; }
.kd-pb-grp b{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; color:var(--nb-navy-deep); }
.kd-pb-grp small{ display:block; font-size:12px; color:var(--nb-muted); }
.kd-dlg .kd-pb-grp button.kd-dlg-btn{ height:32px; min-width:0; padding:0 12px; font-size:13px; }
.kd-site .kd-pb-ico{ width:30px; height:30px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--nb-muted); cursor:pointer; }
.kd-site .kd-pb-ico:hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-site .kd-pb-ico[data-gact="del"]:hover{ background:#fbeeeb; color:#9b3b2f; }
.kd-pb-form{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; width:100%; padding:10px 12px; background:#fffaf0; border-bottom:1px solid #eee8dc; }
.kd-pb-grp.is-edit{ padding:0; }
.kd-dlg .kd-pb-form input.kd-dlg-input{ flex:1 1 200px; margin:0; }
.kd-dlg .kd-pb-form button.kd-dlg-btn{ height:38px; }
.kd-pb-form small{ flex-basis:100%; font-size:12px; color:var(--nb-muted); }
.kd-pb .kd-dlg-foot{ justify-content:space-between; margin-top:14px; }
.kd-pb-sum{ font-size:13px; color:var(--nb-muted); }
@media (max-width:600px){ .kd-dlg.kd-pb{ max-height:calc(100vh - 24px); } .kd-pb-grp{ flex-wrap:wrap; } }

/* ===== User Groups page (views/user/groups.php, js/user_groups.js) ===== */
.kd-site #blog.kd-ugpage{ margin-top:0; font-family:var(--nb-sans); color:var(--nb-ink); }
.kd-ugpage .kd-band-head{ align-items:flex-end; }
.kd-ugpage .kd-band-sub{ margin:8px 0 0; max-width:640px; font-size:15px; line-height:1.5; color:var(--nb-on-navy); }
.kd-site .kd-ug-newbtn{ display:inline-flex; align-items:center; gap:8px; height:42px; margin-bottom:4px; padding:0 20px; border:0; border-radius:12px;
  background:var(--nb-brass); color:var(--nb-navy-deep); font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.25); }
.kd-site .kd-ug-newbtn:hover{ background:var(--nb-brass-light); }
.kd-ug{ display:grid; grid-template-columns:minmax(260px, 340px) minmax(0, 1fr); gap:22px; align-items:start; margin-bottom:40px; }
.kd-ug-card{ background:#fff; border:1px solid var(--nb-hair); border-radius:16px; box-shadow:0 1px 3px rgba(8,28,51,.06); }
.kd-ug-setup{ display:flex; gap:14px; align-items:flex-start; max-width:760px; padding:22px 24px; margin-bottom:40px; }
.kd-ug-setup .fa{ font-size:20px; color:var(--nb-brass-text); margin-top:2px; }
.kd-ug-setup p{ margin:0; font-size:15px; line-height:1.55; }

/* list column */
.kd-ug-side{ position:sticky; top:16px; padding:14px; }
.kd-ug-search{ position:relative; margin-bottom:10px; }
.kd-ug-search .fa{ position:absolute; left:13px; top:13px; font-size:13px; color:var(--nb-muted); }
.kd-site .kd-ug-search input{ width:100%; height:40px; padding:0 12px 0 34px; border:1px solid #d9d2c1; border-radius:10px; font-size:14px; background:#fff; box-shadow:none; }
.kd-ug-search input:focus{ outline:none; border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-ug-filter{ display:flex; gap:3px; margin-bottom:10px; padding:3px; border-radius:10px; background:var(--nb-paper); }
.kd-site .kd-ug-filter button{ flex:1; height:30px; padding:0 8px; border:0; border-radius:7px; background:transparent; font-size:12.5px; font-weight:600; color:var(--nb-muted); cursor:pointer; white-space:nowrap; }
.kd-site .kd-ug-filter button[aria-selected="true"]{ background:#fff; color:var(--nb-navy-deep); box-shadow:0 1px 3px rgba(8,28,51,.12); }
.kd-ug-list{ display:flex; flex-direction:column; gap:4px; max-height:calc(100vh - 260px); min-height:120px; overflow-y:auto; }
.kd-site .kd-ug-item{ display:flex; align-items:center; gap:11px; width:100%; padding:10px 10px; border:1px solid transparent; border-radius:11px; background:transparent; text-align:left; cursor:pointer; }
.kd-ug-item > .fa{ flex:0 0 32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--nb-paper); color:var(--nb-navy); font-size:13px; }
.kd-ug-item > span{ flex:1; min-width:0; }
.kd-ug-item b{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; color:var(--nb-navy-deep); }
.kd-ug-item small{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--nb-muted); }
.kd-site .kd-ug-item:hover{ background:var(--nb-paper); }
.kd-site .kd-ug-item.is-active{ background:#fffaf0; border-color:var(--nb-brass); }
.kd-ug-item.is-active > .fa{ background:var(--nb-navy-deep); color:var(--nb-brass-light); }
.kd-ug-none, .kd-ug-loading{ margin:0; padding:18px 8px; font-size:13.5px; line-height:1.5; color:var(--nb-muted); text-align:center; }

/* editor column */
.kd-ug-main{ padding:26px 28px 22px; min-height:360px; }
.kd-ug-empty{ max-width:460px; margin:30px auto; text-align:center; }
.kd-ug-emptyico{ display:inline-flex; align-items:center; justify-content:center; width:64px; height:64px; margin-bottom:14px; border-radius:50%; background:var(--nb-brass-tint); color:var(--nb-brass-text); font-size:26px; }
.kd-ug-empty h2{ margin:0 0 8px; font-family:var(--nb-serif); font-size:23px; font-weight:700; color:var(--nb-navy-deep); }
.kd-ug-empty p{ margin:0 0 18px; font-size:14.5px; line-height:1.6; color:var(--nb-muted); }
.kd-ug-formhead{ margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--nb-hair); }
.kd-ug-formhead h2{ margin:0; font-family:var(--nb-serif); font-size:25px; font-weight:700; color:var(--nb-navy-deep); overflow-wrap:anywhere; }
.kd-ug-meta{ margin:4px 0 0; font-size:13px; color:var(--nb-muted); }
.kd-ug-label{ display:block; margin:0 0 6px; font-size:14px; font-weight:700; color:var(--nb-navy-deep); }
.kd-site .kd-ug-input{ display:block; width:100%; height:44px; margin:0 0 18px; padding:0 14px; border:1px solid #d9d2c1; border-radius:12px; font-size:15px; background:#fff; box-shadow:none; }
.kd-ug-input:focus{ outline:none; border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.22); }
.kd-ug-input.is-bad{ border-color:#9b3b2f; box-shadow:0 0 0 3px rgba(155,59,47,.15); }
.kd-ug-pp{ position:relative; margin:0 0 18px; }
.kd-ug-pp .kd-pf-fhead{ display:flex; align-items:baseline; gap:6px; margin:0 0 8px; font-size:14px; }
.kd-ug-pp .kd-pf-fhead .fa{ width:15px; color:var(--nb-brass-text); font-size:13px; }
.kd-ug-pp .kd-pf-fhead label{ margin:0; font-weight:700; color:var(--nb-navy-deep); }
.kd-ug-pp .kd-pf-fhead > span{ margin-left:auto; font-size:12px; color:var(--nb-muted); }
.kd-ug-pp > .kd-pp-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.kd-ug-pp > .kd-pp-chips:empty{ display:none; }
.kd-ug-pp .kd-pp-chip{ position:relative; padding:4px 30px 4px 11px; border-radius:14px; border:1px solid #e3cf98; background:var(--nb-brass-tint); font-size:13px; font-weight:600; line-height:1.4; color:var(--nb-navy-deep); }
.kd-site .kd-ug-pp .kd-pp-x{ position:absolute; top:50%; right:5px; transform:translateY(-50%); width:18px; height:18px; padding:0; border:0; border-radius:50%; background:var(--nb-brass-text); color:#fff; font-size:13px; line-height:18px; text-align:center; }
.kd-ug-pp .kd-pp-x:hover{ background:#9b3b2f; }
.kd-ug-pp .kd-pp-box{ min-height:46px; }
.kd-ug-share{ margin:0 0 6px !important; }
.kd-ugpage .kd-pf-switch{ display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid var(--nb-hair); border-radius:12px; cursor:pointer; font-weight:400; }
.kd-ugpage .kd-pf-switch .kd-cal-track{ margin-top:2px; }
.kd-ugpage .kd-pf-switch:hover{ border-color:#d8c48a; }
.kd-ug-foot{ display:flex; align-items:center; gap:8px; margin-top:22px; padding-top:16px; border-top:1px solid var(--nb-hair); }
.kd-ug-spacer{ flex:1; }
.kd-site .kd-ug-btn{ display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 18px; border:1px solid #d9d2c1; border-radius:11px; background:#fff;
  font-size:14px; font-weight:600; color:var(--nb-navy-deep); cursor:pointer; }
.kd-site .kd-ug-btn:hover{ background:var(--nb-paper); }
.kd-site .kd-ug-btn.kd-ug-primary{ background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:var(--nb-cream); }
.kd-site .kd-ug-btn.kd-ug-primary:hover{ background:var(--nb-navy); }
.kd-site .kd-ug-btn.kd-ug-primary[disabled]{ opacity:.6; cursor:default; }
.kd-site .kd-ug-btn.kd-ug-danger{ border-color:#ecd0ca; color:#9b3b2f; }
.kd-site .kd-ug-btn.kd-ug-danger:hover{ background:#fbeeeb; border-color:#9b3b2f; }
.kd-ug-btn[hidden]{ display:none !important; }
/* read-only (a colleague's group) */
.kd-ug-lock{ display:flex; gap:9px; margin:0 0 18px; padding:11px 14px; border-radius:12px; background:var(--nb-paper); font-size:13.5px; line-height:1.5; color:var(--nb-muted); }
.kd-ug-lock .fa{ margin-top:3px; color:var(--nb-brass-text); }
.kd-ug-members{ display:flex; flex-wrap:wrap; gap:6px; max-height:340px; overflow-y:auto; margin:0; padding:0; list-style:none; }
.kd-ug-members li{ padding:4px 11px; border:1px solid var(--nb-hair); border-radius:14px; background:#fff; font-size:13px; font-weight:500; color:var(--nb-navy-deep); }
.kd-pb-lock{ display:inline-flex; align-items:center; justify-content:center; cursor:help; }
.kd-dlg .kd-pb-bar .kd-pb-manage{ margin-left:auto; text-decoration:none; }
@media (max-width:900px){
  .kd-ug{ grid-template-columns:1fr; }
  .kd-ug-side{ position:static; }
  .kd-ug-list{ max-height:260px; }
  .kd-ug-main{ padding:20px 18px; }
}

/* User Groups: permissions, descriptions, owner, superuser */
.kd-ug-item em{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-style:normal; font-size:12.5px; color:#3a4148; }
.kd-ug-label small{ margin-left:4px; font-size:12px; font-weight:500; color:var(--nb-muted); }
.kd-ug-asadmin{ display:flex; gap:9px; align-items:flex-start; margin:0 0 16px; padding:10px 14px; border:1px solid #e3cf98; border-radius:12px; background:#fffaf0; font-size:13.5px; line-height:1.5; color:#5e4710; }
.kd-ug-asadmin .fa{ margin-top:3px; color:var(--nb-brass-text); }
.kd-ug-asadmin[hidden]{ display:none; }
.kd-ugpage .kd-ug-share.is-locked{ cursor:not-allowed; background:var(--nb-paper); }
.kd-ugpage .kd-ug-share.is-locked b{ color:var(--nb-muted); }
.kd-ugpage .kd-ug-share.is-locked .kd-cal-track{ opacity:.5; }
.kd-ug-owner{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:10px 0 0; padding:10px 14px; border:1px dashed var(--nb-hair); border-radius:12px; font-size:13.5px; color:var(--nb-muted); }
.kd-ug-owner[hidden]{ display:none; }
.kd-ug-owner b{ color:var(--nb-navy-deep); }
.kd-ug-owner .fa{ color:var(--nb-brass-text); margin-right:3px; }
.kd-site .kd-ug-owner .kd-dlg-link{ padding:0; border:0; background:none; font-size:13px; font-weight:600; color:var(--nb-link); cursor:pointer; }
.kd-ug-owner .kd-dlg-link[hidden]{ display:none; }
.kd-ug-ownerpick{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; width:100%; }
.kd-ug-ownerpick[hidden]{ display:none; }
.kd-site .kd-ug-ownerpick select{ flex:1 1 220px; height:38px; padding:0 10px; border:1px solid #d9d2c1; border-radius:10px; background:#fff; font-size:14px; }
.kd-site .kd-ug-ownerpick .kd-ug-btn{ height:38px; }
.kd-ug-mgr{ margin:12px 0 0; padding:12px 4px 2px; border-top:1px solid var(--nb-hair); }
.kd-ug-mgr p{ margin:0 0 10px; font-size:12.5px; line-height:1.5; color:var(--nb-muted); }
.kd-ug-mgr p .fa{ color:var(--nb-brass-text); }
.kd-ug-mgr p b{ color:var(--nb-navy-deep); }
.kd-site .kd-ug-mgr .kd-ug-btn{ width:100%; justify-content:center; height:38px; font-size:13.5px; }
.kd-ug-mgrdlg .kd-ug-mcount{ font-size:12.5px; color:var(--nb-muted); }
.kd-dlg .kd-dlg-row.is-super{ cursor:default; }
.kd-dlg .kd-dlg-row.is-super em{ background:var(--nb-brass-tint); color:#5e4710; }
.kd-pb-grp .kd-pb-desc{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-style:normal; font-size:12.5px; color:#3a4148; }

/* User Groups: current group managers shown in the superuser panel */
.kd-ug-mgrlist{ display:flex; flex-wrap:wrap; gap:5px; margin:0 0 10px; }
.kd-ug-mgrlabel{ flex-basis:100%; margin-bottom:1px; font-size:11.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--nb-muted); }
.kd-ug-mgrchip{ padding:3px 10px; border:1px solid #e3cf98; border-radius:12px; background:var(--nb-brass-tint); font-size:12.5px; font-weight:600; color:var(--nb-navy-deep); }
.kd-ug-mgrnone{ font-size:12.5px; font-style:italic; color:var(--nb-muted); }

/* ==========================================================================
   POST FORM (2026-11-27): Wide view rail (Add + Edit post) and the Edit post
   page on the Add post layout -- type badge, read-only sharing, transfer,
   blocks card.
   ========================================================================== */
/* side panel toggle (js/post_form.js): one button, same top-right spot open or collapsed --
   in the corner of the first side card when open, at the top of the rail when collapsed */
.kd-pf-sidetop{ position:absolute; z-index:3; top:12px; right:10px; }
.kd-site .kd-pf-paneltog{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0;
  border:1.5px solid var(--nb-brass); border-radius:11px; background:#fff; color:var(--nb-navy-deep); cursor:pointer;
  box-shadow:0 1px 2px rgba(8,28,51,.06); transition:background .15s ease, box-shadow .15s ease, color .15s ease; }
.kd-site .kd-pf-paneltog:hover{ background:var(--nb-brass-tint); box-shadow:0 0 0 3px rgba(201,169,90,.2); }
.kd-pf-paneltog:focus-visible{ outline:2px solid var(--nb-navy); outline-offset:2px; }
.kd-pf-paneltog svg{ display:block; }
.kd-pt-pane{ fill:var(--nb-brass); transition:fill .15s ease; }            /* open: the right pane is filled */
.kd-pf.is-wide .kd-pt-pane{ fill:transparent; }                           /* collapsed: outline only */
.kd-pf-side > .kd-pf-labels .kd-pf-h{ padding-right:44px; }               /* keep the heading clear of the toggle */
@media (max-width:991px){ .kd-pf-sidetop{ display:none; } }

/* the rail the side column folds into */
.kd-pf-rail{ display:none; }
@media (min-width:992px){
  .kd-pf.is-wide{ grid-template-columns:minmax(0, 1fr) 58px; }
  .kd-pf.is-wide > .kd-pf-side > :not(.kd-pf-rail):not(.kd-pf-actions):not(.kd-pf-sidetop){ display:none; }
  .kd-pf.is-wide{ padding-bottom:84px; }   /* room to scroll the content out from under the floating Save */
  /* the sticky side column is its own stacking layer: lift it (and the floating Save inside it) above the
     calendar / list grid, whose positioned cells otherwise sat on top and took the click (2026-12) */
  .kd-pf.is-wide > .kd-pf-side{ z-index:120; }
  .kd-site .kd-pf.is-wide .kd-pf-actions{ position:fixed; z-index:40; bottom:22px; right:max(15px, calc((100vw - 1170px) / 2 + 15px)); gap:8px; padding:7px;
    border:1px solid var(--nb-hair); border-radius:32px; background:rgba(255,255,255,.97); box-shadow:0 12px 32px rgba(8,28,51,.22), 0 2px 6px rgba(8,28,51,.08); }
  .kd-site .kd-pf.is-wide .kd-pf-publish{ flex:none; height:46px; padding:0 26px; }
  .kd-site .kd-pf.is-wide .kd-pf-cancel{ height:46px; line-height:44px; }
  .kd-pf.is-wide .kd-pf-rail{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:58px 0 8px; background:#fff;
    border:1px solid var(--nb-hair); border-radius:16px; box-shadow:0 1px 2px rgba(8,28,51,.04); }
}
.kd-site .kd-pf-railbtn{ position:relative; display:flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:0; border-radius:12px;
  background:transparent; color:var(--nb-navy); font-size:16px; cursor:pointer; transition:background .15s ease, color .15s ease; }
.kd-site .kd-pf-railbtn:hover{ background:var(--nb-paper); color:var(--nb-navy-deep); }
.kd-pf-railbtn:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:1px; }
.kd-pf-railn{ position:absolute; top:1px; right:0; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--nb-brass-tint); border:1px solid #e3cf98;
  font-family:var(--nb-sans); font-size:10.5px; font-style:normal; font-weight:700; line-height:15px; color:var(--nb-brass-text); text-align:center; }
.kd-pf-railn:empty{ display:none; }
.kd-pf-railn .fa{ font-size:9px; }
@keyframes kdPfFlash{ 0%{ box-shadow:0 0 0 0 rgba(201,169,90,0); } 25%{ box-shadow:0 0 0 4px rgba(201,169,90,.45); } 100%{ box-shadow:0 0 0 0 rgba(201,169,90,0); } }
.kd-pf-card.is-flash{ animation:kdPfFlash 1.4s ease; }

/* Edit post: the type as a badge; "Change type" opens the tiles */
.kd-pf-typenow{ display:flex; align-items:center; gap:12px; }
.kd-pf-typenow > .fa{ display:flex; align-items:center; justify-content:center; flex:none; width:38px; height:38px; border-radius:10px; background:var(--nb-navy-deep); color:var(--nb-brass-light); font-size:17px; }
.kd-pf-typenow b{ display:block; font-size:16px; color:var(--nb-navy-deep); }
.kd-pf-typenow small{ display:block; font-size:12.5px; color:var(--nb-muted); }
.kd-site .kd-pf-typechange{ margin-left:auto; height:32px; padding:0 13px; border:1px solid #d9d2c1; border-radius:16px; background:#fff; font-size:13px; font-weight:600; color:var(--nb-navy-deep); }
.kd-site .kd-pf-typechange:hover{ border-color:var(--nb-brass); }
.kd-pf-typechange .fa{ color:var(--nb-brass-text); }
.kd-site .kd-pf-typecard.is-locked{ padding-top:16px; padding-bottom:16px; }
.kd-site .kd-pf-typecard.is-locked .kd-pf-h{ margin-bottom:10px; font-size:16px; }
.kd-pf-types[hidden], .kd-pf-typenow[hidden]{ display:none; }

/* read-only sharing (a co-owner editing) */
.kd-pf-ro{ display:grid; grid-template-columns:auto 1fr; gap:8px 12px; margin:0 0 10px; font-size:13.5px; }
.kd-pf-ro dt{ font-weight:700; color:var(--nb-navy-deep); white-space:nowrap; }
.kd-pf-ro dt .fa{ width:15px; color:var(--nb-brass-text); }
.kd-pf-ro dd{ margin:0; color:var(--nb-ink); }
.kd-pf-ro dd span{ color:var(--nb-muted); }
.kd-pf-ronote{ margin:0; }

/* transfer ownership (Edit post, owner only) */
.kd-pf-transfer{ margin:16px 0 0; padding-top:14px; border-top:1px solid var(--nb-hair); }
.kd-site .kd-pf .kd-pf-transfer select.form-control{ height:40px; border:1px solid #d9d2c1; border-radius:10px; font-size:14px; }
.kd-pf-transfer .kd-pf-help{ margin:6px 0 0; }

/* Edit post: list import box has a wrapper the page's script toggles */
.kd-pf-edit #post_list_file_content{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; flex:1 1 100%; }
.kd-pf-edit .kd-pf-label small{ font-weight:600; color:var(--nb-muted); }

/* card header link button ("Add block") */
.kd-site .kd-pf .kd-pf-hbtn{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px; border-radius:16px; background:var(--nb-navy-deep);
  font-family:var(--nb-sans); font-size:13px; font-weight:600; color:var(--nb-cream); text-decoration:none; }
.kd-site .kd-pf .kd-pf-hbtn:hover, .kd-site .kd-pf .kd-pf-hbtn:focus{ background:var(--nb-navy); color:var(--nb-cream); }
.kd-pf-hbtn .fa{ width:auto; font-size:12px; color:var(--nb-brass-light); }

/* blocks */
.kd-pf-blocks .kd-pf-help{ margin:-4px 0 12px; }
.kd-pf-blocks .kd-blk-empty{ margin:0; padding:16px; border:1px dashed #d9cfb6; border-radius:12px; background:var(--nb-paper); text-align:center; }
.kd-pf-blocks .panel-group{ margin:0; }
.kd-pf-blocks #sortable{ margin:0; padding:0; list-style:none; }
.kd-site .kd-pf-blocks #sortable li.sortabledata{ position:relative; margin:0 0 10px; padding:0 0 0 28px; border:0; background:none; }
.kd-pf-blocks #sortable li.sortabledata:last-child{ margin-bottom:0; }
.kd-blk-grip{ position:absolute; left:4px; top:14px; display:flex; gap:1px; color:#b9ae94; font-size:14px; cursor:grab; }
.kd-pf-blocks #sortable li:hover .kd-blk-grip{ color:var(--nb-brass-text); }
.kd-site .kd-pf-blocks .panel-default{ margin:0; border:1px solid var(--nb-hair); border-radius:12px; box-shadow:none; overflow:hidden; }
.kd-site .kd-pf-blocks .panel-default > .panel-heading{ padding:8px 10px; border:0; background:#fff; }
.kd-site .kd-pf-blocks .panel-default.active > .panel-heading{ background:var(--nb-paper); }
.kd-pf-blocks .panel-title{ display:flex; align-items:center; gap:10px; margin:0; font-family:var(--nb-sans); }
.kd-site .kd-pf-blocks .kd-blk-title{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; color:var(--nb-navy-deep); text-decoration:none; }
.kd-blk-title > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:700; }
.kd-blk-title > small{ flex:none; padding:2px 8px; border-radius:10px; background:var(--nb-paper); border:1px solid var(--nb-hair); font-size:11.5px; font-weight:600; color:var(--nb-muted); }
.kd-site .kd-pf-blocks .kd-blk-tog{ flex:none; width:28px; height:28px; padding:0; border:1px solid #d9d2c1; border-radius:50%; background:#fff; font-size:16px; font-weight:700; line-height:1; color:var(--nb-navy-deep); }
.kd-pf-blocks .panel-default.active .kd-blk-tog{ background:var(--nb-navy-deep); border-color:var(--nb-navy-deep); color:var(--nb-cream); }
.kd-blk-acts{ flex:none; display:flex; gap:6px; }
.kd-site .kd-pf-blocks .kd-blk-act{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid #d9d2c1; border-radius:50%; background:#fff; color:var(--nb-navy); font-size:14px; }
.kd-site .kd-pf-blocks .kd-blk-act:hover{ border-color:var(--nb-brass); color:var(--nb-navy-deep); }
.kd-site .kd-pf-blocks .kd-blk-act.is-danger{ color:#9b3b2f; }
.kd-site .kd-pf-blocks .kd-blk-act.is-danger:hover{ border-color:#d7a59c; background:#fbefec; }
.kd-pf-blocks .panel-body{ border-top:1px solid var(--nb-hair) !important; }
.kd-pf-ronote .fa{ color:var(--nb-brass-text); }

/* Add a block: "Part of" card -- the post the block goes into */
.kd-site .kd-pf-parentlink{ display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--nb-hair); border-radius:12px; background:var(--nb-paper);
  color:var(--nb-navy-deep); text-decoration:none; transition:border-color .15s ease, background .15s ease; }
.kd-site .kd-pf-parentlink:hover, .kd-site .kd-pf-parentlink:focus{ border-color:var(--nb-brass); background:#fbf8f1; color:var(--nb-navy-deep); text-decoration:none; }
.kd-pf-parentlink > .fa:first-child{ flex:none; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px;
  background:var(--nb-navy-deep); color:var(--nb-brass-light); font-size:16px; }
.kd-pf-parentlink > span{ flex:1; min-width:0; }
.kd-pf-parentlink b{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; }
.kd-pf-parentlink small{ display:block; font-size:12.5px; color:var(--nb-muted); }
.kd-pf-parentgo{ flex:none; color:var(--nb-brass-text); font-size:13px; }
.kd-pf-parentnote{ margin:10px 0 0; }

/* ==========================================================================
   MANAGE LABELS (2026-11-30): views/dashboard/manage_label.php + js/label_manager.js
   ========================================================================== */
.kd-lm-page .kd-form-head-row{ flex-wrap:nowrap; }
.kd-site .kd-lm-new{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 18px; border:0; border-radius:20px; background:var(--nb-brass);
  font-family:var(--nb-sans); font-size:14.5px; font-weight:700; color:var(--nb-midnight, #081c33); box-shadow:0 6px 16px rgba(201,169,90,.3); white-space:nowrap; cursor:pointer; }
.kd-site .kd-lm-new:hover{ background:var(--nb-brass-light); }
.kd-lm-new:focus-visible{ outline:2px solid var(--nb-cream); outline-offset:2px; }

.kd-lm-card{ padding:18px 20px 14px; }
.kd-lm-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.kd-lm-search{ flex:1 1 280px; max-width:440px; }
.kd-lm-search input[type=search]::-webkit-search-cancel-button{ cursor:pointer; }
.kd-lm-seg{ display:inline-flex; padding:3px; border:1px solid #d9d2c1; border-radius:12px; background:var(--nb-paper); }
.kd-site .kd-lm-seg button{ height:34px; padding:0 14px; border:0; border-radius:9px; background:transparent; font-family:var(--nb-sans); font-size:13.5px; font-weight:600; color:var(--nb-muted); cursor:pointer; }
.kd-lm-seg button b{ margin-left:4px; font-weight:700; color:var(--nb-brass-text); }
.kd-site .kd-lm-seg button[aria-pressed="true"]{ background:#fff; color:var(--nb-navy-deep); box-shadow:0 1px 3px rgba(8,28,51,.12); }
.kd-site .kd-lm-expand{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 14px; border:1px solid #d9d2c1; border-radius:18px; background:#fff;
  font-family:var(--nb-sans); font-size:13.5px; font-weight:600; color:var(--nb-navy-deep); cursor:pointer; }
.kd-site .kd-lm-expand:hover{ border-color:var(--nb-brass); }
.kd-lm-expand .fa{ color:var(--nb-brass-text); }
.kd-lm-seg button:focus-visible, .kd-lm-expand:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }
.kd-lm-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; margin:12px 2px 6px; font-size:12.5px; color:var(--nb-muted); }
.kd-lm-legend .fa{ width:14px; color:var(--nb-brass-text); }

/* tree */
.kd-lm-tree{ margin-top:6px; border-top:1px solid var(--nb-hair); }
.kd-lm-list{ margin:0; padding:0; list-style:none; }
.kd-lm-kids{ position:relative; margin-left:21px; padding-left:12px; border-left:1px dashed #ddd3bb; }
.kd-lm-kids[hidden]{ display:none; }
.kd-lm-row{ display:flex; align-items:center; gap:8px; min-height:42px; padding:4px 6px 4px 2px; border-bottom:1px solid #f1ece0; border-radius:8px; }
.kd-lm-row:hover, .kd-lm-row:focus-within{ background:#fbf8f1; }
.kd-site .kd-lm-tog{ flex:none; display:flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; border:0; border-radius:7px; background:transparent;
  color:var(--nb-navy); font-size:17px; cursor:pointer; }
.kd-site .kd-lm-tog:hover{ background:var(--nb-brass-tint); }
.kd-lm-tog .fa{ transition:transform .15s ease; }
.kd-lm-node.is-open > .kd-lm-row .kd-lm-tog .fa{ transform:rotate(90deg); }
.kd-lm-tog.is-leaf{ cursor:default; }
.kd-lm-ico{ flex:none; width:16px; color:var(--nb-brass-text); font-size:14px; }
.kd-lm-node.has-kids > .kd-lm-row .kd-lm-ico, .kd-lm-node.has-kids > .kd-lm-row .kd-lm-name{ cursor:pointer; }
.kd-lm-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; font-weight:600; color:var(--nb-navy-deep); }
.kd-lm-name mark{ padding:0 1px; border-radius:3px; background:#f4e3b0; color:inherit; }
.kd-lm-count{ flex:none; min-width:22px; padding:1px 7px; border-radius:10px; background:var(--nb-paper); border:1px solid var(--nb-hair); font-size:11.5px; font-weight:700; color:var(--nb-muted); text-align:center; }
.kd-lm-vis{ flex:none; color:#8a6d1f; font-size:13px; }
.kd-lm-by{ flex:none; margin-left:auto; padding-left:10px; font-size:12.5px; color:var(--nb-muted); white-space:nowrap; }
.kd-lm-node[data-mine="1"] > .kd-lm-row .kd-lm-by{ color:var(--nb-brass-text); font-weight:600; }
.kd-lm-acts{ flex:none; display:flex; justify-content:flex-end; gap:4px; width:132px; opacity:0; transition:opacity .12s ease; }   /* fixed width: creator names line up */
.kd-lm-row:hover .kd-lm-acts, .kd-lm-row:focus-within .kd-lm-acts{ opacity:1; }
@media (hover:none){ .kd-lm-acts{ opacity:1; } }
.kd-site .kd-lm-act{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:1px solid #d9d2c1; border-radius:8px; background:#fff;
  color:var(--nb-navy); font-size:13px; cursor:pointer; }
.kd-site .kd-lm-act:hover{ border-color:var(--nb-brass); color:var(--nb-navy-deep); background:var(--nb-brass-tint); }
.kd-site .kd-lm-act.is-danger{ color:#9b3b2f; }
.kd-site .kd-lm-act.is-danger:hover{ border-color:#d7a59c; background:#fbefec; }
.kd-site .kd-lm-act[disabled]{ opacity:.4; cursor:not-allowed; background:#fff; border-color:#e6dfcf; }
.kd-lm-act:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:1px; }
/* search / Mine: the labels a match sits in stay visible, greyed */
.kd-lm-node.is-path > .kd-lm-row .kd-lm-name{ color:var(--nb-muted); font-weight:500; }
.kd-lm-node.is-path > .kd-lm-row .kd-lm-acts, .kd-lm-node.is-path > .kd-lm-row .kd-lm-by{ visibility:hidden; }
.kd-lm-empty{ margin:14px 0 4px; padding:18px; border:1px dashed #d9cfb6; border-radius:12px; background:var(--nb-paper); text-align:center; color:var(--nb-muted); font-size:14px; }
.kd-lm-empty[hidden]{ display:none; }
@media (max-width:767px){
  .kd-lm-by{ display:none; }
  .kd-lm-expand{ margin-left:0; }
}

/* merge popup */
.kd-mg-what{ margin:14px 0 0; padding:12px 14px; border:1px solid var(--nb-hair); border-radius:12px; background:var(--nb-paper); font-size:13.5px; color:var(--nb-ink); }
.kd-mg-what[hidden]{ display:none; }
.kd-mg-what p{ margin:0 0 6px; }
.kd-mg-what p:last-child{ margin-bottom:0; }
.kd-mg-what .fa{ width:16px; color:var(--nb-brass-text); }
.kd-mg-what .is-warn, .kd-mg-what .is-warn .fa{ color:#9b3b2f; }
.kd-site .kd-adv .kd-adv-go.is-danger{ background:#9b3b2f; color:#fff; }
.kd-site .kd-adv .kd-adv-go.is-danger:hover, .kd-site .kd-adv .kd-adv-go.is-danger:focus{ background:#b2463a; color:#fff; }
.kd-site .kd-adv .kd-adv-go[disabled]{ opacity:.5; cursor:not-allowed; }

/* merge popup: the two labels have different "who can see" lists */
.kd-mg-what #mg_vis.is-diff{ margin:8px -6px; padding:8px 10px; border-radius:9px; background:#fdf3dc; border:1px solid #ecd49a; color:#6b4a00; font-weight:600; }
.kd-mg-what #mg_vis.is-diff .fa{ color:#b07a12; }

/* ==========================================================================
   POST PAGE BLOCKS (2026-11-30): views/post/post_details.php
   "Blocks N" heading + Expand all, one row per block (chevron, type icon,
   title + short description, type tag, Edit + Delete icons), open body with a
   brass rule. Replaces the round +/edit/delete buttons.
   ========================================================================== */
.kd-site .kd-bk-head{ display:flex; align-items:center; gap:10px; margin:34px 0 14px; padding-top:22px; border-top:1px solid #eee8dc; }
.kd-site .kd-bk-head h2{ margin:0; font:700 21px/1.2 var(--nb-serif); color:var(--nb-navy-deep); }
.kd-site .kd-bk-head h2 b{ margin-left:6px; padding:1px 9px; border-radius:11px; background:var(--nb-brass-tint); color:#5e4710; font:700 13px/1.6 var(--nb-sans); vertical-align:3px; }
.kd-site .kd-bk-all{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border:1px solid var(--nb-navy-deep); border-radius:16px; background:var(--nb-navy-deep); color:#fff; font:600 13.5px/1.3 var(--nb-sans); box-shadow:0 4px 12px rgba(8,28,51,.14); cursor:pointer; }
.kd-site .kd-bk-all:hover, .kd-site .kd-bk-all:focus{ background:var(--nb-navy); border-color:var(--nb-navy); }
.kd-site .kd-bk-all .fa{ color:var(--nb-brass-light); }

.kd-site .kd-bk .panel-group{ margin-bottom:0; }
.kd-site .kd-bk .panel.kd-bk-item{ overflow:visible; margin:0 0 10px; border:1px solid var(--nb-hair); border-radius:14px; background:#fff; box-shadow:none; transition:box-shadow .15s; }
.kd-site .kd-bk .panel.kd-bk-item:hover{ box-shadow:0 2px 10px rgba(8,28,51,.07); }
.kd-site .kd-bk .panel.kd-bk-item + .panel{ margin-top:0; }
.kd-bk-row{ display:flex; align-items:center; gap:10px; padding:10px 14px 10px 12px; }
.kd-site a.kd-bk-tog{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:2px 0; color:var(--nb-navy-deep); text-decoration:none; }
.kd-site a.kd-bk-tog:hover, .kd-site a.kd-bk-tog:focus{ color:var(--nb-navy-deep); text-decoration:none; }
.kd-site a.kd-bk-tog:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:4px; border-radius:8px; }
.kd-bk-chev{ flex:none; width:22px; text-align:center; color:var(--nb-muted); transition:transform .15s; }
.kd-bk-tog[aria-expanded="true"] .kd-bk-chev{ transform:rotate(90deg); color:var(--nb-navy-deep); }
.kd-bk-ico{ flex:none; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--nb-navy-deep); color:var(--nb-brass-light); font-size:16px; }
.kd-bk-txt{ flex:1; min-width:0; }
.kd-site .kd-bk-name{ display:block; font-family:var(--nb-serif); font-weight:700; font-size:16.5px; line-height:1.3; color:var(--nb-navy-deep); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-site .kd-bk-txt small{ display:block; margin-top:2px; font-family:var(--nb-sans); font-weight:400; font-size:13.5px; line-height:1.4; color:var(--nb-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-bk-type{ flex:none; padding:2px 9px; border:1px solid var(--nb-hair); border-radius:10px; background:var(--nb-paper); font:600 12px/1.5 var(--nb-sans); color:var(--nb-muted); }
.kd-bk-acts{ flex:none; display:flex; gap:6px; position:relative; }
.kd-site .kd-bk-act{ width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1px solid #d9d2c1; border-radius:50%; background:#fff; color:var(--nb-navy); font-size:14px; text-decoration:none; cursor:pointer; }
.kd-site .kd-bk-act:hover, .kd-site .kd-bk-act:focus{ border-color:var(--nb-brass); background:var(--nb-paper); color:var(--nb-navy-deep); text-decoration:none; }
.kd-site .kd-bk-act.is-danger:hover, .kd-site .kd-bk-act.is-danger:focus{ border-color:#d7a59c; background:#fbefec; color:#9b3b2f; }
.kd-site .kd-bk-act .fa{ color:inherit; }
.kd-site .kd-bk .panel-body.kd-bk-body{ margin:0 14px 14px 46px; padding:4px 0 2px 18px; border-top:0; border-left:3px solid var(--nb-brass); min-height:0; overflow-x:auto; }   /* (title is a span: bootstrap.min.css forces a font on <b> with !important); wide timelines/maps scroll here */
.kd-bk-body > .container-fluid{ padding-left:0; padding-right:0; }
@media (max-width: 767px){
  .kd-bk-type{ display:none; }
  .kd-site .kd-bk .panel-body.kd-bk-body{ margin-left:14px; }
}

/* ==========================================================================
   TRANSFER OWNERSHIP POPUP (2026-11-30): views/dashboard/transfer_post.php
   Post card + searchable one-choice person list + "what happens" panel.
   ========================================================================== */
.kd-tr-pick{ border:1px solid var(--nb-hair); border-radius:12px; background:#fff; overflow:hidden; }
.kd-site .kd-tr-pick .kd-tr-search{ border:0; border-bottom:1px solid #eee8dc; border-radius:0; }
.kd-tr-list{ list-style:none; margin:0; padding:4px; max-height:252px; overflow-y:auto; }
.kd-tr-list > li[hidden]{ display:none; }
.kd-site .kd-tr-opt{ display:flex; align-items:center; gap:10px; margin:0; padding:7px 10px; border-radius:9px; font-weight:400; cursor:pointer; }
.kd-tr-opt:hover{ background:var(--nb-paper); }
.kd-tr-opt.is-on{ background:var(--nb-brass-tint); }
.kd-tr-opt input{ flex:none; margin:0; accent-color:var(--nb-navy-deep); }
.kd-tr-av{ flex:none; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--nb-navy-deep); color:var(--nb-brass-light); font:700 11.5px/1 var(--nb-sans); letter-spacing:.02em; }
.kd-tr-who{ flex:1; min-width:0; }
.kd-tr-who b{ display:block; font-family:var(--nb-sans) !important; font-size:14px; font-weight:600; color:var(--nb-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-tr-who small{ display:block; font-size:12.5px; color:var(--nb-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-tr-tag{ flex:none; padding:1px 8px; border:1px solid var(--nb-hair); border-radius:10px; background:var(--nb-paper); font-size:11.5px; font-weight:600; color:var(--nb-muted); }
.kd-tr-none{ margin:0; padding:14px; text-align:center; font-size:13.5px; color:var(--nb-muted); }
.kd-tr-none[hidden]{ display:none; }
.kd-site #tr_what b{ font-family:var(--nb-sans) !important; }
.modal .modal-dialog.kd-tr-dialog{ width:520px; max-width:calc(100vw - 24px); }
.kd-tr-dialog > .modal-content{ width:100%; }   /* the shared popup frame shrinks to its content; the list must not jump width while searching */
.kd-bk-num{ color:var(--nb-brass-text); font-weight:700; }

/* edit lock popup (js/kd_edit_lock.js) */
.kd-lock-modal #kd_lock_msg{ font-size:15px; line-height:1.55; color:var(--nb-ink, #1f2937); margin:0 0 18px; }
.kd-lock-modal .kd-lock-count{ font-weight:700; color:var(--nb-navy-deep); font-variant-numeric:tabular-nums; }
.kd-lock-modal .kd-lock-btns{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

/* post page: "X is editing this post right now" (views/post/post_details.php) */
.kd-editing-note{
  display:flex; align-items:center; gap:10px; margin:8px 0 4px; padding:10px 14px;
  border:1px solid #c9d6e8; border-left:4px solid var(--nb-navy); border-radius:10px;
  background:#eef3f9; color:var(--nb-navy-deep); font-size:14px;
}
.kd-editing-note .fa{ color:var(--nb-navy); }
.kd-editing-note.kd-editing-done{ border-left-color:var(--nb-brass); background:#f8f4e8; }
.kd-editing-note a{ font-weight:600; text-decoration:underline; }
.kd-h-item.is-delete .kd-h-dot{ border-color:#e5b8b3; color:#a23b31; background:#fbeeec; }

/* ---- Sort control (js/kd_sort.js, 2026-12-01): "Sort · Newest" button + menu over the
   page's own select, which stays hidden but drives the reload. Phones keep the select. ---- */
.kd-sort{ position:relative; display:none; }
@media (min-width:768px){
  .kd-band-tools #sorting.kd-sort-on .control-label,
  .kd-band-tools #sorting.kd-sort-on select[name="sort_posts"]{ display:none; }
  .kd-band-tools #sorting.kd-sort-on .kd-sort{ display:block; }
}
.kd-sort-btn{
  display:inline-flex; align-items:center; gap:9px; height:40px; padding:0 14px 0 13px;
  background:var(--nb-navy); color:#fff; border:1px solid #2a4a74; border-radius:10px;
  font-family:var(--nb-sans); font-size:15px; line-height:1; white-space:nowrap; cursor:pointer;
  transition:border-color .15s, background .15s;
}
.kd-sort-btn:hover{ border-color:#3d6494; background:#173a63; }
.kd-sort-btn:focus-visible,
.kd-sort.is-open .kd-sort-btn{ outline:none; border-color:var(--nb-brass); box-shadow:0 0 0 3px rgba(201,169,90,.25); }
.kd-sort-ico{ color:var(--nb-brass); font-size:14px; }
.kd-sort-k{ color:#9fb0c8; font-weight:500; }
.kd-sort-k::after{ content:"\00b7"; margin-left:8px; color:#5f7aa0; }
.kd-sort-v{ font-weight:600; }
.kd-sort-car{ color:#9fb0c8; font-size:16px; transition:transform .15s; }
.kd-sort.is-open .kd-sort-car{ transform:rotate(180deg); }
.kd-sort-btn.is-busy .kd-sort-ico{ animation:kd-sort-pulse .8s ease-in-out infinite alternate; }
@keyframes kd-sort-pulse{ from{ opacity:1; } to{ opacity:.35; } }

.kd-sort-menu{
  position:absolute; right:0; top:calc(100% + 6px); z-index:1040; min-width:250px; padding:6px;
  background:#fff; border:1px solid var(--nb-hair); border-radius:12px;
  box-shadow:0 12px 32px rgba(10,28,52,.22), 0 2px 6px rgba(10,28,52,.08);
}
.kd-sort-item{
  display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px;
  background:none; border:0; border-radius:8px; text-align:left; cursor:pointer;
  font-family:var(--nb-sans); font-size:14.5px; color:var(--nb-ink, #1f2a37);
}
.kd-sort-item:hover,
.kd-sort-item:focus-visible{ outline:none; background:#eef3f9; }
.kd-sort-iico{ width:16px; text-align:center; color:#7d8ea5; }
.kd-sort-itx{ flex:1; }
.kd-sort-ck{ color:var(--nb-brass-text); visibility:hidden; }
.kd-sort-item.is-on{ font-weight:600; color:var(--nb-navy-deep); }
.kd-sort-item.is-on .kd-sort-iico{ color:var(--nb-brass-text); }
.kd-sort-item.is-on .kd-sort-ck{ visibility:visible; }
.kd-sort-sep{ height:1px; margin:5px 4px; background:var(--nb-hair); }
.kd-sort-rev{ color:#4a5b72; font-size:14px; }
.kd-sort-rev:disabled{ opacity:.45; cursor:default; background:none; }

/* ---- Notifications (2026-12): bell menu + page, rows from kd_notif_item() -------- */
#header .bell-circle.kd-zero{ display:none; }
.kd-site .dropdown-menu.kd-nt-menu{ width:380px; max-width:calc(100vw - 24px); padding:0; overflow:hidden; border-radius:14px; border:1px solid var(--nb-hair); box-shadow:0 12px 32px rgba(8,28,51,.18); }
.kd-nt-menu .kd-nt-head{ padding:12px 16px 10px; font-family:var(--nb-serif); font-size:16px; font-weight:700; color:var(--nb-navy-deep); border-bottom:1px solid var(--nb-hair); }
.kd-nt-menu .kd-nt-empty{ padding:22px 16px; text-align:center; color:var(--nb-muted); font-size:14px; }
.kd-nt-menu .kd-nt-empty .fa{ margin-right:6px; }
.kd-site .kd-nt-menu > li.kd-nt-all > a{ display:block; padding:11px 16px; text-align:center; font-weight:600; color:var(--nb-link); background:var(--nb-paper); border-top:1px solid var(--nb-hair); }
.kd-site .kd-nt-menu > li.kd-nt-all > a:hover{ background:#efe9dc; color:var(--nb-navy-deep); }
.kd-nt{ list-style:none; border-bottom:1px solid var(--nb-hair); }
.kd-nt:last-child{ border-bottom:0; }
.kd-site .kd-nt > .kd-nt-row{ position:relative; display:flex; align-items:flex-start; gap:12px; padding:12px 34px 12px 16px; white-space:normal; color:var(--nb-ink); text-decoration:none; font-family:var(--nb-sans); }
.kd-site .kd-nt > a.kd-nt-row:hover, .kd-site .kd-nt > a.kd-nt-row:focus{ background:#faf7f0; color:var(--nb-ink); }
.kd-nt.is-unread > .kd-nt-row{ background:#fbf6e8; }
.kd-nt-av{ flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; background:var(--nb-navy); }
.kd-nt-av--1{ background:#2c5d8f; } .kd-nt-av--2{ background:#6b5a2e; } .kd-nt-av--3{ background:#3f6e63; }
.kd-nt-av--sys{ background:var(--nb-brass-tint); color:var(--nb-brass-text); }
.kd-nt-body{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.kd-nt-line{ font-size:14px; line-height:1.4; color:#3a424c; }
.kd-nt-who{ color:var(--nb-navy-deep); font-weight:700; }
.kd-nt-su{ color:var(--nb-brass-text); font-size:11px; }
.kd-nt-subj{ font-size:13px; color:var(--nb-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kd-nt-no{ display:inline-block; margin-right:6px; padding:0 6px; border-radius:6px; background:var(--nb-paper); border:1px solid var(--nb-hair); font-size:11px; font-weight:700; color:var(--nb-navy); }
.kd-nt-time{ font-size:12px; color:#8a919a; }
.kd-nt-dot{ position:absolute; right:14px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:var(--nb-brass); }
/* page */
.kd-site #blog.kd-ntpage{ margin-top:0; font-family:var(--nb-sans); }
.kd-ntpage .kd-band-head{ max-width:860px; margin-left:auto; margin-right:auto; }
.kd-ntpage .kd-band-sub{ margin:8px 0 0; font-size:15px; color:var(--nb-on-navy); }
.kd-nt-card{ max-width:860px; margin:0 auto 48px; background:#fff; border:1px solid var(--nb-hair); border-radius:16px; box-shadow:0 1px 2px rgba(8,28,51,.04), 0 8px 24px rgba(8,28,51,.06); overflow:hidden; }
.kd-nt-list{ margin:0; padding:0; }
.kd-ntpage .kd-nt > .kd-nt-row{ padding:16px 44px 16px 22px; gap:14px; }
.kd-ntpage .kd-nt-av{ flex-basis:40px; width:40px; height:40px; font-size:14px; }
.kd-ntpage .kd-nt-line{ font-size:15px; }
.kd-ntpage .kd-nt-dot{ right:22px; }
.kd-nt-more{ padding:14px; text-align:center; border-top:1px solid var(--nb-hair); background:var(--nb-paper); }
.kd-nt-morebtn{ height:38px; padding:0 22px; border:1px solid var(--nb-hair); border-radius:10px; background:#fff; color:var(--nb-navy-deep); font-weight:600; cursor:pointer; }
.kd-nt-morebtn:hover{ border-color:var(--nb-brass); }
.kd-nt-morebtn:disabled{ opacity:.6; cursor:default; }
.kd-nt-none{ padding:48px 24px; text-align:center; }
.kd-nt-none .kd-empty-art{ display:block; margin:0 auto 16px; }
.kd-nt-none h2{ margin:0 0 6px; font-family:var(--nb-serif); font-size:22px; color:var(--nb-navy-deep); }
.kd-nt-none p{ margin:0; color:var(--nb-muted); }
@media (max-width:767px){
  .kd-ntpage .kd-nt > .kd-nt-row{ padding:14px 36px 14px 14px; }
}
/* bell menu: beat the old header dropdown rules (blue hover, 8px 15px padding) */
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt > a.kd-nt-row{ padding:12px 34px 12px 16px; color:var(--nb-ink); background:transparent; border-radius:0; }
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt.is-unread > a.kd-nt-row{ background:#fbf6e8; }
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt:hover > a.kd-nt-row,
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt > a.kd-nt-row:focus{ background:#f4efe3; color:var(--nb-ink); }
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt-all > a{ padding:11px 16px; color:var(--nb-link); background:var(--nb-paper); border-radius:0; }
#header .navbar-nav .dropdown-menu.kd-nt-menu > li.kd-nt-all:hover > a{ background:#efe9dc; color:var(--nb-navy-deep); }

/* ---- Post card (2026-12): views/dashboard/post_card.php, shared by every post list ---- */
.kd-card-hasblocks{ margin-left:10px; }
.kd-card-hasblocks .fa{ font-size:16px; color:var(--nb-brass-text); }
.kd-card-blocks{ list-style:none; margin:4px 0 10px; padding:0; }
.kd-card-blocks li{ display:flex; align-items:center; gap:8px; padding:3px 0; color:#222; font-size:14px; }
.kd-card-blocks li .fa{ font-size:15px; color:var(--nb-brass-text); }
.kd-card-blocks li.is-hit, .kd-card-blocks li.is-hit a{ color:var(--nb-link); font-weight:600; }
.kd-card-coown{ display:block; margin-top:2px; }
.blog-item.kd-card.is-restricted{ opacity:.5; pointer-events:none; background:#ddd; }
.kd-site a.tab-btn{ display:inline-block; text-decoration:none; }
.kd-feed a.tab-btn{ color:#444b54; }
.kd-feed a.tab-btn:hover, .kd-feed a.tab-btn:focus{ color:var(--nb-navy-deep); text-decoration:none; }
.kd-feed .exchange-icon:focus-visible{ outline:2px solid var(--nb-brass); outline-offset:2px; }

/* ---- Super User menu (2026-12): a plain list, same card as the bell menu ---- */
.kd-site .dropdown-menu.kd-su-menu{ width:260px; }
.kd-su-menu .kd-su-hint{ display:block; margin-top:2px; font-family:var(--nb-sans); font-size:12px; font-weight:400; color:var(--nb-muted); }
.kd-su-menu .kd-su-row{ display:flex; align-items:center; gap:10px; padding:9px 16px; border-bottom:1px solid var(--nb-hair); font-size:14px; color:var(--nb-ink); }
.kd-su-menu .kd-su-row:last-child{ border-bottom:0; }
.kd-su-menu .kd-su-row .kd-nt-av{ flex-basis:28px; width:28px; height:28px; font-size:11px; }

/* ---- Work in progress flag (2026-12): post band + post cards ---- */
.kd-wip{
  display:inline-flex; align-items:center; gap:6px; vertical-align:middle;
  margin-left:10px; padding:2px 10px; border-radius:12px;
  background:var(--nb-brass-tint); color:var(--nb-brass-text); border:1px dashed var(--nb-brass);
  font-family:var(--nb-sans); font-size:13px; font-weight:700; line-height:20px; letter-spacing:0; white-space:nowrap;
}
.kd-band .kd-wip{ margin-top:-4px; }

/* ---- Suggested additions (2026-12): post page, above comments ---- */
.kd-sugg{ margin:24px 0; padding:18px 20px; background:#fff; border:1px solid var(--nb-hair); border-radius:14px; }
.kd-sugg-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.kd-sugg-head h2{ margin:0; font-family:var(--nb-serif); font-size:22px; color:var(--nb-ink); }
.kd-sugg-head h2 .fa{ color:var(--nb-brass-text); }
.kd-sugg-head h2 b{ display:inline-block; min-width:24px; padding:0 8px; margin-left:4px; border-radius:12px; background:var(--nb-brass); color:var(--nb-midnight); font-family:var(--nb-sans); font-size:14px; line-height:22px; text-align:center; vertical-align:middle; }
.kd-sugg-open{ background:var(--nb-navy); color:#fff; border-radius:10px; }
.kd-sugg-open:hover, .kd-sugg-open:focus{ background:var(--nb-midnight); color:#fff; }
.kd-sugg-help{ margin:8px 0 0; color:var(--nb-muted); font-size:15px; }
.kd-sugg-form{ margin-top:12px; }
.kd-sugg-form textarea{ border-radius:10px; }
.kd-sugg-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; }
.kd-sugg-actions .kd-sugg-title{ flex:1 1 220px; max-width:360px; border-radius:10px; }
.kd-sugg-list{ list-style:none; margin:14px 0 0; padding:0; }
.kd-sugg-item{ padding:14px 0; border-top:1px solid var(--nb-hair); }
.kd-sugg-meta{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.kd-sugg-meta small{ color:var(--nb-muted); }
.kd-sugg-wait{ color:var(--nb-brass-text); font-size:13px; font-weight:600; }
.kd-sugg-body{ margin-top:6px; padding:10px 14px; background:var(--nb-paper); border-radius:10px; color:var(--nb-ink); white-space:normal; overflow-wrap:anywhere; }

/* ---- Edit: type changed -> keep the old content? (form_type.php) ---- */
.kd-pf-keepold{ margin:12px 0 4px; padding:12px 14px; border:1px solid var(--nb-brass); border-radius:12px; background:var(--nb-brass-tint); }
.kd-pf-keepold[hidden]{ display:none; }
.kd-pf-keepold legend{ margin:0 0 4px; padding:0; border:0; width:auto; font-family:var(--nb-sans); font-size:15px; font-weight:700; color:var(--nb-ink); }
.kd-pf-keepold p{ margin:0 0 8px; color:var(--nb-muted); font-size:14px; }
.kd-pf-keepold label{ display:flex; align-items:baseline; gap:8px; margin:4px 0; font-weight:400; cursor:pointer; }
.kd-pf-keepold label small{ color:var(--nb-muted); }

/* ---- Calendar event notes (2026-12) ---- */
.kd-cal-noteslbl{ display:block; margin:14px 0 6px; }
.kd-cal-noteslbl small{ font-weight:400; color:var(--nb-muted); }
.kd-cal-notes{ border-radius:10px; resize:vertical; min-height:72px; }
.kd-dlg-msg{ white-space:pre-line; }

/* ---- Image captions (2026-12): post page ---- */
.kd-gfig{ margin:0 0 18px; text-align:center; }
.kd-gfig img{ display:inline-block; }
.kd-gcap{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:8px; color:var(--nb-ink); font-size:15px; line-height:1.4; }
.kd-gcap.is-empty .kd-gcap-text{ display:none; }
.kd-gcap-edit{ border:0; background:none; padding:2px 6px; color:var(--nb-link); font-size:13px; border-radius:6px; }
.kd-gcap-edit:hover, .kd-gcap-edit:focus{ background:var(--nb-paper); }
.kd-gcap-form{ display:flex; gap:6px; width:100%; }
.kd-gcap-form input{ flex:1; min-width:0; border-radius:8px; }

/* ---- Suggested changes, part 2 (2026-12): target, kind, owner steps, editor pin ---- */
.kd-sugg-row{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.kd-sugg-row label{ margin:0; font-weight:600; }
.kd-sugg-row select{ max-width:420px; border-radius:10px; }
.kd-sugg-kinds{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.kd-sugg-kinds label{ display:inline-flex; align-items:center; gap:6px; margin:0; padding:5px 12px; border:1px solid var(--nb-hair); border-radius:18px; font-weight:500; cursor:pointer; }
.kd-sugg-kinds label:has(input:checked){ border-color:var(--nb-navy); background:var(--nb-paper); }
.kd-sugg-kinds input{ margin:0; }
.kd-sugg-kind{ display:inline-flex; align-items:center; gap:5px; padding:1px 9px; border-radius:12px; background:var(--nb-brass-tint); color:var(--nb-brass-text); font-size:13px; font-weight:600; }
.kd-sugg-sub{ margin-top:8px; }
.kd-sugg-sub input{ flex:1 1 220px; max-width:420px; border-radius:10px; }
.kd-sugg-pin{ border:1px solid var(--nb-brass); background:#fffdf6; }
.kd-sugg-pin .kd-sugg-meta{ margin:0 0 8px; }
.kd-sugg-pin .kd-pf-switch{ margin-top:12px; }

