/* Styles for the 10 Years and Dharmathin Kural pages */
.eyebrow { display: inline-block; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--turmeric); font-weight: 600; margin-bottom: 10px; }
.page-hero .eyebrow { color: var(--turmeric); }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.page-hero .btn-ghost { color: var(--white); }

/* Messages */
.messages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.message { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.message blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.message blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: var(--turmeric); margin-bottom: 10px; }
.message .who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.message .who strong { display: block; color: var(--kumkum); }
.message .who span { color: var(--ink-soft); font-size: 0.95rem; }

/* Programme cards */
.programmes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.prog { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.prog .since { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.prog h3 { margin: 0; font-size: 1.3rem; }
.prog .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--kumkum); line-height: 1.1; }
.prog p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.prog a { margin-top: auto; padding-top: 8px; font-weight: 600; }

/* Award */
.award img { border-radius: var(--radius-lg); width: 100%; max-width: 420px; aspect-ratio: auto; box-shadow: 0 18px 40px rgba(42, 26, 20, 0.18); }

/* Flip book viewer */
.fb { margin-top: 28px; background: #2a1a14; border-radius: var(--radius-lg); padding: clamp(12px, 2.4vw, 28px); color: #efe6df; }
.fb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fb-tabs button { flex: 1 1 160px; text-align: left; background: rgba(255, 255, 255, 0.06); color: #efe6df; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-md); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.fb-tabs button small { display: block; font-weight: 400; font-size: 0.85rem; color: #cbbcb3; }
.fb-tabs button[aria-selected="true"] { background: var(--turmeric); color: var(--ink); border-color: var(--turmeric); }
.fb-tabs button[aria-selected="true"] small { color: var(--ink); }
.fb-stage { margin: 0 auto; width: min(100%, calc((100vh - 220px) * 1.414)); min-height: 300px; outline: none; }
.fb-stage:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 6px; }
.fb-page { background: #fff; overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.fb-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.fb-btn { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; min-width: 44px; height: 44px; font: inherit; font-size: 1.2rem; cursor: pointer; }
.fb-btn:hover { background: var(--turmeric); color: var(--ink); }
.fb-btn.fb-wide { font-size: 0.95rem; padding: 0 16px; }
.fb-count { min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; }
.fb-spacer { flex: 1; }
.fb-link { color: #f3d9a0; font-size: 0.95rem; }
.fb-link:hover { color: var(--turmeric); }
.fb.is-full, .fb.fb-pseudo-full { border-radius: 0; display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.fb.fb-pseudo-full { position: fixed; inset: 0; z-index: 100; }
.fb.is-full .fb-stage, .fb.fb-pseudo-full .fb-stage { width: min(100%, calc((100vh - 170px) * 1.414)); }
.fb.fb-fallback .fb-stage { max-height: 80vh; overflow-y: auto; width: min(100%, 640px); }
.fb.fb-fallback .fb-page { margin-bottom: 10px; }
@media (max-width: 560px) { .fb-link { display: none; } .fb-stage { width: 100%; } }

/* Bulletin issues */
.issue { padding: 36px 0; border-top: 1px solid var(--line); }
.issue:first-of-type { border-top: 0; padding-top: 0; }
.issue-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.issue-head img { width: 100%; aspect-ratio: 1100 / 1556; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 0 12px 26px rgba(42, 26, 20, 0.18); }
.issue h2 { margin-bottom: 6px; }
.issue .meta { color: var(--leaf); font-weight: 600; margin-bottom: 12px; }
.highlights { margin: 12px 0 18px; padding-left: 1.2em; max-width: var(--measure); }
.highlights li { margin-bottom: 8px; }
.highlights li strong { color: var(--kumkum); font-weight: 600; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 20px; }
.zone { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--turmeric); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.97rem; }
.zone strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--kumkum); }
@media (max-width: 640px) { .issue-head { grid-template-columns: 110px minmax(0, 1fr); } }
@media (max-width: 420px) { .issue-head { grid-template-columns: 1fr; } .issue-head img { max-width: 160px; } }

/* 10 Years hero */
.jubilee { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(120% 90% at 85% 20%, #b0302a 0%, var(--kumkum) 45%, var(--kumkum-deep) 100%); padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(28px, 4vw, 48px); }
.jubilee-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.jubilee h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.08; margin-bottom: 20px; }
html[lang="ta"] .jubilee h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.3; }
.jubilee .eyebrow { color: var(--turmeric); }
.jubilee-lede { color: #f6e7e2; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; max-width: 60ch; }
.jubilee-mantra { display: flex; flex-direction: column; gap: 2px; margin: 22px 0 6px; padding-left: 16px; border-left: 3px solid var(--turmeric); }
.jubilee-mantra span[lang="sa"] { font-family: var(--font-display); font-size: 1.35rem; color: var(--turmeric); }
.jubilee-mantra span:last-child { color: #f0d9d2; font-size: 0.98rem; }
.jubilee .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.jubilee .btn-ghost { color: var(--white); }
.jubilee-mark { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.jubilee-mark::before { content: ""; position: absolute; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(232, 163, 23, 0.55); animation: spin 60s linear infinite; }
.jubilee-mark::after { content: ""; position: absolute; width: min(82%, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 163, 23, 0.28), rgba(232, 163, 23, 0) 70%); }
.ten { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(9rem, 22vw, 19rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--turmeric); background: var(--ten-img) center / cover no-repeat, var(--turmeric); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px var(--turmeric); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35)); }
.ten-label { position: relative; z-index: 1; margin-top: 6px; font-size: 0.95rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--turmeric); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jubilee-mark::before { animation: none; } }
.journey { position: relative; z-index: 1; list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.journey::before { content: ""; position: absolute; top: 0; left: 6px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(232, 163, 23, 0.35), var(--turmeric)); }
.journey li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.journey li::before { content: ""; position: absolute; top: -29px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--kumkum); border: 3px solid var(--turmeric); }
.journey li:last-child::before { background: var(--turmeric); box-shadow: 0 0 0 6px rgba(232, 163, 23, 0.25); }
.j-yr { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--turmeric); line-height: 1; }
.j-txt { color: #f6e7e2; font-size: 0.97rem; line-height: 1.45; max-width: 24ch; }
@media (max-width: 820px) {
  .jubilee-inner { grid-template-columns: 1fr; }
  .jubilee-mark { order: -1; min-height: 250px; margin-top: -8px; }
  .jubilee-mark::before { width: 230px; }
  .jubilee-mark::after { width: 190px; }
  .ten { font-size: 8.5rem; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .journey::before { display: none; }
  .journey li { padding-top: 0; padding-left: 22px; }
  .journey li::before { top: 4px; }
}
.jubilee .kolam { opacity: 0.08; inset: auto -90px -120px auto; }

/* Scrolling year-by-year story */
.story { position: relative; margin-top: 40px; display: flex; flex-direction: column; gap: clamp(28px, 5vw, 64px); }
.story::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); background: linear-gradient(var(--turmeric), var(--kumkum)); }
.story-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.story-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--turmeric); border: 4px solid var(--turmeric-soft); box-shadow: 0 0 0 2px var(--kumkum); z-index: 1; }
.story-item:nth-child(even) .story-img { order: 2; }
.story-img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px rgba(42, 26, 20, 0.18); aspect-ratio: 4 / 3; background: var(--white); }
.story-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform 0.8s ease; }
.story-item:hover .story-img img { transform: scale(1.04); }
.story-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(42, 26, 20, 0.08); }
.story-yr { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--kumkum); }
.story-tag { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--ink); margin: 8px 0 10px; }
.story-card p { margin: 0; color: var(--ink-soft); }
.story.armed .story-item .story-img, .story.armed .story-item .story-card { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.story.armed .story-item:nth-child(odd) .story-img, .story.armed .story-item:nth-child(even) .story-card { transform: translateX(-60px); }
.story.armed .story-item:nth-child(odd) .story-card, .story.armed .story-item:nth-child(even) .story-img { transform: translateX(60px); }
.story.armed .story-item .story-card { transition-delay: 0.15s; }
.story.armed .story-item.in .story-img, .story.armed .story-item.in .story-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .story.armed .story-item .story-img, .story.armed .story-item .story-card { opacity: 1; transform: none; transition: none; } }
@media (max-width: 760px) {
  .story::before { left: 9px; }
  .story-item { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .story-item::before { left: 10px; top: 22px; }
  .story-item:nth-child(even) .story-img { order: 0; }
  .story.armed .story-item .story-img, .story.armed .story-item .story-card { transform: translateY(40px) !important; }
  .story.armed .story-item.in .story-img, .story.armed .story-item.in .story-card { transform: none !important; }
}

/* Programme card images */
.prog { overflow: hidden; }
.prog-img { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 10px; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 45%; background: var(--turmeric-soft); }

/* Messages open the full letter */
.message.zoomable { cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.message.zoomable:hover, .message.zoomable:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(42, 26, 20, 0.14); }
.msg-open { font-weight: 600; color: var(--kumkum); font-size: 0.95rem; }
.msg-open::after { content: " \2197"; }
img.zoomable { cursor: zoom-in; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 8, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.lb[hidden] { display: none; }
.lb img { max-width: min(100%, 1100px); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #fff; }
.lb-cap { color: #efe6df; margin: 12px 0 0; text-align: center; font-size: 0.95rem; }
.lb-close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--turmeric); color: var(--ink); }

/* Souvenir chapter shortcuts */
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chapters button { display: inline-flex; align-items: baseline; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.93rem; color: var(--ink); cursor: pointer; }
.chapters button small { color: var(--ink-soft); font-size: 0.78rem; }
.chapters button:hover, .chapters button[aria-current="true"] { background: var(--kumkum); border-color: var(--kumkum); color: var(--white); }
.chapters button:hover small, .chapters button[aria-current="true"] small { color: #f3d9a0; }
#reader { scroll-margin-top: 90px; }