/* Lanka Monitor — wire-service look: white page, ink navigation bar, flag-maroon
   accent, gold used only for small marks. System font stacks: fast, no third-party
   font requests (better page speed and visitor privacy). */

:root {
  --ink: #15191D;
  --ink-2: #414951;
  --muted: #6B747C;
  --line: #DADDE0;
  --panel: #F3F4F5;
  --paper: #FFFFFF;
  --maroon: #7A1E33;
  --maroon-2: #5F1727;
  --gold: #C9962F;
  --teal: #1D5468;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* utility bar */
.utility { background: var(--ink); color: #B8C0C6; font-size: .78rem; }
.utility-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4CAF6D; margin-right: .35rem; vertical-align: 1px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: .7rem; color: var(--ink); font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1 var(--serif); letter-spacing: -.01em; }
.wordmark:hover { text-decoration: none; }
.wordmark b { color: var(--maroon); font-weight: 700; }
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.tagline { margin: 0; color: var(--muted); font-size: .92rem; }

/* section navigation */
.sections { background: var(--maroon); position: sticky; top: 0; z-index: 10; }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
@media (max-width: 640px) {
  .sections ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sections ul::-webkit-scrollbar { display: none; }
}
.sections a { display: block; padding: .7rem .95rem; color: #F6E9EC; font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.sections a:hover { background: var(--maroon-2); text-decoration: none; }
.sections a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); background: var(--maroon-2); }

/* hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 2px solid var(--ink); }
.hero-thumb { margin-bottom: .9rem; }
.hero-thumb img { width: 100%; max-height: 220px; object-fit: cover; display: block; background: var(--panel); }
.hero-lead h2 { font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.15 var(--serif); margin: .25rem 0 .7rem; letter-spacing: -.01em; color: var(--ink); }
.kicker { margin: 0; color: var(--maroon); font-weight: 600; font-size: .9rem; }
.lead-summary { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 .8rem; }
.hero-side { border-left: 1px solid var(--line); padding-left: 2rem; }
.hero-side .story:first-child { padding-top: 0; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.25rem; padding: 1.5rem 0 3rem; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.block .more { margin: .5rem 0 1.6rem; font-size: .85rem; }

.page-head { padding: 1.5rem 0 .5rem; border-bottom: 2px solid var(--ink); }
.page-head h1 { font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.15 var(--serif); margin: .2rem 0 .5rem; }
.crumbs { margin: 0; font-size: .82rem; color: var(--muted); }
.intro { color: var(--ink-2); max-width: 74ch; margin: 0 0 1rem; }

.section-head { font: 700 1.25rem/1.25 var(--serif); margin: 1.5rem 0 .4rem; padding-top: .6rem; border-top: 3px solid var(--maroon); }
.section-head a { color: var(--ink); }
.section-head a:hover { color: var(--maroon); text-decoration: none; }
.main-col > section:first-child .section-head { margin-top: 0; }

/* stories */
.story { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.story.has-image { display: flex; gap: .85rem; align-items: flex-start; }
.story-thumb { flex: none; width: 108px; }
.story-thumb img { width: 108px; height: 76px; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.story-body { min-width: 0; flex: 1; }
.img-credit { display: block; font-size: .66rem; color: var(--muted); margin-top: .25rem; }
@media (max-width: 520px) {
  .story.has-image { flex-direction: column; }
  .story-thumb, .story-thumb img { width: 100%; }
  .story-thumb img { height: 180px; }
}
.story-title { margin: 0 0 .3rem; font: 600 1.08rem/1.35 var(--serif); color: var(--ink); }
.story-summary { margin: 0 0 .45rem; color: var(--ink-2); font-size: .94rem; max-width: 68ch; }
.story-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: 0; font-size: .78rem; color: var(--muted); }
.story-meta .src { color: var(--ink-2); font-weight: 600; }
.story-meta .xl { font-style: italic; }
.chips { margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.continue-link { margin: .4rem 0 0; font-size: .78rem; }
.continue-link a { color: var(--teal); font-weight: 500; }
.continue-link a:hover { color: var(--maroon); }
.chip { font-size: .72rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--ink-2); }
.followups { margin-top: .5rem; font-size: .86rem; }
.followups summary { cursor: pointer; color: var(--teal); font-weight: 500; }
.followups ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.followups li { margin-bottom: .4rem; }
.followups li span { display: block; font-size: .75rem; color: var(--muted); }
.case-history { margin-top: .6rem; font-size: .86rem; border-left: 3px solid var(--gold); padding-left: .7rem; }
.case-history summary { cursor: pointer; color: var(--maroon); font-weight: 600; }
.case-note { font-size: .74rem; color: var(--muted); margin: .35rem 0 0; font-style: italic; }
.case-history ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.case-history li { margin-bottom: .4rem; }
.case-history li span { display: block; font-size: .75rem; color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; font-style: italic; }
.note.big { font-size: 1rem; padding: 1.2rem 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .3rem; }
.filter { font: inherit; font-size: .82rem; padding: .3rem .75rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 99px; cursor: pointer; }
.filter:hover { border-color: var(--maroon); }
.filter.is-on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.story[hidden] { display: none; }

/* sidebar boxes */
.box { border: 1px solid var(--line); margin-bottom: 1.4rem; background: var(--paper); }
.box-head { margin: 0; padding: .7rem 1rem; font: 700 1rem/1.3 var(--serif); border-bottom: 3px solid var(--maroon); background: var(--panel); }
.box-head a { color: var(--ink); }
.box.weather .box-head { border-bottom-color: var(--teal); }
.box-body { padding: .7rem 1rem 1rem; }
.stat-row { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px dotted var(--line); font-size: .86rem; }
.stat-row:last-of-type { border-bottom: 0; }
.stat-row b { text-align: right; font-variant-numeric: tabular-nums; }
.as-of { margin: .6rem 0 0; font-size: .72rem; color: var(--muted); }
.district-list { max-height: 360px; overflow-y: auto; }
.district-row { display: flex; justify-content: space-between; gap: .6rem; padding: .32rem 0; border-bottom: 1px dotted var(--line); font-size: .84rem; }
.district-row b { color: var(--teal); }
.district-row small { color: var(--muted); }
.side-links { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.side-links li { padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: .3rem 1.1rem 1rem; margin-bottom: 1.5rem; }
.conditions { padding-left: 1.1rem; margin: .4rem 0; }
.conditions li { margin-bottom: .6rem; font-size: .92rem; }
.conditions li span { color: var(--ink-2); font-size: .86rem; }

/* comments + contact forms */
.comments { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.comment-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.comment-list .who { font-weight: 600; font-size: .9rem; }
.comment-list .when { font-size: .75rem; color: var(--muted); margin-left: .5rem; }
.comment-list p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.form { display: grid; gap: .8rem; max-width: 620px; }
.form label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #B8BEC4; background: var(--paper); color: var(--ink); width: 100%; }
.form button { justify-self: start; font: inherit; font-weight: 600; padding: .6rem 1.3rem; background: var(--maroon); color: #fff; border: 0; cursor: pointer; }
.form button:hover { background: var(--maroon-2); }
.form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.fine { font-size: .78rem; color: var(--muted); margin: 0; }
[role="status"] { margin: 0; font-size: .9rem; min-height: 1.2em; }
[role="status"].err { color: #A31D1D; }
[role="status"].good { color: #1E6B42; }

/* text pages */
.prose { max-width: 800px; padding-bottom: 3rem; }
.prose h2 { font: 700 1.3rem/1.3 var(--serif); margin: 2rem 0 .4rem; }
.prose p, .prose li { max-width: 68ch; }

/* footer */
.site-footer { background: var(--ink); color: #AEB7BD; font-size: .85rem; padding: 2rem 0 1rem; margin-top: 2rem; }
.footer-inner { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.footer-inner p { max-width: 60ch; margin: .2rem 0; }
.footer-brand { color: #fff; font: 700 1.2rem var(--serif); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { color: #E9EDF0; }
.copyright { margin-top: 1.4rem; font-size: .75rem; color: #8A949B; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (max-width: 640px) {
  .blocks { grid-template-columns: 1fr; }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
