:root {
  --red: #8E1B1B;
  --red-dark: #6E1212;
  --live: #B3261E;
  --gold: #C8A24A;
  --gold-text: #8A6A1E;
  --paper: #FBF5EC;
  --paper-line: #EAD9BF;
  --line: #E6DED6;
  --line-soft: #EFE9E3;
  --ink: #231A17;
  --muted: #5A4D47;
  --green: #1B7A3E;
  --blue: #1F5F8B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Catamaran', 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: 'Noto Serif Tamil', 'Catamaran', serif; font-weight: 700; line-height: 1.3; margin: 0; }
h2 { font-size: 22px; }
p { margin: 0; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--red); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-height: 44px; flex: 1 1 auto; min-width: 0; }
.brand img { width: 42px; height: 42px; flex: none; border-radius: 50%; }
.brand b { display: block; font-family: 'Noto Serif Tamil', serif; font-size: 15px; line-height: 1.25; }
.brand small { display: block; font-size: 12px; color: #F3D9D9; line-height: 1.3; }
.lang { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; border: 1.5px solid #E9B9B9; border-radius: 999px; padding: 4px 10px; min-height: 30px; display: inline-flex; align-items: center; }
.lang:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav { display: none; gap: 2px; flex-wrap: wrap; }
.nav a { color: #fff; font-weight: 600; font-size: 15px; padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.back { color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-left: -10px; flex: none; }

/* sections */
section { padding: 24px 0 0; }
section.wrap { padding-top: 28px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--paper-line); padding: 16px 0 20px; }
.hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.emblem { display: flex; background: #4F101A; border-radius: 16px; overflow: hidden; align-items: center; justify-content: center; }
.emblem img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.next { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--gold-text); letter-spacing: .02em; }
.next h1 { font-size: 26px; line-height: 1.25; }
.next .sub { font-size: 15px; color: var(--muted); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.btn { flex: none; min-height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; padding: 0 14px; border: 1.5px solid transparent; }
.btns .btn { flex: 1 1 150px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { background: #fff; color: var(--red); border-color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #155F30; color: #fff; }
.note { font-size: 13px; color: var(--muted); }

/* quick grid */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 16px; padding-bottom: 4px; }
.quick a { min-height: 84px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; padding: 8px 4px; }
.quick a:hover { border-color: var(--red); }
.quick svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* timings */
.times { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.times .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.times .r:first-child { border-top: 0; }
.times .r.alt { background: var(--paper); }
.times .d { display: contents; }
.times .d b { font-size: 16px; grid-column: 1; grid-row: 1; align-self: center; }
.times .d span { font-size: 13px; color: var(--muted); grid-column: 1 / -1; grid-row: 2; }
.times .t { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap; }
.times .t span { display: inline-flex; align-items: center; gap: 6px; }
.pill { font-size: 11px; font-weight: 700; color: #fff; background: var(--live); border-radius: 999px; padding: 1px 7px; line-height: 1.5; }
.pill-blue { background: var(--blue); }
.pill-grey { color: var(--muted); background: transparent; border: 1px solid #D9CFC4; padding: 1px 9px; }

/* live */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* notices */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.card .when { font-size: 12px; color: var(--gold-text); font-weight: 700; }
.card b { font-size: 16px; line-height: 1.35; }
.card p { font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* panel */
.panel { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 6px 12px; font-size: 15px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { font-weight: 600; }

/* hall teaser and cards */
.teaser { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); }
.teaser:hover { border-color: var(--red); color: var(--ink); }
.teaser .ph { height: 150px; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.teaser .ph img { width: 110px; height: 110px; }
.teaser .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.teaser h3 { font-size: 19px; }
.teaser .more { margin-top: 6px; font-weight: 700; color: var(--red); font-size: 15px; }
.floor { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.floor.ac { border: 1.5px solid var(--gold); background: var(--paper); }
.floor .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.floor .h b { font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.list .cap { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.list span { font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ok .cap, .ok svg { color: var(--green); stroke: var(--green); }
.no .cap, .no svg { color: var(--red); stroke: var(--red); }
ol.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
ol.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
ol.steps i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-style: normal; font-size: 15px; }
ol.steps span { padding-top: 4px; }

/* parish */
.person { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.person .av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.person .av img { width: 56px; height: 56px; }
.person .eyebrow { display: block; }
.person b { font-size: 17px; }
.person small { font-size: 13px; color: var(--muted); display: block; }
.map { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.map iframe { width: 100%; height: 200px; border: 0; display: block; }
.map .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }

/* footer */
footer { margin-top: 28px; background: var(--ink); color: #D9CFC4; padding: 24px 0 28px; font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer b { font-family: 'Noto Serif Tamil', serif; font-size: 17px; color: #fff; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer .links a { color: #fff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
footer small { font-size: 12px; color: #A89B92; }

/* desktop */
@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 18px; }
  .nav { display: flex; margin-left: auto; }
  .back { margin-left: 0; }
  section { padding-top: 40px; }
  section.wrap { padding-top: 40px; }
  h2 { font-size: 26px; }
  .hero { padding: 32px 0; }
  .hero .wrap { flex-direction: row; align-items: stretch; gap: 32px; }
  .emblem { display: flex; flex: 999 1 520px; min-height: 340px; border-radius: 20px; background: #4F101A; align-items: center; justify-content: center; overflow: hidden; }
  .emblem img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
  .next { flex: 1 1 360px; padding: 28px; justify-content: center; }
  .next h1 { font-size: 34px; }
  .quick { display: none; }
  .cols { display: flex; gap: 32px; align-items: flex-start; }
  .cols > .main { flex: 999 1 560px; min-width: 0; }
  .cols > .side { flex: 1 1 320px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 16px 18px; }
  .teaser { flex-direction: row; border-radius: 20px; }
  .teaser .ph { flex: 1 1 420px; height: auto; min-height: 240px; }
  .teaser .ph img { width: 180px; height: 180px; }
  .teaser .body { flex: 1 1 400px; padding: 28px; justify-content: center; }
  .teaser h3 { font-size: 26px; }
  .floors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .map iframe { height: 260px; }
  footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
