:root {
  color-scheme: light;
  --ink: #0D7377;
  --ink-deep: #102e31;
  --ink-soft: #38524f;
  --green: #0D7377;
  --green-bright: #cbe4d5;
  --gold: #c48b3a;
  --paper: #f3f7f5;
  --paper-deep: #e9f0ec;
  --white: #fff;
  --line: #d8e3de;
  --muted: #61746e;
  --display: "Noto Serif Tamil", Georgia, serif;
  --body: "Noto Sans Tamil", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.8;
}

a { color: inherit; }
button, input { font: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.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: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { display: block; width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.brand__text { display: grid; line-height: 1.45; }
.brand__name { color: var(--ink); font-size: 19px; font-weight: 700; }
.brand__tagline { color: var(--muted); font-size: 10px; }
.site-nav { display: flex; align-items: center; gap: 26px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-footer__links a:hover { color: var(--green); }
.site-nav__tool { color: var(--green); }

.hero {
  overflow: hidden;
  color: var(--white);
  background-color: var(--ink);
  background-image: repeating-linear-gradient(90deg, transparent 0 59px, rgb(255 255 255 / 3%) 60px), repeating-linear-gradient(0deg, transparent 0 59px, rgb(255 255 255 / 3%) 60px);
}

.hero__inner { min-height: 380px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 64px; padding-block: 52px; }
.hero__copy { animation: rise-in .5s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #e5c58e; font-size: 11px; font-weight: 700; }
.eyebrow__rule { width: 24px; height: 1px; background: var(--gold); }
.eyebrow--light { color: var(--green); }
.hero h1 { max-width: 700px; margin: 0; font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1.55; }
.hero h1 span { color: #d6bd8d; }
.hero__summary { max-width: 590px; margin: 16px 0 22px; color: #d5e2dc; font-size: 14px; }
.hero__link { display: inline-flex; align-items: center; gap: 11px; color: var(--white); font-size: 12px; font-weight: 700; text-decoration: none; }
.hero__link span { color: #e5c58e; font-size: 17px; }

.featured { display: flex; flex-direction: column; min-height: 242px; padding: 23px 25px 20px; border-left: 3px solid var(--gold); background: #e7efe9; color: var(--ink-deep); text-decoration: none; animation: rise-in .5s .1s ease-out both; }
.featured__eyebrow, .featured__topic { font-size: 10px; font-weight: 700; }
.featured__eyebrow { color: var(--green); }
.featured__topic { margin-top: 13px; color: #9b6c28; }
.featured__title { margin-top: 7px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.6; }
.featured__description { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.featured__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 10px; }
.featured__meta span { color: var(--green); font-size: 16px; }
.featured--empty { justify-content: center; }

.articles-section { padding-block: 57px 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2, .tools-band h2 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.55; }
.search-field { width: min(350px, 100%); display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #cbd9d2; background: var(--white); }
.search-field svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink-deep); font-size: 12px; }
.search-field input::placeholder { color: #84938e; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.topic-filter { min-height: 35px; padding: 5px 13px; border: 1px solid #cddbd4; border-radius: 3px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 600; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.topic-filter:hover { border-color: var(--green); color: var(--green); }
.topic-filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.results-count { margin: 17px 0 12px; color: var(--muted); font-size: 10px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-card { min-height: 238px; display: flex; flex-direction: column; padding: 20px 21px 17px; border: 1px solid var(--line); border-top: 2px solid var(--green); background: var(--white); animation: rise-in .35s ease-out both; }
.article-card[hidden] { display: none; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.article-card__topic { color: var(--green); font-weight: 700; }
.article-card h3 { margin: 14px 0 6px; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.7; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--green); }
.article-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.article-card__read { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.article-card__read span { font-size: 15px; }
.empty-state { margin: 22px 0; padding: 20px; border: 1px dashed #9db3a8; color: var(--muted); text-align: center; font-size: 13px; }
[hidden] { display: none !important; }

.tools-band { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tools-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 30px; }
.tools-band .eyebrow { margin-bottom: 4px; }
.tools-band h2 { font-size: 22px; }
.tools-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.tools-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 600; text-decoration: none; }
.tools-links a:hover { color: var(--green); }
.tools-links span { color: var(--gold); font-size: 14px; }

.site-footer { padding-block: 35px 20px; background: #0D7377; color: #c9d8d1; }
.site-footer__main { display: flex; justify-content: space-between; gap: 36px; padding-bottom: 23px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.site-footer__brand { color: var(--white); font-family: var(--display); font-size: 19px; font-weight: 600; text-decoration: none; }
.site-footer__main p { max-width: 440px; margin: 5px 0 0; color: #b5c7be; font-size: 11px; }
.site-footer__links { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 22px; }
.site-footer__links a { color: #d3ded8; font-size: 11px; text-decoration: none; }
.site-footer__disclaimer { max-width: 880px; margin: 15px 0 0; color: #aabdb4; font-size: 10px; }
.site-footer__license { margin: 14px 0 0; color: #8da39a; font-size: 10px; }
.site-footer__license a { color: #d3ded8; text-underline-offset: 2px; }
.site-footer__license a:hover { color: #e5c58e; }

.article-page { padding-block: 29px 70px; background: linear-gradient(180deg, var(--paper-deep) 0, var(--paper) 290px); }
.article-page__wrap { max-width: 900px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { color: var(--green); text-decoration: none; }
.article { max-width: 760px; margin: 35px auto 0; padding: 0 8px; }
.article__header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article__topics { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-label { padding: 3px 9px; border: 1px solid #c5d9ce; color: var(--green); font-size: 10px; font-weight: 700; }
.article__header h1 { margin: 14px 0 8px; color: var(--ink); font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.6; }
.article__description { margin: 0; color: var(--muted); font-size: 14px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.article__body { padding-top: 18px; color: #263d39; font-size: 15px; line-height: 2; }
.article__body h2 { margin: 34px 0 8px; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.7; }
.article__body h3 { margin-top: 25px; font-size: 17px; }
.article__body p { margin: 0 0 17px; }
.article__body ul, .article__body ol { padding-left: 25px; }
.article__body li { padding-left: 4px; margin-bottom: 7px; }
.article__body blockquote { margin: 26px 0; padding: 9px 18px; border-left: 3px solid var(--gold); background: #eaf1ed; color: var(--ink-soft); font-size: 13px; }
.article__body blockquote p { margin: 0; }
.article__end { margin-top: 38px; padding-top: 17px; border-top: 1px solid var(--line); }
.article__end p { color: var(--muted); font-size: 11px; }
.article__end a, .text-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.simple-page { min-height: 60vh; padding-block: 65px 85px; }
.simple-page h1 { max-width: 760px; margin: 0; color: var(--ink); font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.7; }
.simple-page__body { max-width: 720px; color: var(--ink-soft); font-size: 15px; }
.simple-page .text-link { display: inline-flex; gap: 10px; margin-top: 12px; }
.legal-page > p { max-width: 760px; color: var(--ink-soft); font-size: 13px; }
.legal-page img { display: block; max-width: 100%; height: auto; }
.legal-page a { overflow-wrap: anywhere; }

.directory-intro { padding-block: 52px 28px; }
.directory-intro .eyebrow { margin-bottom: 5px; }
.directory-intro h1 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.6; }
.directory-intro > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.calculator-groups { padding-bottom: 72px; }
.calculator-group { margin-top: 28px; }
.calculator-group h2 { margin: 0 0 12px; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 600; }
.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.calculator-card { min-height: 185px; display: flex; flex-direction: column; padding: 17px 19px; border: 1px solid var(--line); border-top: 2px solid var(--green); background: var(--white); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.calculator-card:hover { border-color: var(--green); transform: translateY(-2px); }
.calculator-card__type { color: var(--green); font-size: 10px; font-weight: 700; }
.calculator-card h3 { margin: 9px 0 5px; color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.65; }
.calculator-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.calculator-card__open { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--green); font-size: 10px; font-weight: 700; }
.calculator-card__open span { color: var(--gold); font-size: 14px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 30px; }
  .hero h1 { font-size: 32px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-band__inner { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 520px); }
  .site-header__inner { min-height: 68px; gap: 10px; }
  .brand { gap: 8px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; }
  .brand__tagline { font-size: 9px; }
  .site-nav { gap: 12px; font-size: 10px; }
  .site-nav__about { display: none; }
  .hero__inner { min-height: 0; grid-template-columns: 1fr; gap: 27px; padding-block: 37px; }
  .hero h1 { font-size: 28px; }
  .hero__summary { font-size: 12px; }
  .featured { min-height: 205px; padding: 18px; }
  .articles-section { padding-block: 39px 45px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .section-heading h2 { font-size: 23px; }
  .search-field { width: 100%; }
  .topic-filters { gap: 7px; margin-top: 19px; }
  .topic-filter { min-height: 33px; padding-inline: 10px; }
  .article-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-card { min-height: 195px; padding: 17px; }
  .tools-band__inner { padding-block: 24px; }
  .tools-links { flex-direction: column; align-items: start; gap: 12px; }
  .site-footer__main { flex-direction: column; gap: 18px; }
  .site-footer__links { gap: 10px 17px; }
  .article-page { padding-top: 21px; }
  .article { margin-top: 25px; padding-inline: 0; }
  .article__header h1, .simple-page h1 { font-size: 27px; }
  .article__body { font-size: 14px; }
  .article__body h2 { font-size: 20px; }
  .simple-page { min-height: 55vh; padding-block: 45px 60px; }
  .directory-intro { padding-block: 36px 16px; }
  .directory-intro h1 { font-size: 27px; }
  .calculator-groups { padding-bottom: 48px; }
  .calculator-group { margin-top: 22px; }
  .calculator-grid { grid-template-columns: 1fr; gap: 9px; }
  .calculator-card { min-height: 160px; padding: 15px; }
}

@media (max-width: 360px) {
  .site-nav { gap: 8px; font-size: 9px; }
  .site-nav__articles { display: none; }
  .brand__tagline { display: none; }
  .hero__inner { gap: 14px; padding-block: 20px; }
  .hero__copy .eyebrow { margin-bottom: 9px; }
  .hero h1 { font-size: 25px; }
  .hero__summary { margin: 10px 0 14px; }
  .featured { min-height: 0; padding: 14px; }
  .featured__topic { margin-top: 8px; }
  .featured__title { margin-top: 4px; font-size: 16px; line-height: 1.45; }
  .featured__description { margin-top: 4px; font-size: 10px; line-height: 1.6; }
  .featured__meta { padding-top: 8px; }
  .articles-section { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}