/* KingTamil — public stylesheet. Mobile-first, no framework. */
@font-face{font-family:"Noto Sans Tamil";src:url(/assets/fonts/noto-sans-tamil.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}

:root{
  --navy:#102C46;--teal:#087F83;--coral:#F66B5B;--gold:#F3B746;
  --page:#F6F9FC;--surface:#FFFFFF;--heading:#102C46;--text:#22313F;--muted:#586878;--line:#E1E8EF;--link:#087F83;
  --tint:#EEF6F7;--radius:14px;--wrap:1120px;--scale:1;
  --font:"Noto Sans Tamil",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{--page:#0B1622;--surface:#122030;--heading:#F1F5F9;--text:#D8E1EA;--muted:#9DB0C2;--line:#24384C;--link:#5CC9CD;--tint:#16293B}
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--text);font-family:var(--font);font-size:1.0625rem;line-height:1.75;overflow-wrap:break-word;word-break:normal}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
h1,h2,h3,h4{color:var(--heading);line-height:1.45;margin:0 0 .5em;font-weight:700;overflow-wrap:anywhere}
p{margin:0 0 1em}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:8px;top:-60px;z-index:100;background:var(--navy);color:#fff;padding:10px 16px;border-radius:8px}
.skip:focus{top:8px}
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:16px}
.muted{color:var(--muted);font-size:.95rem}

