/* Styles for the parts that did not exist in the React site (articles, form messages, Malayalam). */
body, button, input, textarea { font-family: var(--primary-font), "Noto Sans Malayalam", "Malayalam MN", "Malayalam Sangam MN", sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: var(--alt-font), "Noto Sans Malayalam", "Malayalam MN", "Malayalam Sangam MN", sans-serif; }
.chev { transition: transform .2s; font-size: 11px; margin-left: 6px; }
.menu__link svg.chev { vertical-align: middle; }
svg { flex: none; }
.form-result[hidden] { display: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.section-head .section-heading { margin-bottom: 0; }
.text-link { color: var(--base); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.article-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.article-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.article-cats a { padding: 7px 16px; border-radius: 999px; background: var(--light); color: var(--dark); font-size: 14px; font-weight: 600; line-height: 1.4; border: 1px solid var(--line); transition: all .18s; }
.article-cats a:hover { border-color: var(--base); color: var(--base); }
.article-cats a.active { background: var(--base); border-color: var(--base); color: #fff; }
.article-cats--sub { margin-bottom: 14px; }
.article-cats--sub a { font-size: 13px; background: #fff; }
.article-search input { width: 260px; max-width: 100%; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
.article-search input:focus { outline: none; border-color: var(--base); box-shadow: 0 0 0 3px var(--base-soft); }
.article-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 26px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card__media { display: block; aspect-ratio: 16 / 10; background: var(--base-soft); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__ph { display: grid; place-items: center; height: 100%; font-size: 44px; color: var(--base); opacity: .35; }
.article-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__title { font-size: 19px; line-height: 1.45; }
.article-card__title a:hover { color: var(--base); }
.article-card__excerpt { margin: 0; font-size: 15px; line-height: 1.75; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--base); background: var(--base-soft); padding: 3px 12px; border-radius: 999px; line-height: 1.7; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--gray); }
.article-meta svg { color: var(--base); }
.article-meta .dot { opacity: .5; }
.article-empty { text-align: center; padding: 60px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 40px; font-weight: 600; }
.pager a { color: var(--base); }

.article__head { margin-bottom: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.article__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.4; letter-spacing: -.01em; }
.article__figure { margin: 0 0 30px; }
.article__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article__figure figcaption { margin-top: 10px; font-size: 14px; text-align: center; color: var(--gray); }
.article__body p { font-size: 18px; line-height: 1.7; color: #3b3e45; margin-bottom: 1rem; }
.article__body a { color: var(--base); text-decoration: underline; }
.article__back { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-preview { background: #fdecec; border: 1px solid var(--yellow); color: var(--dark); border-radius: 10px; padding: 10px 16px; margin-bottom: 22px; font-size: 14px; font-weight: 600; }

/* home page: one article per row, image left / text right */
.article-rows { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.article-rows .article-card { flex-direction: row; align-items: stretch; }
.article-rows .article-card__media { flex: 0 0 300px; aspect-ratio: auto; min-height: 190px; }
.article-rows .article-card__body { justify-content: center; padding: 22px 28px; }
.article-rows .article-card__title { font-size: 21px; }
@media (max-width: 640px) {
  .article-rows .article-card { flex-direction: column; }
  .article-rows .article-card__media { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

/* video that cannot be embedded: thumbnail that opens YouTube */
.video__link { position: absolute; inset: 0; display: block; }
.video__link img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 14px; }
.video__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video__label { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.7); }

/* article body (rich text) */
.article__body h2 { font-size: 28px; margin: 1.5rem 0 .7rem; line-height: 1.4; }
.article__body h3 { font-size: 22px; margin: 1.2rem 0 .6rem; line-height: 1.4; }
.article__body strong, .article__body b { color: var(--dark); font-weight: 700; }
.article__body ul, .article__body ol { margin: 0 0 1rem; padding-left: 1.6rem; list-style: revert; font-size: 18px; line-height: 1.7; color: #3b3e45; }
.article__body ul { list-style: disc; } .article__body ol { list-style: decimal; }
.article__body blockquote { margin: 0 0 1rem; padding: 6px 0 6px 22px; border-left: 4px solid var(--base); font-size: 19px; font-style: italic; color: var(--dark); }
.article__body .ql-align-center { text-align: center; }
.article__body .ql-align-right { text-align: right; }
.article__body .ql-align-justify { text-align: justify; }

/* advertisements (1200 x 800) */
.ad { position: relative; margin: 1.4rem auto; max-width: 640px; }
.ad img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--light); }
.ad__tag { position: absolute; right: 10px; top: 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--gray); padding: 1px 10px; border-radius: 999px; line-height: 1.8; }
.ad--wide { grid-column: 1 / -1; width: 100%; max-width: 720px; margin: 4px auto; }

/* tall ad inside a photo grid */
.shot--ad { position: relative; align-self: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.shot--ad img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

/* tall ad among the article cards (same size as the State Conference ad) */
.ad-tall { position: relative; align-self: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ad-tall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

/* white footer, dark text */
.site-footer { background: #fff; color: var(--gray); font-weight: 400; border-top: 1px solid var(--line); }
.footer-top { border-bottom-color: var(--line); background: var(--light); }
.footer-top h5, .footer-h { color: var(--dark); }
.footer-top span { color: var(--gray); }
.footer-grid ul:not(.social) li a:hover { color: var(--base); }
.footer-bottom { border-top-color: var(--line); }
.footer-bottom a { color: var(--dark); font-weight: 600; }
.footer-bottom a:hover { color: var(--base); }
.site-footer .social a { border-color: var(--line); color: var(--dark); }
.site-footer .social a:hover { color: #fff; }
.newsletter input { background: #fff; border-color: var(--line); color: var(--dark); }
.newsletter input::placeholder { color: var(--gray); opacity: .8; }
.newsletter input:focus { border-color: var(--base); box-shadow: 0 0 0 3px var(--base-soft); }
.footer-logo img { height: 52px; }

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

/* text alignment: long paragraphs are justified (edge to edge); headings, buttons and small cards are not */
.about__text p,
.narrow .reveal p,
.accordion__panel p,
.article__body p,
.article__body li,
.shot figcaption p,
.contact-intro__text p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.shot figcaption p:has(> .text-link) { text-align: left; }
.article-card__excerpt { text-align: justify; text-justify: inter-word; }
/* explicit alignment chosen in the article editor always wins */
.article__body .ql-align-center { text-align: center; }
.article__body .ql-align-right { text-align: right; }
.article__body .ql-align-justify { text-align: justify; }
/* headings and short lines read better left/centre aligned */
.article__body h2, .article__body h3, .article__body blockquote { text-align: left; }
.article__head, .article__figure figcaption { text-align: left; }
.person__body p, .info-card p, .tile p, .membership, .slide3__content p { text-align: inherit; }

/* phones: descriptions stay justified (edge to edge) too. Long Malayalam words may wrap inside the line to keep gaps small. */
@media (max-width: 760px) {
  .about__text p, .narrow .reveal p, .accordion__panel p, .article__body p, .article__body li,
  .shot figcaption p, .contact-intro__text p, .article-card__excerpt, .article__summary {
    text-align: justify; text-justify: inter-word; overflow-wrap: break-word; word-spacing: -0.02em; line-height: 1.75;
  }
  .article__body .ql-align-center { text-align: center; }
  .article__body .ql-align-right { text-align: right; }
  .article__body .ql-align-justify { text-align: justify; }
  .topbar__msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; max-width: 100%; }
}

.article__summary { font-size: 19px; line-height: 1.7; color: var(--dark); text-align: justify; text-justify: inter-word; margin: 0; font-weight: 500; }

/* Article page banner: the article's own image (or the common banner) with the title over it */
.article-hero { min-height: clamp(300px, 42vw, 440px); }
.article-hero::before { background: linear-gradient(180deg, rgb(29 28 30 / 0.45) 0%, rgb(29 28 30 / 0.78) 100%); }
.article-hero .page-hero__inner { padding-block: 64px 48px; max-width: 900px; }
.article-hero__cat { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.page-hero h1.article-hero__title { display: block; font-size: clamp(26px, 4.6vw, 44px); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .5); margin: 0 0 18px; text-align: left; }
.article-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: rgb(255 255 255 / .88); }
.article-hero__meta .dot { opacity: .6; }
.article__caption { margin: 0 0 22px; font-size: 14px; color: var(--gray); text-align: left; font-style: italic; }
