:root {
  --ivory: #FAF9F5;
  --slate: #141413;
  --clay: #D97757;
  --clay-dark: #BD5F41;
  --border: #E5E2D9;
  --card-bg: #FFFFFF;
  --muted: #6B6A64;
  --green: #2F6D3B;
  --green-bg: #E8F1E9;
  --red: #A23B2E;
  --red-bg: #FBEAE7;
  --amber: #8A5A16;
  --amber-bg: #FBF0DD;
  --slate-bg: #EEEDE7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ivory); color: var(--slate); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 18px; margin-bottom: 14px; }
h3 { font-size: 15px; margin-top: 22px; margin-bottom: 8px; color: var(--clay-dark); border-bottom: 1px solid var(--border); padding-bottom: 4px; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 13.5px; }
code { background: var(--slate-bg); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

#storage-banner {
  display: none;
  background: var(--amber-bg); color: var(--amber);
  text-align: center; font-size: 13px; padding: 8px 16px;
}

.topbar { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-logo { height: 40px; display: block; }
.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; flex: 1; }
.identity-switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-left: auto; }
.identity-switch select { font: inherit; font-size: 12.5px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--ivory); color: var(--slate); }
.topnav a { color: var(--slate); font-weight: 500; }
.nav-badge { display: inline-block; background: var(--clay-dark); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 2px 6px; border-radius: 999px; vertical-align: middle; }
.bell-link { position: relative; display: inline-flex; align-items: center; color: var(--slate); text-decoration: none; padding: 2px; border-radius: 8px; transition: background 0.15s ease, color 0.15s ease; }
.bell-link:hover { background: var(--slate-bg); color: var(--clay-dark); }
.bell-badge { position: absolute; top: -6px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ivory); }
.dropdown { position: relative; }
.dropdown-btn { background: none; border: none; font: inherit; font-weight: 500; color: var(--slate); cursor: pointer; padding: 4px 0; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 240px; padding: 6px; z-index: 30;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; }
.dropdown-menu a:hover { background: var(--slate-bg); text-decoration: none; }

