/* Light 2026 surface: slate page, indigo accent, glass panels. */
:root {
  --bg: #fafbfc;
  --bg-elev: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-strong: #4f46e5;
  --accent-soft: #eef2ff;
  --stale: #b45309;
  --ad-well: #f1f5f9;
  --tint: #eef2ff;
  --shadow-glass: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 15px 0 rgba(99, 102, 241, 0.03);
  --shadow-float: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.02);
  --radius-card: 1.5rem;
  --radius-control: 0.85rem;
  --font-tamil: "Anek Tamil", "Noto Sans Tamil", sans-serif;
  --font-latin: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.7660bd9909fb.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.341687eeeb6a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Anek Tamil";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/anek-tamil-tamil.19944552f8d9.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: "Anek Tamil";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/anek-tamil-latin.f6238c83f535.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: light;
}

::selection {
  background: #6366f1;
  color: #fff;
}

/* html body sets the document surface. */
html body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.65;
}

html[lang="ta"] body {
  font-family: var(--font-tamil);
}

[lang="en"] {
  font-family: var(--font-latin);
}

[lang="ta"] {
  font-family: var(--font-tamil);
}

.en-quiet {
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 0.95rem;
  line-height: 1.5;
}

html body h1,
html body .page-title {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  html body h1,
  html body .page-title {
    font-size: 2.25rem;
  }
}

html body h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent);
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-control);
  z-index: 50;
}

.skip:focus {
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 40;
  background: #fafbfc;
  border: 0;
  padding: 0.75rem 0 0.35rem;
}

.site-footer {
  background: #fff;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.main-wrap {
  padding: 1.5rem 0 2.5rem;
}

.crumbs {
  margin: 0 0 1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line);
}

.crumbs a {
  color: var(--accent);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #7c3aed);
  color: #fff;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.45);
}

.brand:hover {
  color: var(--ink);
}

.brand-ta {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a.brand:hover,
a.brand:hover .brand-ta {
  color: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a .en-quiet {
  margin-left: 0.3rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.2rem;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.2rem;
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .lang-current {
  color: var(--accent);
  font-weight: 700;
}

.disclaimer-strip {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ticker {
  display: flex;
  align-items: stretch;
  width: min(72rem, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glass);
  min-height: 44px;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-rtl 36s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-seq {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
  font-size: 0.92rem;
}

.ticker-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-width: 11rem;
  padding: 0 0.85rem;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  line-height: 1.2;
}

.ticker-more:hover {
  color: var(--accent-hover);
}

@keyframes ticker-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-viewport {
    mask-image: none;
  }

  .ticker-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }

  .ticker-seq[aria-hidden="true"] {
    display: none;
  }

  .ticker-seq {
    white-space: normal;
    flex-wrap: wrap;
  }
}

.disclaimer-strip ul,
.disclaimer-list {
  margin: 0;
  padding-left: 1.25rem;
}

.disclaimer-list li + li {
  margin-top: 0.35rem;
}

.disclaimer-more {
  margin: 0.55rem 0 0;
}

.disclaimer-strip a,
.disclaimer-more a {
  color: var(--accent);
  font-weight: 600;
}

.disclaimer-kicker {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.ticker .disclaimer-item + .disclaimer-item::before {
  content: " · ";
}

.disclaimer-box {
  margin: 1rem 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--bg-elev);
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.05);
  padding: 1.1rem 1.15rem 1.15rem;
  border-left: 4px solid var(--accent);
}

.disclaimer-box ul {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.disclaimer-box li {
  padding-left: 0.85rem;
  border-left: 2px solid var(--line);
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.filter-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: end;
  }
}

.filter-search {
  margin: 0 0 0.85rem;
}

.filter-search .control {
  width: 100%;
}

label.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

select.control,
input.control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f8fafc;
  color: var(--ink);
  padding: 0.4rem 1rem;
  font: inherit;
}

select.control:focus,
input.control:focus,
textarea.control:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.btn-primary,
.btn-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.btn-primary {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.45);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.45);
}

.btn-danger {
  border-color: #b91c1c;
  background: #b91c1c;
}

.btn-danger:hover {
  border-color: #991b1b;
  background: #991b1b;
  color: #fff;
}

.btn-external {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-external:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-glass);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.card h2 {
  margin-top: 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.card h2 a {
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--accent);
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-latin);
}

.place,
.meta-line {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.05rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 600;
}