/* ---------- header ---------- */
.hdr{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.hdr-row{display:flex;align-items:center;gap:12px;min-height:60px}
.logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;flex-shrink:0}
.logo-mark{width:40px;height:40px;flex-shrink:0}
.logo-word{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:800;font-size:1.35rem;letter-spacing:-.02em;color:var(--heading);line-height:1}
.logo-word b{color:var(--teal);font-weight:800}
.logo-word i{color:var(--coral);font-style:normal;font-size:.62em;font-weight:700}
/* category strip: desktop only; scrolls inside itself, never the page */
.nav{display:none;border-top:1px solid var(--line)}
.nav-row{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.nav-row::-webkit-scrollbar{display:none}
.nav a{color:var(--heading);text-decoration:none;font-size:.93rem;font-weight:600;padding:10px 12px;white-space:nowrap;border-bottom:3px solid transparent}
.nav a:first-child{padding-left:0}
.nav a:hover{border-bottom-color:var(--teal)}
.nav-chat{color:var(--teal)!important}
.hdr-chat{display:none;align-items:center;min-height:40px;padding:4px 14px;border:1.5px solid var(--line);border-radius:999px;color:var(--teal);font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap;margin-right:6px}
.hdr-chat:hover{border-color:var(--teal)}
@media (prefers-color-scheme:dark){.hdr-chat{color:var(--link)}}
.hdr-actions{display:flex;gap:4px;margin-left:auto;align-items:center}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--heading);border-radius:10px;cursor:pointer}
.icon-btn:hover{background:var(--tint)}
.drawer{border-top:1px solid var(--line);background:var(--surface);padding:16px 0 20px;max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow-y:auto}
.drawer-list{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.drawer-list a{display:block;padding:11px 12px;border-radius:10px;background:var(--page);color:var(--heading);text-decoration:none;font-weight:600;font-size:.98rem;min-height:44px}
.saved-box{margin-top:18px}
.saved-box h2{font-size:1rem}
.saved-box ul{margin:0;padding-left:1.2em}
@media (min-width:900px){
  .hdr{position:static}
  .nav{display:block}
  .hdr-chat{display:inline-flex}
  .drawer-chat{display:none} /* the chat link exists once: in the top bar on wide screens, in the menu on phones */
  .drawer-list{grid-template-columns:repeat(4,1fr)}
}

/* ---------- forms ---------- */
.search-form{display:flex;gap:8px;flex-wrap:wrap}
.search-form input[type=search],.search-form select{flex:1 1 180px;min-height:46px;padding:8px 14px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);min-width:0}
.search-form button,.btn{min-height:46px;padding:8px 20px;border:0;border-radius:10px;background:var(--teal);color:#fff;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.btn-ghost{background:transparent;color:var(--heading);border:1.5px solid var(--line)}
.search-page{margin-bottom:22px}

/* ---------- cards ---------- */
.sec{padding-block:22px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px;border-bottom:2px solid var(--line);padding-bottom:6px}
.sec-head h2{font-size:1.3rem;margin:0;position:relative}
.sec-head h2::after{content:"";position:absolute;left:0;bottom:-8px;width:56px;height:2px;background:var(--coral)}
.more{font-size:.92rem;font-weight:700;text-decoration:none;white-space:nowrap;padding:6px 0}
.grid{display:grid;gap:18px;grid-template-columns:1fr}
@media (min-width:600px){.grid{grid-template-columns:1fr 1fr}}
@media (min-width:920px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.card-list.card-noimg{border-left:4px solid var(--teal)}
.card-img{display:block;aspect-ratio:16/9;background:var(--tint)}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-ph{aspect-ratio:auto;height:92px;display:flex;align-items:center;gap:12px;padding:0 18px;text-decoration:none;color:var(--heading);
  background:linear-gradient(120deg,var(--tint) 0%,var(--surface) 78%);border-bottom:1px solid var(--line);position:relative;overflow:hidden}
.card-ph::after{content:"";position:absolute;right:-34px;top:-34px;width:130px;height:130px;border-radius:50%;background:var(--gold);opacity:.16}
.card-ph-icon{font-size:2rem;line-height:1}
.card-ph-name{font-weight:700;font-size:.9rem;color:var(--teal)}
@media (prefers-color-scheme:dark){.card-ph-name{color:var(--link)}}
.card-hero .card-ph{height:110px}
@media (min-width:900px){.card-hero .card-ph{flex:0 0 34%;height:auto;flex-direction:column;justify-content:center;border-bottom:0;border-right:1px solid var(--line)}.card-hero .card-ph-icon{font-size:3.4rem}}
.card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.card-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chip{display:inline-block;font-size:.78rem;font-weight:700;line-height:1.5;padding:2px 10px;border-radius:999px;background:var(--tint);color:var(--teal);text-decoration:none}
@media (prefers-color-scheme:dark){.chip{color:var(--link)}}
.chip-ok{background:#E4F4EA;color:#17603A}
.card-title{font-size:1.08rem;margin:0}
.card-title a{color:var(--heading);text-decoration:none}
.card-title a:hover{text-decoration:underline}
.card-sum{margin:0;color:var(--muted);font-size:.95rem;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.card-time{color:var(--muted);font-size:.82rem;margin-top:auto}
.list{display:grid;gap:10px}
@media (min-width:760px){.list{grid-template-columns:1fr 1fr}}
.card-list{flex-direction:row;align-items:stretch}
.card-list .card-img{flex:0 0 120px;aspect-ratio:auto;min-height:84px}
.card-list .card-body{padding:10px 12px}
.card-list .card-title{font-size:1rem}
.hero{padding-top:18px}
.card-hero .card-title{font-size:1.3rem}
.card-hero .card-sum{font-size:1rem}
@media (min-width:900px){
  .card-hero{flex-direction:row}
  .card-hero .card-img{flex:0 0 56%;aspect-ratio:auto;max-height:400px}
  .card-hero .card-body{padding:26px;justify-content:center;gap:10px}
  .card-hero .card-title{font-size:1.9rem}
}
.empty-home{text-align:center;padding-block:70px}
.empty-home .logo-mark{width:96px;height:96px;margin:0 auto 18px}

/* fact-check verdict colours (text always dark-on-tint for contrast) */
.chip-fc,.verdict strong{color:#3B3B3B}
.fc-true{background:#DDF3E4;color:#14572F}.fc-false{background:#FBE1DE;color:#8F1D15}
.fc-misleading{background:#FDEBD0;color:#7A4700}.fc-partly_true{background:#FFF3C4;color:#6B5200}
.fc-unverified{background:#E8ECF0;color:#3F4B57}.fc-outdated{background:#E3E8F5;color:#34406B}

/* ---------- article ---------- */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 14px;padding:0;font-size:.85rem;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:8px}
.crumbs a{color:var(--muted)}
.post{max-width:800px;padding-block:22px 10px}
.post-head h1,.page-head h1{font-size:1.5rem;margin-bottom:.4em}
@media (min-width:700px){.post-head h1,.page-head h1{font-size:2.1rem}}
.lead{font-size:1.12rem;color:var(--muted);line-height:1.7}
.byline{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.9rem;color:var(--muted);align-items:center}
.byline .by{font-weight:700;color:var(--heading)}
.tools{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.tool{min-height:40px;padding:4px 14px;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;font-size:.88rem;font-weight:600;cursor:pointer;color:var(--heading)}
.tool[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
.post-img{margin:18px 0}
.post-img img{width:100%;border-radius:var(--radius);background:var(--tint)}
figcaption{font-size:.86rem;color:var(--muted);margin-top:8px;line-height:1.6}
.credit,.ai-tag{display:block}
.ai-tag{font-weight:700}
.box{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--teal);border-radius:var(--radius);padding:16px 18px;margin:20px 0}
.box h2{font-size:1.1rem;margin-bottom:.5em}
.box ul{margin:0;padding-left:1.25em}
.box li{margin-bottom:.4em}
.box p:last-child{margin-bottom:0}
.quick{border-left-color:var(--gold);background:var(--tint)}
.deadline{border-left-color:var(--coral);display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline}
.correction{border-left-color:var(--coral)}
.box-label{font-size:.85rem;font-weight:700;color:var(--muted)}
.verdict{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;border-left-color:currentColor}
.verdict strong{font-size:1.25rem;color:inherit}
.links{list-style:none;padding:0!important}
.links a{font-weight:700}
.prose{font-size:calc(1.09rem * var(--scale));line-height:1.9}
.prose h2{font-size:1.4em;margin-top:1.5em}
.prose h3{font-size:1.2em;margin-top:1.3em}
.prose h4{font-size:1.06em;margin-top:1.2em}
.prose ul,.prose ol{padding-left:1.4em;margin:0 0 1.1em}
.prose li{margin-bottom:.45em}
.prose blockquote{margin:1.2em 0;padding:.4em 1.1em;border-left:4px solid var(--gold);background:var(--tint);border-radius:0 10px 10px 0}
.prose img{border-radius:10px;margin:1em auto}
.prose figure{margin:1.2em 0}
.prose pre{overflow-x:auto;background:var(--tint);padding:12px;border-radius:10px;font-size:.9em}
.prose hr{border:0;border-top:1px solid var(--line);margin:1.6em 0}
.kt-table-wrap{overflow-x:auto;margin:1.2em 0;border:1px solid var(--line);border-radius:10px}
.kt-table-wrap table{border-collapse:collapse;width:100%;min-width:480px;font-size:.95em}
.kt-table-wrap th,.kt-table-wrap td{border-bottom:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}
.kt-table-wrap th{background:var(--tint);color:var(--heading)}
.kt-embed{position:relative;aspect-ratio:16/9;margin:1.2em 0;border-radius:10px;overflow:hidden;background:#000}
.kt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.kt-note,.kt-warn{padding:12px 16px;border-radius:10px;margin:1.2em 0;background:var(--tint)}
.kt-warn{border-left:5px solid var(--coral)}
.sources{margin:26px 0;font-size:.95rem}
.sources h2,.share h2{font-size:1.1rem}
.sources ol{padding-left:1.3em;margin:0}
.sources li{margin-bottom:.4em;overflow-wrap:anywhere}
.ai-note{font-size:.9rem;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.share{margin:24px 0}
.share-row{display:flex;flex-wrap:wrap;gap:8px}
.sh{min-height:46px;padding:8px 16px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--heading);font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.sh::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--muted);flex-shrink:0}
.sh-wa::before{background:#25D366}.sh-fb::before{background:#1877F2}.sh-tg::before{background:#27A7E7}.sh-copy::before{background:var(--gold)}.sh-native::before{background:var(--coral)}
.sh:hover{border-color:var(--teal)}
.copy-status{min-height:1.5em;font-size:.9rem;color:var(--teal);font-weight:700;margin:8px 0 0}
.report{margin:18px 0 26px;font-size:.95rem}
.report summary{cursor:pointer;font-weight:700;color:var(--muted);padding:8px 0;min-height:44px}
.report form{display:grid;gap:8px;max-width:520px;padding:12px 0}
.report textarea,.report input[type=email]{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface)}
.report button{justify-self:start;min-height:44px;padding:8px 22px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.preview-bar{background:var(--gold);color:var(--navy);text-align:center;font-weight:700;padding:8px 12px;font-size:.92rem}
.pager{display:flex;justify-content:center;align-items:center;gap:16px;margin:26px 0 6px;font-weight:700}
.pager a{min-height:44px;padding:8px 16px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);text-decoration:none;display:inline-flex;align-items:center}
.notice-msg{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.errpage{text-align:center;padding-block:60px;max-width:640px}
.err-code{font-size:4rem;font-weight:800;color:var(--line);margin:0;line-height:1}
.err-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}

/* reading mode: only the story */
body.reading .hdr,body.reading .ftr,body.reading .share,body.reading .report,body.reading .crumbs,body.reading .ad,body.reading #rel-h,body.reading .post~.sec{display:none}
body.reading .post{max-width:720px}
body.reading .prose{font-size:calc(1.2rem * var(--scale))}

/* ---------- death notices: calm, no accents ---------- */
.memorial .sec-head h2::after{background:var(--muted)}
.notice-row,.notice-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
@media (min-width:700px){.notice-row{grid-template-columns:repeat(3,1fr)}.notice-list{grid-template-columns:1fr 1fr}}
.notice-row a,.notice-list a{display:flex;gap:12px;align-items:center;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--text);min-height:64px}
.notice-row img,.notice-list img{width:64px;height:64px;border-radius:10px;object-fit:cover;flex-shrink:0;filter:grayscale(.2)}
.notice-list img{width:96px;height:96px}
.notice-row strong,.notice-list strong{display:block;color:var(--heading)}
.notice-row small,.notice-list small{display:block;color:var(--muted);font-size:.85rem}
.notice-ph{width:96px;height:96px;display:grid;place-items:center;background:var(--tint);border-radius:10px;font-size:1.8rem;flex-shrink:0}
.memorial-head{text-align:center;padding:10px 0 18px;border-bottom:1px solid var(--line);margin-bottom:22px}
.memorial-label{color:var(--muted);font-weight:700;letter-spacing:.04em;margin-bottom:14px}
.memorial-photo{width:200px;height:250px;object-fit:cover;border-radius:12px;margin:0 auto 16px;border:1px solid var(--line)}
.memorial-dates{display:flex;gap:6px 22px;justify-content:center;flex-wrap:wrap;color:var(--muted);margin-bottom:.3em}
.memorial-place{color:var(--muted)}
.memorial .box{border-left-color:var(--muted)}

/* ---------- ads (only rendered when enabled) ---------- */
.ad{margin-block:18px;text-align:center}
.ad-label{display:block;font-size:.72rem;color:var(--muted);letter-spacing:.05em;margin-bottom:4px}

/* ---------- footer ---------- */
.ftr{background:#102C46;color:#D5E0EA;margin-top:36px;padding-top:32px;font-size:.95rem}
.ftr-grid{display:grid;gap:26px}
@media (min-width:760px){.ftr-grid{grid-template-columns:1.3fr 1fr 1fr}}
.ftr h2{color:#fff;font-size:1rem;margin-bottom:.6em}
.ftr ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ftr a{color:#D5E0EA;text-decoration:none;display:inline-block;padding:5px 0}
.ftr a:hover{color:#fff;text-decoration:underline}
.logo-light .logo-word{color:#fff}
.logo-light .logo-word b{color:var(--gold)}
.ftr-tag{margin-top:12px;line-height:1.8;max-width:34ch}
.ftr-base{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;border-top:1px solid rgba(255,255,255,.14);margin-top:26px;padding-block:16px;font-size:.88rem}
.ftr-base span{margin-right:auto}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.hdr,.ftr,.share,.report,.tools,.ad,.sec:not(.post){display:none}body{background:#fff;color:#000}}