.content { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { margin-bottom: 20px; }
.back-link { font-size: 13px; display: inline-block; margin-bottom: 8px; }

.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { border-radius: 10px; padding: 16px; border: 1px solid var(--border); background: var(--card-bg); }
.stat-num { font-size: 26px; font-weight: 700; font-family: Georgia, serif; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat-amber { background: var(--amber-bg); } .stat-amber .stat-num { color: var(--amber); }
.stat-green { background: var(--green-bg); } .stat-green .stat-num { color: var(--green); }
.stat-red { background: var(--red-bg); } .stat-red .stat-num { color: var(--red); }
.stat-slate { background: var(--slate-bg); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-slate { background: var(--slate-bg); color: var(--slate); }
.pill-teal { background: var(--k-teal-bg); color: var(--k-teal); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: none; }
.table-compact td, .table-compact th { padding: 6px 8px; }
.row-link { cursor: pointer; }
.row-link:hover { background: var(--slate-bg); }

.btn {
  display: inline-block; border: 1px solid var(--border); background: var(--card-bg); color: var(--slate);
  padding: 9px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--slate-bg); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); }
.btn-green { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.btn-amber { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); }
.btn-red { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn-teal { background: var(--k-teal-bg); border-color: var(--k-teal); color: var(--k-teal); }
button.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.form label { display: block; margin: 10px 0 4px; font-size: 13.5px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form input[type=password], .form textarea, .form select {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font: inherit; font-weight: 400; margin-top: 4px; background: var(--ivory);
}
.form-row { display: flex; gap: 16px; margin: 10px 0; flex-wrap: wrap; }
.form-row.two > label { flex: 1; min-width: 220px; }
.checkbox-inline { display: flex !important; align-items: center; gap: 6px; font-weight: 500 !important; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; }
.decision-actions { flex-wrap: wrap; }
.decision-card { border-left: 4px solid var(--border); }
.decision-card-accept { border-left-color: var(--green); }
.decision-card-amber { border-left-color: var(--amber); }
.decision-card-red { border-left-color: var(--red); }
.decision-card-teal { border-left-color: var(--k-teal); }
.decision-card form .form-actions { margin-top: 14px; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-success { background: var(--green-bg); color: var(--green); }

.financier-box { background: var(--k-teal-bg); border: 1px solid var(--k-teal); border-radius: 10px; padding: 14px 16px; }
.info-request-box { border: 1px solid var(--amber); }
.info-request-box h2 { margin-top: 0; }
.info-request-box textarea { background: #fff; }

.axes-fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.axes-fieldset legend { font-weight: 600; font-size: 13.5px; padding: 0 6px; }
.axes-scroll { max-height: 260px; overflow-y: auto; }
.axe-group { margin-bottom: 10px; }
.axe-label { display: block; font-size: 13.5px; margin-bottom: 4px; }
.sous-axes { padding-left: 22px; }
.sous-axe-label { display: block !important; font-weight: 400 !important; font-size: 13px; margin: 2px 0 !important; }
.odd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; }

/* A closed-by-default multi-select "dropdown" for axes + sous-axes. */
.axes-dropdown { border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; background: var(--card-bg); }
.axes-dropdown .axes-scroll { padding: 4px 14px 12px; }
.axes-dropdown-summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 13.5px;
  padding: 11px 14px; display: flex; align-items: center; justify-content: space-between;
}
.axes-dropdown-summary::-webkit-details-marker { display: none; }
.axes-dropdown-summary::after { content: "▾"; color: var(--muted); margin-left: 8px; }
.axes-dropdown[open] .axes-dropdown-summary::after { content: "▴"; }

/* Repeatable single-line rows ("+ Ajouter une ligne"). */
.repeater { margin-top: 4px; }
.repeater-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.repeater-row .repeater-input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font: inherit; font-weight: 400; background: var(--ivory);
}
.repeater-remove {
  border: 1px solid var(--border); background: var(--card-bg); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; flex: 0 0 auto;
}
.repeater-remove:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.repeater-add { margin-top: 2px; }
.field-block { margin: 14px 0; }
.field-label { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: 13.5px; }
.detail-grid .span-2 { grid-column: span 2; }
.detail-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 2px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.drop-zone {
  border: 2px dashed var(--border); border-radius: 10px; padding: 26px; text-align: center;
  color: var(--muted); font-size: 13.5px; margin-top: 8px;
}
.drop-zone.drag-over { border-color: var(--clay); background: #FBEFE9; }
.drop-zone-icon { font-size: 22px; margin-bottom: 6px; }
.link-btn { color: var(--clay-dark); font-weight: 600; cursor: pointer; }
.import-summary { margin-top: 12px; }
.tip-box { margin-top: 14px; background: var(--slate-bg); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.resume-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; }

:root {
  --k-slate: #48546B; --k-slate-bg: #EAECF1;
  --k-slate2: #5B4B8A; --k-slate2-bg: #EEEAF6;
  --k-teal: #0F6E71; --k-teal-bg: #E4F1F0;
  --k-amber: #92650F; --k-amber-bg: #FBF0DD;
  --k-clay: #BD5F41; --k-clay-bg: #FBEFE9;
  --k-green: #2F6D3B; --k-green-bg: #E8F1E9;
  --k-red: #A23B2E; --k-red-bg: #FBEAE7;
}
.kanban-board {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
  padding: 4px 2px 10px; margin-top: 4px;
}
.kanban-col {
  min-width: 0; border: 1px solid var(--border);
  border-top: 4px solid var(--border); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column;
}
.kanban-col-slate { border-top-color: var(--k-slate); background: var(--k-slate-bg); }
.kanban-col-slate2 { border-top-color: var(--k-slate2); background: var(--k-slate2-bg); }
.kanban-col-teal { border-top-color: var(--k-teal); background: var(--k-teal-bg); }
.kanban-col-amber { border-top-color: var(--k-amber); background: var(--k-amber-bg); }
.kanban-col-clay { border-top-color: var(--k-clay); background: var(--k-clay-bg); }
.kanban-col-green { border-top-color: var(--k-green); background: var(--k-green-bg); }
.kanban-col-red { border-top-color: var(--k-red); background: var(--k-red-bg); }

.kanban-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kanban-col-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--slate); }
.kanban-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.kanban-count-slate { background: var(--k-slate); }
.kanban-count-slate2 { background: var(--k-slate2); }
.kanban-count-teal { background: var(--k-teal); }
.kanban-count-amber { background: var(--k-amber); }
.kanban-count-clay { background: var(--k-clay); }
.kanban-count-green { background: var(--k-green); }
.kanban-count-red { background: var(--k-red); }

.kanban-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kanban-card {
  background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--border);
  border-radius: 8px; padding: 9px 10px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.kanban-card:hover { border-color: var(--clay); box-shadow: 0 3px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }
.kanban-card-rejected { border-left-color: var(--k-red); }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.kanban-card-numero { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.kanban-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 7px; }
.kanban-dot-slate { background: var(--k-slate); }
.kanban-dot-slate2 { background: var(--k-slate2); }
.kanban-dot-teal { background: var(--k-teal); }
.kanban-dot-amber { background: var(--k-amber); }
.kanban-dot-clay { background: var(--k-clay); }
.kanban-dot-green { background: var(--k-green); }
.kanban-dot-red { background: var(--k-red); }
.kanban-card-title { font-size: 12.5px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.kanban-pill {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.kanban-pill-slate { background: var(--k-slate-bg); color: var(--k-slate); }
.kanban-pill-slate2 { background: var(--k-slate2-bg); color: var(--k-slate2); }
.kanban-pill-teal { background: var(--k-teal-bg); color: var(--k-teal); }
.kanban-pill-amber { background: var(--k-amber-bg); color: var(--k-amber); }
.kanban-pill-clay { background: var(--k-clay-bg); color: var(--k-clay); }
.kanban-pill-green { background: var(--k-green-bg); color: var(--k-green); }
.kanban-pill-muted { background: var(--slate-bg); color: var(--muted); }
.kanban-pill-red { background: #fff; color: var(--k-red); border: 1px solid var(--k-red); }
.kanban-empty { font-size: 12px; text-align: center; padding: 14px 0; }

.email-card { }
.email-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.email-subject { font-weight: 700; margin-bottom: 8px; }
.email-body { white-space: pre-wrap; font-size: 13.5px; color: #33322E; background: var(--ivory); border-radius: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border); }

@media (max-width: 900px) {
  .kanban-board { display: flex; overflow-x: auto; }
  .kanban-col { flex: 0 0 180px; }
}
@media (max-width: 720px) {
  .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .span-2 { grid-column: span 1; }
  .two-col { grid-template-columns: 1fr; }
  .odd-grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   SharePoint-style theme (matches the school's LFLV-FichesAction site).
   Overrides the original palette: "clay" buttons become SharePoint blue.
   ====================================================================== */
:root {
  --sp-blue: #0f6cbd;
  --sp-blue-dark: #0c5aa0;
  --sp-blue-bg: #ebf3fc;
  --sp-teal: #03787c;
  --sp-teal-dark: #025f62;
  --sp-ring: #1c4e9b;
  --ivory: #faf9f8;
  --border: #e1dfdd;
  --muted: #605e5c;
  --slate: #242424;
  --slate-bg: #f3f2f1;
  --clay: #0f6cbd;
  --clay-dark: #0c5aa0;
}
body { font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background: #f3f2f1; }
h1, h2, h3 { font-family: inherit; }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { color: var(--sp-blue); font-weight: 600; }
a { color: var(--sp-blue); }

/* Suite bar (the blue strip at the very top) */
.suitebar { height: 48px; background: var(--sp-blue); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.suite-waffle { display: inline-flex; opacity: .95; }
.suite-app { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .1px; }
.suite-app:hover { text-decoration: none; opacity: .9; }
.suite-spacer { flex: 1; }
.suite-icon { color: #fff; position: relative; display: inline-flex; padding: 6px; border-radius: 4px; }
.suite-icon:hover { background: rgba(255,255,255,.14); }
.suite-badge { position: absolute; top: 0; right: -2px; background: #d13438; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.suite-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }

/* Site header (tile + title + tabs) */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.site-tile { width: 64px; height: 64px; background: var(--sp-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 400; border-radius: 2px; flex: 0 0 64px; }
.site-tile:hover { text-decoration: none; background: var(--sp-blue-dark); }
.site-head-main { flex: 1; min-width: 260px; }
.site-title { display: block; color: var(--slate); font-size: 24px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.site-title:hover { text-decoration: none; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.site-nav a { color: var(--slate); font-size: 14.5px; padding: 8px 0 12px; border-bottom: 2px solid transparent; }
.site-nav a:hover { text-decoration: none; border-bottom-color: #c8c6c4; }
.site-nav a.active { border-bottom-color: var(--sp-blue); font-weight: 600; }
.site-user { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-top: 6px; }
.site-user-name { margin-right: 4px; }
.nav-badge { background: var(--sp-blue); }

.content { max-width: 1240px; padding: 22px 24px 60px; }
.card { border-radius: 4px; border-color: var(--border); box-shadow: 0 1.6px 3.6px rgba(0,0,0,.08), 0 .3px .9px rgba(0,0,0,.06); }
.btn { border-radius: 4px; border-color: #8a8886; font-weight: 600; }
.btn-clay { background: var(--sp-blue); border-color: var(--sp-blue); color: #fff; }
.btn-clay:hover { background: var(--sp-blue-dark); }
.btn-teal-solid { background: var(--sp-teal); border-color: var(--sp-teal); color: #fff; }
.btn-teal-solid:hover { background: var(--sp-teal-dark); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--slate); font-weight: 500; }
.btn-ghost:hover { background: var(--slate-bg); }
.btn-ms { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #8a8886; color: #242424; padding: 10px 18px; font-size: 15px; border-radius: 4px; font-weight: 600; }
.btn-ms:hover { background: #f3f2f1; text-decoration: none; }
.form input[type=text], .form input[type=email], .form input[type=password], .form textarea, .form select, .repeater-row .repeater-input { border-radius: 4px; border-color: #8a8886; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--sp-blue); outline-offset: -1px; }
.form input[readonly] { background: var(--slate-bg); color: var(--muted); }

/* Home page canvas */
.canvas { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 0 0 28px; box-shadow: 0 1.6px 3.6px rgba(0,0,0,.08); }
.hero {
  position: relative; min-height: 340px; padding: 42px 48px; display: flex; flex-direction: column;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 38%, rgba(255,255,255,.25) 70%, rgba(255,255,255,0) 100%),
    url("/banner.jpg"),
    url("/banner-default.svg");
  background-size: cover, cover, cover; background-position: center, right center, right center; background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 40px; font-weight: 400; margin: 0 0 6px; color: var(--slate); }
.hero p { font-size: 17px; margin: 0; max-width: 560px; }
.hero-cta { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.section { padding: 26px 48px 0; }
.section-title { font-size: 26px; font-weight: 600; color: var(--sp-blue); text-decoration: underline; text-underline-offset: 5px; margin: 0 0 18px; }
.quick-links { display: flex; gap: 34px; flex-wrap: wrap; }
.ql { display: flex; flex-direction: column; align-items: center; width: 170px; color: var(--slate); text-align: center; }
.ql:hover { text-decoration: none; }
.ql-circle { position: relative; width: 158px; height: 158px; border-radius: 50%; border: 5px solid var(--sp-ring); background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(28,78,155,.18); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ql:hover .ql-circle { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28,78,155,.28); }
.ql-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ql-label { margin-top: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ql-sub { font-size: 12.5px; color: var(--muted); }

/* SharePoint-like list */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-title { font-size: 22px; font-weight: 600; margin: 0; }
.view-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.view-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c8c6c4; border-radius: 999px; padding: 6px 16px; color: var(--slate); font-size: 14px; background: #fff; }
.view-pill:hover { text-decoration: none; background: var(--slate-bg); }
.view-pill.active { background: #cfe4fa; border-color: var(--sp-blue); color: #0b3a6b; font-weight: 600; }
.view-pill .count { font-size: 12px; color: var(--muted); }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-table th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--slate); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sp-table td { padding: 12px; border-bottom: 1px solid #edebe9; vertical-align: middle; }
.sp-table tr.row-link:hover td { background: #f3f2f1; }
.sp-table .title-cell a { color: var(--slate); font-weight: 600; }
.person-chip { display: inline-block; background: #f3f2f1; border-radius: 999px; padding: 3px 12px; font-size: 13px; white-space: nowrap; }
.empty-state { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed #c8c6c4; border-radius: 4px; }
.signin-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--sp-blue-bg); border: 1px solid #b4d6fa; border-radius: 4px; padding: 18px 22px; }
.identity-box { display: flex; align-items: center; gap: 12px; background: var(--sp-blue-bg); border: 1px solid #b4d6fa; border-radius: 4px; padding: 12px 14px; margin: 8px 0 4px; }
.identity-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sp-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 38px; }

@media (max-width: 720px) {
  .hero { padding: 28px 20px; min-height: 260px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 22px 20px 0; }
  .quick-links { gap: 18px; justify-content: center; }
  .ql { width: 140px; }
  .ql-circle { width: 128px; height: 128px; }
  .site-title { font-size: 19px; }
  .sp-table .hide-sm { display: none; }
}

/* When the school's own round icon is present it already has its ring and
   its title: show the image alone, keep the text only for screen readers. */
.ql.has-img .ql-circle { border: none; background: transparent; box-shadow: none; overflow: visible; }
.ql.has-img .ql-circle > svg { display: none; }
.ql.has-img .ql-circle img { object-fit: contain; filter: drop-shadow(0 4px 10px rgba(28,78,155,.22)); }
.ql.has-img .ql-label, .ql.has-img .ql-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ql.has-img { width: 190px; }
.ql.has-img .ql-circle { width: 190px; height: 190px; }

/* Banner shown whole beside the title (the school banner carries its own logo). */
.hero { background: #fff; flex-direction: row; align-items: center; gap: 32px; min-height: 0; padding: 32px 40px; }
.hero-text { flex: 1 1 340px; min-width: 0; }
.hero-img { flex: 0 1 600px; width: 100%; max-width: 600px; height: auto; border-radius: 4px; display: block; }
.ql.has-img .ql-circle img { filter: drop-shadow(0 5px 10px rgba(28,78,155,.25)); }
@media (max-width: 900px) {
  .hero { flex-direction: column-reverse; align-items: stretch; padding: 20px; }
  .hero-img, .hero-text { flex: none; }
  .hero-img { max-width: none; height: auto; }
}

/* Documents page: downloadable user guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.guide-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 14px; color: var(--slate); background: #fff; }
.guide-card:hover { text-decoration: none; border-color: var(--sp-blue); background: var(--sp-blue-bg); }
.guide-card strong { display: block; font-size: 15px; }
.guide-icon { flex: 0 0 44px; height: 52px; border-radius: 3px; background: #c4314b; color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }

/* Full-width school banner (its title is part of the image; the h1/p stay
   for screen readers and reappear if the image can't load). */
.hero.hero-banner { display: block; position: relative; padding: 0; background: #fff; min-height: 0; }
.hero-banner .hero-img { width: 100%; max-width: none; height: auto; display: block; border-radius: 4px 4px 0 0; }
.hero-banner .hero-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-banner .hero-cta { position: absolute; left: 2.5%; bottom: 9%; margin: 0; }
.hero-banner.no-img { padding: 32px 40px; }
.hero-banner.no-img .hero-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.hero-banner.no-img .hero-cta { position: static; margin-top: 22px; }
@media (max-width: 720px) {
  .hero-banner .hero-cta { position: static; padding: 14px 16px 0; }
  .hero-banner.no-img { padding: 22px 18px; }
}

/* Guides: open the web guide, or download the PDF */
.guide-card { padding: 0; align-items: stretch; }
.guide-card:hover { background: #fff; }
.guide-main { display: flex; align-items: center; gap: 12px; padding: 14px; flex: 1; color: var(--slate); min-width: 0; }
.guide-main:hover { text-decoration: none; background: var(--sp-blue-bg); }
.guide-card .guide-icon { background: #17365D; align-items: center; padding: 0; font-size: 14px; border-bottom: 4px solid #548DD4; }
.guide-pdf { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--border); font-size: 13px; font-weight: 600; color: #c4314b; white-space: nowrap; }
.guide-pdf:hover { text-decoration: none; background: #fdf3f4; }
@media (max-width: 720px) {
  /* Keep the title painted in the banner readable: crop to its left part. */
  .hero-banner .hero-img { height: 175px; object-fit: cover; object-position: left top; }
}
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-main strong { text-align: left; }

/* Sign-in page of the private site */
.login-banner { margin: 0 0 18px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.login-banner img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: left top; }
@media (max-width: 720px) { .login-banner img { height: 150px; object-fit: cover; object-position: left top; } }