.verified {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.verified span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.card-action {
  margin-top: 0.9rem;
}

.card-action .btn-external {
  width: 100%;
  border-radius: 999px;
}

.badge-stale {
  display: inline-block;
  margin: 0.65rem 0 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
}

.panel {
  margin-top: 2.5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.section-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.count-pill {
  flex: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e0e7ff;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 800;
}

.post-grid {
  display: grid;
  gap: 1.15rem;
}

.post-grid .empty-state {
  grid-column: 1 / -1;
}

.post-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.meta-icon,
.thread-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.thread-note span {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.feed-box {
  display: grid;
  gap: 0.85rem;
}

.feed-box .btn-primary {
  width: fit-content;
}

.header-post {
  display: none;
  flex: none;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.header-post span {
  white-space: nowrap;
}

.brand-mark .lucide,
.nav-links .lucide,
.btn-primary .lucide,
.meta-icon .lucide,
.thread-note .lucide,
.section-head .lucide,
.nav-toggle .lucide,
.bento-tile .lucide,
.thread-head .lucide {
  width: 1rem;
  height: 1rem;
  flex: none;
  display: block;
}

.brand-mark .lucide {
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
}

.section-kicker {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .step-grid li {
    grid-column: span 2;
  }

  .step-grid li:nth-last-child(2):nth-child(3n + 1),
  .step-grid li:last-child:nth-child(3n + 2) {
    grid-column: span 3;
  }

  .step-grid li:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

.step-grid li {
  margin: 0;
  padding: 1.1rem 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.05);
}

.step-grid span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step-grid p {
  margin: 0;
  font-size: 1.02rem;
}

.empty-state {
  padding: 1.25rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 1.25rem;
  background: var(--bg-elev);
}

.empty-state p {
  margin: 0.2rem 0;
}

.ad-above-footer {
  margin-top: 0.5rem;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 1.75rem 0 1.25rem;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
}

.footer-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-note {
  margin: 0;
  flex: 1 1 12rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.footer-links a:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.site-footer .disclaimer-strip {
  background: transparent;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-bottom: 0;
}

.site-footer .disclaimer-strip a {
  color: var(--accent);
}

.ad-slot {
  margin: 0.5rem 0;
  min-height: 90px;
}

.ad-caption {
  margin: 0 0 0.25rem;
  font-family: var(--font-latin);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ad-well);
  color: var(--muted);
  border-radius: var(--radius-control);
  font-family: var(--font-latin);
  font-size: 0.85rem;
}

.ad-placeholder--header {
  min-height: 90px;
}

.ad-placeholder--feed,
.ad-placeholder--sidebar {
  min-height: 120px;
}

.ad-placeholder--detail {
  min-height: 250px;
}

.post-grid .ad-slot--infeed {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
}

.ad-slot--infeed .ad-placeholder {
  min-height: 96px;
  border: 1px dashed var(--line);
}

.ad-after-detail {
  max-width: 40rem;
  margin: 1rem 0 1.35rem;
}

.list-layout {
  display: block;
}

.list-sidebar {
  display: none;
}

@media (min-width: 1280px) {
  .list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 1.5rem;
    align-items: start;
  }

  .list-sidebar {
    display: block;
  }
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  text-decoration: none;
}

.pager a {
  color: var(--ink);
  font-weight: 600;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.pager a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-footer .disclaimer-strip a:hover {
  color: var(--accent-hover);
}

.prose h2 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  max-width: 42rem;
}

.hero {
  padding: 1.25rem 0 0.5rem;
}

html body .hero .lede {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.bento {
  display: grid;
  gap: 0.75rem;
  margin: 0.25rem 0 1.75rem;
}

.bento-hero,
.bento-tile {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glass);
}

.bento-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  background:
    radial-gradient(420px 180px at 100% -20%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(420px 180px at 0% 120%, rgba(124, 58, 237, 0.12), transparent 70%),
    linear-gradient(180deg, #eef2ff 0%, #fafbfc 100%);
  border-color: #e0e7ff;
}

.bento-hero .lede {
  max-width: 38rem;
  margin: 0.65rem auto 1.15rem;
  color: #475569;
  font-size: 1.05rem;
  font-weight: 500;
}

.bento-hero .lede .gradient-text {
  font-weight: 800;
}

.hero-title {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-title .gradient-text {
  font-weight: 800;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e0e7ff;
  background: rgba(255, 255, 255, 0.92);
  color: #4338ca;
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge .lucide {
  width: 0.9rem;
  height: 0.9rem;
  color: #f59e0b;
}

.bento-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.bento-hero .btn-primary {
  gap: 0.45rem;
}

.hero-search {
  max-width: 54rem;
  margin: 1.35rem auto 0;
  text-align: left;
}

.hero-search .filter-bar {
  position: static;
  margin: 0;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9.5rem;
  padding: 1.15rem 1.15rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms, transform 150ms;
}

.bento-tile .lucide {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
}

.bento-tile span {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.bento-tile strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.bento-tile p {
  margin: 0;
  color: var(--muted);
}

.bento-tile:hover {
  color: var(--ink);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.bento-tile-accent {
  background: linear-gradient(180deg, #eef2ff, #ffffff);
}

@media (min-width: 800px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bento-hero {
    grid-column: 1 / -1;
    padding: 3rem 2rem 2.5rem;
  }

  .bento-hero h1 {
    font-size: 3rem;
  }

  .bento-tile {
    grid-column: span 3;
  }
}

.hub-mark {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.45);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-latin);
}

.hub-mark .lucide {
  width: 2rem;
  height: 2rem;
}

.seeker-banner {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: #fff;
  text-align: left;
}

.seeker-banner strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.seeker-banner p {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.link-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--bg-elev);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.link-pill:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.link-pill-primary {
  border-color: var(--accent);
  background: var(--bg-elev);
  color: var(--accent);
}

.link-pill-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.share-bar {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.share-bar h2 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.share-actions .btn-primary,
.share-actions .link-pill {
  min-height: 44px;
}

.share-actions button.link-pill {
  font: inherit;
  cursor: pointer;
}

.page-intro {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.page-intro p,
.page-lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.info-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
  max-width: 40rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-glass);
}

.info-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0.35rem 0 0;
}

.info-card a {
  color: var(--accent);
  font-weight: 600;
}

.tool-form {
  max-width: 40rem;
  margin-top: 1rem;
}

.tool-form-pair {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .tool-form-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-form .help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tool-form .btn-primary {
  width: 100%;
}

.result-card {
  max-width: 40rem;
  margin-top: 1rem;
}

.ctc-hint {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.detail-sheet,
.detail-sheet ~ .ad-slot,
.detail-sheet ~ .disclaimer-box,
.detail-sheet ~ .card-action,
.detail-sheet + .panel {
  max-width: 40rem;
}

.result-card .verified {
  font-size: 1.15rem;
}

.detail-sheet .card-action .btn-external,
.detail-sheet > .card-action .btn-external {
  width: min(100%, 42rem);
}

.note-block {
  margin-top: 0.35rem;
}

.filter-bar {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  padding: 0.9rem 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-float);
  top: 5.25rem;
}

textarea.control {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  min-height: 8rem;
}

.logout-form {
  display: inline;
}

.link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent);
}

.comment {
  margin-top: 0.75rem;
}

.auth-shell {
  width: min(26rem, 100%);
  margin: 0.5rem auto 1rem;
  text-align: center;
}

.auth-shell .lede {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.auth-card {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
}

.auth-card .field-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-latin);
}

.errorlist,
.auth-card .errorlist,
.auth-card [role="alert"] {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  list-style: none;
  border-radius: 0.75rem;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.92rem;
}

html[lang="ta"] .auth-card .field-label {
  font-family: var(--font-tamil);
  letter-spacing: 0;
  text-transform: none;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--accent-hover);
}

html body {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: 4rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker,
.nav-toggle::marker {
  display: none;
  content: none;
}

.nav-toggle .lucide {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.nav-panel {
  display: none;
}

.nav-drawer[open] .nav-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  padding: 0.5rem 1rem 0.85rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(10, 22, 40, 0.08);
}

.nav-drawer .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nav-login {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1199px) {
  .nav-drawer[open] .nav-panel {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    margin-top: 0.35rem;
    box-shadow: var(--shadow-float);
  }
}

@media (max-width: 959px) {
  .brand-ta {
    font-size: 1.02rem;
  }
}

@media (max-width: 767px) {
  .filter-bar {
    position: static;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .ticker-more {
    max-width: 7.75rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .footer-top {
    align-items: flex-start;
  }

  .card,
  .info-card,
  .step-grid li {
    border-radius: 1rem;
  }
}

@media (min-width: 800px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Menu below 1200px so Tamil header labels fit; Post CTA appears with inline nav. */
@media (min-width: 1200px) {
  .header-post {
    display: inline-flex;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-drawer {
    display: none;
  }

  .nav-desktop .nav-links a {
    min-height: 36px;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
  }

  .nav-desktop .nav-links a:hover,
  .nav-desktop .nav-links a[aria-current="page"] {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  }

  html[lang="ta"] .nav-desktop .nav-links a {
    padding: 0 0.6rem;
    font-size: 0.8rem;
  }

  .nav-links {
    flex-wrap: nowrap;
  }
}

.thread-board {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  max-height: min(70vh, 42rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.thread-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.thread-head .lucide {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
}

.thread-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: none;
}

.thread-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: thread-pulse 1.6s ease-out infinite;
}

@keyframes thread-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.thread-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem 0.65rem 1.15rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 48%);
}

.thread-empty {
  margin: 2rem 0.5rem;
  color: var(--muted);
  text-align: center;
}

.thread-msg {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
  align-items: flex-start;
}

.thread-msg.is-mine {
  flex-direction: row-reverse;
}

.thread-msg.is-reply {
  margin-top: 0.55rem;
  margin-bottom: 0;
}

.thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
}

.thread-msg.is-reply .thread-avatar {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.64rem;
}

.thread-col {
  min-width: 0;
  max-width: min(34rem, calc(100% - 3rem));
}

.thread-msg.is-mine .thread-col {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.thread-meta {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.thread-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.thread-bubble {
  display: inline-block;
  padding: 0.7rem 0.9rem;
  border-radius: 1.15rem 1.15rem 1.15rem 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.thread-bubble p {
  margin: 0 0 0.4rem;
}

.thread-bubble p:last-child {
  margin-bottom: 0;
}

.thread-msg.is-mine .thread-bubble {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  border-radius: 1.15rem 1.15rem 0.35rem 1.15rem;
}

.thread-msg.is-mine .thread-meta {
  flex-direction: row-reverse;
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}

.thread-msg.is-mine .thread-actions {
  justify-content: flex-end;
}

.thread-reacts {
  display: inline-flex;
  gap: 0.25rem;
}

.thread-react,
.thread-reply-btn,
.thread-delete,
.thread-report,
.thread-reply-cancel {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 32px;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
}

.thread-react.is-on {
  border-color: #c7d2fe;
  background: var(--accent-soft);
  color: var(--accent);
}

.thread-react:disabled {
  cursor: default;
  opacity: 0.7;
}

.thread-reply-btn:hover,
.thread-delete:hover,
.thread-report:hover,
.thread-reply-cancel:hover,
.thread-react:not(:disabled):hover {
  color: var(--accent);
  border-color: #c7d2fe;
}

.thread-replies {
  margin-top: 0.35rem;
  padding-left: 0.35rem;
  border-left: 2px solid #e2e8f0;
}

.thread-msg.is-mine .thread-replies {
  border-left: 2px solid #e2e8f0;
  border-right: 0;
  padding-left: 0.35rem;
  padding-right: 0;
  width: 100%;
}

.thread-msg.is-mine.is-reply {
  flex-direction: row;
}

.thread-msg.is-mine.is-reply .thread-col {
  align-items: flex-start;
}

.thread-msg.is-mine.is-reply .thread-meta,
.thread-msg.is-mine.is-reply .thread-actions {
  flex-direction: row;
  justify-content: flex-start;
}

.thread-msg.is-mine.is-reply .thread-bubble {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: var(--ink);
  border-radius: 1.15rem 1.15rem 1.15rem 0.35rem;
}

.thread-typing {
  min-height: 1.4rem;
  margin: 0;
  padding: 0 1.15rem 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.thread-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.75rem 1rem 0.9rem;
  background: #fff;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
}

.thread-replying {
  grid-column: 1 / -1;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.thread-replying:not([hidden]) {
  display: flex;
}

.thread-input {
  min-height: 48px;
  max-height: 8rem;
  resize: none;
  border-radius: 1.1rem;
}

.thread-send {
  min-height: 48px;
  padding-inline: 1rem;
}

.thread-login {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

@media (max-width: 639px) {
  .thread-board {
    max-height: min(78vh, 36rem);
    border-radius: 1.15rem;
  }

  .thread-col {
    max-width: calc(100% - 2.7rem);
  }
}
