/* LMIS Help Centre — FP&M SETA palette (navy / olive green / accent red) */
:root{
  --navy:#1A3C5E; --navy-2:#24507a; --green:#5E823C; --green-2:#9BBB59; --green-soft:#E8F0DE;
  --accent:#C0392B; --ink:#1f2937; --muted:#5b6472; --line:#e3e7ec; --bg:#f5f7f9; --card:#ffffff;
  --radius:12px; --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 14px rgba(16,24,40,.06);
  --font:"Segoe UI",Inter,system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.55;font-size:15.5px}
a{color:var(--navy);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
h1,h2,h3,h4{line-height:1.25;color:var(--navy);margin:0 0 .5rem}
p{margin:.4rem 0 .9rem}
small{color:var(--muted)}

/* top bar */
.topbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(0,0,0,.02)}
.topbar-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;gap:20px;padding:10px 20px;min-height:64px}
.brand{display:flex;align-items:center;gap:12px;color:var(--navy)}
.brand:hover{text-decoration:none}
.brand .logo{height:40px;width:auto}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:16px}
.brand-text small{font-size:11px;letter-spacing:.02em}
.search{position:relative;flex:1;max-width:520px;margin-left:auto}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:var(--muted)}
.search input{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:10px 14px 10px 38px;font:inherit;font-size:14px;outline:none}
.search input:focus{border-color:var(--green-2);background:#fff;box-shadow:0 0 0 3px rgba(155,187,89,.25)}
.topnav{display:flex;align-items:center;gap:6px}
.topnav a{padding:8px 12px;border-radius:8px;font-weight:600;font-size:14px;color:var(--navy)}
.topnav a:hover{background:var(--bg);text-decoration:none}
.topnav a.active{background:var(--green-soft);color:var(--green)}
.btn-lmis{background:var(--navy);color:#fff!important;padding:8px 14px!important}
.btn-lmis:hover{background:var(--navy-2)!important}
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:20px;padding:4px 10px;cursor:pointer}

/* search results */
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);max-height:420px;overflow:auto;z-index:60;text-align:left}
.search-results a{display:block;padding:10px 14px;border-bottom:1px solid var(--line)}
.search-results a:last-child{border-bottom:none}
.search-results a:hover,.search-results a.sel{background:var(--bg);text-decoration:none}
.search-results .t{font-weight:600;display:block}
.search-results .c{font-size:12px;color:var(--green);display:block}
.search-results .s{font-size:13px;color:var(--muted);display:block}
.search-results mark{background:#fff3b0;color:inherit;padding:0 1px;border-radius:2px}
.search-results .none{padding:14px;color:var(--muted)}

/* hero */
.hero{background:linear-gradient(120deg,var(--navy) 0%,#2c5a86 60%,#3c7a6f 100%);color:#fff;padding:56px 20px 64px}
.hero.small{padding:36px 20px 40px}
.hero-inner{max-width:860px;margin:0 auto;text-align:center}
.hero.small .hero-inner{text-align:left;max-width:1200px}
.hero h1{color:#fff;font-size:clamp(28px,4vw,40px);margin-bottom:10px}
.hero p{color:#dbe6f2;font-size:17px;max-width:720px;margin:0 auto 22px}
.hero.small p{margin-left:0}
.eyebrow{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);padding:4px 12px;border-radius:999px;font-size:12px;letter-spacing:.08em;font-weight:700;margin-bottom:16px}
.hero-search{position:relative;max-width:720px;margin:0 auto}
.hero-search input{width:100%;padding:16px 20px;border-radius:14px;border:0;font:inherit;font-size:16px;box-shadow:0 10px 30px rgba(0,0,0,.25);outline:none}
.hero-search .search-results{top:calc(100% + 8px);color:var(--ink)}
.popular{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;font-size:13px}
.popular span{color:#c9d6e3}
.popular a{color:#fff;background:rgba(255,255,255,.14);padding:5px 11px;border-radius:999px}
.popular a:hover{background:rgba(255,255,255,.26);text-decoration:none}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:12px}
.crumbs span{margin:0 6px;color:#9aa4b1}
.crumbs.light,.crumbs.light a{color:#dbe6f2}

/* home body */
.wrap{max-width:1200px;margin:0 auto;padding:36px 20px 56px}
.section-title{font-size:22px;margin:26px 0 14px}
.role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:34px}
.role-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;transition:transform .12s,box-shadow .12s;border-top:4px solid var(--green-2)}
.role-card:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,24,40,.1)}
.role-card h3{font-size:17px}
.role-card p{color:var(--muted);font-size:14px;margin:0;flex:1}
.role-card .more{color:var(--green);font-weight:600;font-size:13px}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}
.cat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}
.cat h3{display:flex;align-items:center;gap:10px;font-size:16px;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:8px}
.cat-icon{width:22px;height:22px;fill:var(--green);flex:none}
.article-list{list-style:none;margin:0;padding:0}
.article-list li{padding:7px 0;border-bottom:1px dashed var(--line)}
.article-list li:last-child{border-bottom:none}
.article-list a{font-weight:600;display:block}
.article-list.rich small{display:block;font-size:13px;color:var(--muted)}
.two-col{display:grid;grid-template-columns:2fr 1fr;gap:28px}
.two-col section{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow)}
.help-cta{margin-top:36px;background:var(--navy);color:#fff;border-radius:var(--radius);padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.help-cta h3{color:#fff;margin-bottom:4px}
.help-cta p{margin:0;color:#dbe6f2;max-width:620px}
.cta-buttons{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-block;background:var(--green-2);color:#0f2a12;font-weight:700;padding:10px 16px;border-radius:10px}
.btn:hover{background:#aacb6a;text-decoration:none}
.btn.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5)}

/* article layout */
.layout{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:270px minmax(0,1fr) 240px;gap:30px;padding:26px 20px 60px}
.left{position:sticky;top:80px;align-self:start;max-height:calc(100vh - 100px);overflow:auto}
.right{position:sticky;top:80px;align-self:start;font-size:14px}
.sidebar details{border-bottom:1px solid var(--line);padding:4px 0}
.sidebar summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;color:var(--navy);padding:8px 6px;border-radius:8px;list-style:none;font-size:14px}
.sidebar summary::-webkit-details-marker{display:none}
.sidebar summary::after{content:"›";margin-left:auto;transition:transform .15s;color:var(--muted)}
.sidebar details[open] summary::after{transform:rotate(90deg)}
.sidebar summary:hover{background:#fff}
.sidebar ul{list-style:none;margin:0 0 6px;padding:0 0 0 14px}
.sidebar li a{display:block;padding:6px 10px;border-radius:8px;font-size:14px;color:var(--ink);border-left:2px solid transparent}
.sidebar li a:hover{background:#fff;text-decoration:none}
.sidebar li.current a{background:var(--green-soft);border-left-color:var(--green);color:var(--green);font-weight:600}
.article{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:30px 36px 26px;box-shadow:var(--shadow);min-width:0}
.article h1{font-size:30px;margin-bottom:8px}
.article .lead{font-size:17px;color:var(--muted);margin:0 0 14px}
.meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.chip{background:var(--green-soft);color:var(--green);font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;text-transform:capitalize}
.meta button{margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 10px;font:inherit;font-size:13px;cursor:pointer;color:var(--navy)}
.meta button+button{margin-left:0}
.meta button:hover{background:var(--bg)}
.body h2{font-size:21px;margin:28px 0 10px;padding-top:6px}
.body h3{font-size:17px;margin:20px 0 8px;color:var(--green)}
.body ol,.body ul{padding-left:26px}
.body li{margin:.3rem 0}
.body,.body a{overflow-wrap:anywhere}
.body ol>li::marker{font-weight:700;color:var(--green)}
.body table{border-collapse:collapse;width:100%;margin:12px 0 18px;font-size:14.5px;display:block;overflow-x:auto}
.body th,.body td{border:1px solid var(--line);padding:8px 10px;vertical-align:top;text-align:left}
.body th{background:var(--green-2);color:#fff;font-weight:700}
.body tr:nth-child(even) td{background:#fafbf7}
.body code{background:#f1f3f5;border:1px solid var(--line);border-radius:4px;padding:1px 5px;font-size:.92em}
.note{display:flex;gap:12px;background:var(--green-soft);border-left:4px solid var(--green);border-radius:8px;padding:12px 16px;margin:16px 0;color:#2e4a1f}
.note-label{font-weight:800;text-transform:uppercase;font-size:12px;letter-spacing:.06em;color:var(--green);padding-top:3px;flex:none}
.note p{margin:0}
.shot{margin:18px 0 22px;text-align:center}
.shot img{border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);cursor:zoom-in}
.shot figcaption{font-size:13px;color:var(--muted);margin-top:8px;font-style:italic}
.feedback{margin-top:26px;padding:14px 16px;background:var(--bg);border-radius:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.feedback button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 14px;font:inherit;cursor:pointer;font-weight:600}
.feedback button:hover{border-color:var(--green);color:var(--green)}
.prevnext{display:flex;justify-content:space-between;gap:16px;margin-top:20px}
.prevnext a{flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-weight:600;display:flex;flex-direction:column}
.prevnext a small{font-weight:400;color:var(--muted);font-size:12px}
.prevnext .next{text-align:right}
.prevnext a:hover{border-color:var(--green-2);text-decoration:none;background:#fff}
.onpage,.related{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin-bottom:14px}
.onpage h4,.related h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}
.onpage ul,.related ul{list-style:none;margin:0;padding:0}
.onpage li a{display:block;padding:4px 0 4px 10px;border-left:2px solid var(--line);color:var(--ink)}
.onpage li a.active{border-left-color:var(--green);color:var(--green);font-weight:600}
.related li{padding:4px 0}
.footer{border-top:1px solid var(--line);background:#fff;font-size:13px;color:var(--muted)}
.footer-inner{max-width:1280px;margin:0 auto;padding:16px 20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(10,20,30,.85);display:flex;align-items:center;justify-content:center;z-index:100;cursor:zoom-out;padding:20px}
.lightbox img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}

/* embedded (widget) mode: hide chrome */
body.embedded .topbar,body.embedded .footer,body.embedded .left,body.embedded .right,body.embedded .hero .popular{display:none}
body.embedded .layout{display:block;padding:14px}
body.embedded .article{border:0;box-shadow:none;padding:6px 4px}
body.embedded .wrap{padding:16px}

@media (max-width:1100px){.layout{grid-template-columns:240px minmax(0,1fr)}.right{display:none}}
@media (max-width:820px){
  .layout{grid-template-columns:1fr}.left{position:static;max-height:none;display:none}
  body.nav-open .left{display:block}
  .topnav{display:none}.menu-toggle{display:block}
  body.nav-open .topnav{display:flex;position:absolute;top:64px;left:0;right:0;background:#fff;flex-direction:column;padding:10px;border-bottom:1px solid var(--line)}
  .search{max-width:none}
  .brand-text small{display:none}
  .two-col{grid-template-columns:1fr}
  .article{padding:22px 18px}
  .prevnext{flex-direction:column}
}
@media print{.topbar,.footer,.left,.right,.feedback,.prevnext,.meta button{display:none}.layout{display:block;padding:0}.article{border:0;box-shadow:none;padding:0}}

/* ================================================================
   LMIS theme  -  appended for the Help Centre at ~/HelpCentre
   ----------------------------------------------------------------
   Two changes, both appended so they win on source order.

   1. Palette re-pointed at the LMIS application's own tokens, so the
      Help Centre reads as part of the app rather than a separate
      site. The sheet is entirely variable-driven, so this is a
      redefinition of :root rather than a rewrite.

   2. The fixed max-widths are lifted. The article layout capped at
      1320px and the index at 1200px, leaving large dead gutters on a
      wide monitor. They now use the full viewport width, keeping
      side padding so nothing touches the edge.

   The breakpoints at 1100px and 820px only change the column
   template, never max-width, so lifting the caps does not fight them.

   build_kb.py copies docs/help/help.css into Help/assets/help.css when it
   regenerates the site, and that source copy carries this block too - so a
   rebuild reproduces the themed sheet instead of reverting it. Keep the two
   in step if either is edited.
   ================================================================ */
:root {
    --navy: #1466a8;
    --navy-2: #0e4f86;
    --green: #5f7320;
    --green-2: #acc079;
    --green-soft: #f0f5e3;
    --accent: #c0392b;
    --ink: #22364e;
    --muted: #7a8899;
    --line: #e6ebf2;
    --bg: #f7f9fc;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 34, 56, .05);
    --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Headings take the app's near-black ink; --navy stays the link and
   control colour, which is how the LMIS screens use #1466a8. */
h1, h2, h3, h4 { color: #0b1d3a; }

/* The app's hero gradient, replacing the help site's navy-to-teal. */
.hero { background: linear-gradient(120deg, #0a3564 0%, #1466a8 60%, #1f86cf 100%); }

/* ---- full width ---- */
.topbar-inner,
.footer-inner,
.wrap,
.layout { max-width: none; }

/* With the cap gone the three-column article page can breathe: a wider
   topic rail and related rail, and the article takes what is left. */
.layout {
    grid-template-columns: 300px minmax(0, 1fr) 280px;
    padding-left: 28px;
    padding-right: 28px;
}

.wrap,
.topbar-inner,
.footer-inner { padding-left: 28px; padding-right: 28px; }

/* The index hero centred its text in an 860px column inside what is
   now a full-width band; give it the same gutters as everything else. */
.hero-inner { max-width: none; padding-left: 28px; padding-right: 28px; }
.hero.small .hero-inner { max-width: none; }

/* The topbar search was pinned to 520px; let it use the wider bar. */
.search { max-width: 720px; }

.article { border-color: #e6ebf2; }

/* Inside the /Home/UserGuides iframe the article already sits in an LMIS
   card, so the outer gutters come back down. */
body.embedded .layout,
body.embedded .wrap { padding-left: 16px; padding-right: 16px; }

/* SETA Staff content is for Administrator and SETA Staff only. Hidden by
   default (so signed-out visitors, other user types and a failed check all
   get the hidden state); help.js adds html.help-staff when
   /Home/HelpCentreAccess says the user is staff. */
html:not(.help-staff) .role-card[href$="roles/seta.html"],
html:not(.help-staff) #cat-seta-staff-modules{display:none}

/* Tables are display:block (to scroll on a phone), which lets the label
   column be squeezed until words break in half. Keep labels whole. */
.body td:first-child{white-space:nowrap}
