/*
Theme Name: Total Filmi
Theme URI: https://totalfilmi.com
Author: Total Filmi
Description: The totalfilmi.com news theme, built from the client's design handoff: pink #FB0068, ink and white; Archivo with Mukta for the Devanagari; square corners, no shadows, no gradients; ruled grids; black-and-white photography. Box Office Live ticker, bilingual header and nav, lead story with its slate bar, release calendar, Latest with box office and Most Read, The Verdict reviews, the newsletter band; article, section, search, 404 and page templates in the same system.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: total-filmi
Tags: news, blog, two-columns, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ---- tokens (README "Design tokens") ---- */
:root {
  --tf-pink: #FB0068;
  --tf-pink-600: #D9005A;
  --tf-pink-700: #B8004C;
  --tf-pink-200: #FFD9E8;
  --tf-pink-100: #FFEFF5;
  --tf-ink: #201E1D;
  --tf-ink-2: #444141;
  --tf-grey: #605D5D;
  --tf-grey-light: #BAB6B6;
  --tf-line-soft: #D7D3D3;
  --tf-white: #FFFFFF;
  --tf-font: "Archivo", "Mukta", system-ui, sans-serif;
  --tf-font-hi: "Mukta", "Archivo", sans-serif;
  --tf-rule: 2px solid var(--tf-ink);
  --tf-max: 1360px;
  --tf-ease: .12s ease-out;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--tf-white); color: var(--tf-ink); font-family: var(--tf-font); font-size: 15px; line-height: 1.55; font-weight: 400; text-align: left; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--tf-font); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--tf-pink-700); text-decoration: none; transition: color var(--tf-ease), background-color var(--tf-ease), border-color var(--tf-ease); }
a:hover { color: var(--tf-pink); }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--tf-pink); outline-offset: 2px; }
[lang="hi"], .tf-hi { font-family: var(--tf-font-hi); }
mark.tf-hl { background: none; color: var(--tf-pink); }
abbr[title] { text-decoration: none; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100; left: 8px; top: 8px; padding: 12px 16px; background: var(--tf-ink); color: #fff; font-weight: 800; }
.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 24px 12px 0; }
.alignright { float: right; margin: 0 0 12px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--tf-grey); }
.sticky, .bypostauthor { /* no special treatment: the lead is chosen, not decorated */ }

.tf-wrap { max-width: var(--tf-max); margin: 0 auto; padding: 0 24px; }

/* the logo's diamond: a square at 45° */
.tf-dia { display: inline-block; flex: none; width: 10px; height: 10px; transform: rotate(45deg); }
.tf-dia--pink { background: var(--tf-pink); }
.tf-dia--line { border: 2px solid var(--tf-ink); }
.tf-dia--soft { border: 2px solid var(--tf-line-soft); }
.tf-dia--blush { background: var(--tf-pink-200); }

/* buttons: square, labels flush left, icon after */
.tf-btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 150px; height: 44px; padding: 0 16px; border: 0; font-weight: 800; font-size: 14px; line-height: 1; text-align: left; cursor: pointer; white-space: nowrap; }
.tf-btn--line { border: 2px solid #fff; background: transparent; color: #fff; }
.tf-btn--line:hover { background: #fff; color: var(--tf-pink); }
.tf-btn--ink { background: var(--tf-ink); color: #fff; }
.tf-btn--ink:hover { background: #000; color: #fff; }
.tf-btn:disabled { cursor: progress; }
.tf-ico { flex: none; display: block; }

/* small type the system repeats */
.tf-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-pink-700); line-height: 1.2; }
.tf-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.12; margin: 0; }
.tf-h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.tf-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.015em; }
.tf-more { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---- 1. Box Office ticker ---- */
@keyframes tfTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tf-ticker { display: flex; align-items: stretch; height: 38px; background: var(--tf-ink); color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; }
.tf-ticker__label { flex: none; display: flex; align-items: center; padding: 0 16px; background: var(--tf-pink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tf-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.tf-ticker__track { display: flex; width: max-content; animation: tfTick 40s linear infinite; }
.tf-ticker__set { display: flex; align-items: center; gap: 20px; padding-left: 20px; }
.tf-ticker__item { white-space: nowrap; }
.tf-ticker .tf-dia { width: 8px; height: 8px; }
.tf-ticker:hover .tf-ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tf-ticker__track { animation: none; }
  .tf-ticker__viewport { overflow-x: auto; }
  .tf-ticker__set[aria-hidden="true"] { display: none; }
}

/* ---- 2. Header ---- */
.tf-head { background: var(--tf-pink); color: #fff; }
.tf-head__in { max-width: var(--tf-max); margin: 0 auto; padding: 8px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 112px; }
.tf-head__logo { display: block; justify-self: start; line-height: 0; }
.tf-head__img { display: block; height: 96px; width: auto; }
.tf-head__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.tf-head :focus-visible { outline-color: #fff; }
.tf-date { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.tf-date__en { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tf-date__hi { font-weight: 500; color: var(--tf-pink-200); }

/* the search panel under the header (the button toggles it; /?s= and #tf-search open it without JS) */
.tf-search { display: none; padding: 16px 0; background: #fff; border-bottom: var(--tf-rule); }
.tf-search.is-open, .tf-search:target { display: block; }
.tf-sform__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 720px; border: var(--tf-rule); }
.tf-sform input[type="search"] { height: 52px; min-width: 0; padding: 0 16px; border: 0; background: #fff; color: var(--tf-ink); font-size: 16px; -webkit-appearance: none; appearance: none; }
.tf-sform input[type="search"]:focus-visible { outline: 2px solid var(--tf-pink); outline-offset: -4px; }
.tf-sform .tf-btn { height: 52px; font-size: 15px; }

/* ---- 3. Primary nav: ruled grid, English over Hindi ---- */
.tf-nav { border-bottom: var(--tf-rule); background: #fff; }
.tf-nav__toggle { display: none; }
.tf-nav__grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--tf-max); display: grid; grid-template-columns: repeat(var(--cols-w, 8), minmax(0, 1fr)); gap: 2px; background: var(--tf-ink); }
.tf-nav__grid > li { display: flex; min-width: 0; background: #fff; }
.tf-nav__item { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 24px; background: #fff; color: var(--tf-ink); min-width: 0; }
.tf-nav__en { font-weight: 800; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tf-nav__hi { font-weight: 500; font-size: 13px; line-height: 1.3; color: var(--tf-grey); }
.tf-nav__item:hover, .tf-nav__item.is-current { background: var(--tf-pink-100); color: var(--tf-pink-700); }
.tf-nav__item.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tf-pink); }
/* a short last row is completed by its last cell, so the ink ground never shows through */
@media (min-width: 1100px) {
  .tf-nav__grid.wrap-w > li:nth-child(8n+1):last-child { grid-column: span 8; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+2):last-child { grid-column: span 7; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+3):last-child { grid-column: span 6; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+4):last-child { grid-column: span 5; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+5):last-child { grid-column: span 4; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+6):last-child { grid-column: span 3; }
  .tf-nav__grid.wrap-w > li:nth-child(8n+7):last-child { grid-column: span 2; }
}

/* ---- layout: ruled two-column split (main 2fr, sidebar 1fr) ---- */
.tf-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2px; background: var(--tf-ink); border-bottom: var(--tf-rule); }
.tf-split > * { background: #fff; min-width: 0; }
.tf-split--solo, .tf-split--side { grid-template-columns: minmax(0, 1fr); }

/* ---- 4. Lead + Also Rolling ---- */
.tf-lead { padding: 24px 24px 32px 0; display: flex; flex-direction: column; gap: 20px; }
.tf-split--solo > .tf-lead { padding-right: 0; }
.tf-slate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--tf-ink); border: var(--tf-rule); }
.tf-slate__cell { display: flex; flex-direction: column; padding: 8px 12px; background: #fff; min-width: 0; }
.tf-slate__k { font-size: 10px; letter-spacing: .1em; font-weight: 600; color: var(--tf-grey); line-height: 1.4; }
.tf-slate__v { font-weight: 800; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.tf-slate__reel { background: var(--tf-pink); color: #fff; }
.tf-slate__reel .tf-slate__k { color: #fff; }
.tf-slate__reel .tf-slate__v { font-size: 22px; line-height: 1; }
.tf-lead__h { font-size: clamp(36px, 5vw, 68px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.tf-lead__h a, .tf-art__h a { color: var(--tf-ink); }
.tf-lead__h a:hover { color: var(--tf-pink-700); }
.tf-lead__img { display: block; }
.tf-lead__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tf-lead__dek { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.tf-byline { display: flex; flex-direction: column; border-top: var(--tf-rule); padding-top: 8px; font-size: 13px; line-height: 1.5; }
.tf-byline__name { font-weight: 800; color: var(--tf-ink); }
.tf-byline__name:hover { color: var(--tf-pink-700); }
.tf-byline__role, .tf-byline__date { color: var(--tf-grey); }
.tf-home .tf-byline__date { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

.tf-rolling { padding: 24px 0 24px 24px; display: flex; flex-direction: column; }
.tf-lhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: var(--tf-rule); padding-bottom: 8px; }
.tf-lhead__hi { font-size: 13px; font-weight: 500; color: var(--tf-grey); text-align: right; }
.tf-rolling__list, .tf-mostread__list { list-style: none; margin: 0; padding: 0; }
.tf-roll { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: var(--tf-rule); color: var(--tf-ink); }
.tf-roll__n { font-weight: 800; font-size: 36px; line-height: .9; letter-spacing: -.04em; color: var(--tf-pink); }
.tf-roll__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf-roll__title { font-weight: 800; font-size: 19px; line-height: 1.2; text-wrap: pretty; }
.tf-roll__time { font-size: 12px; color: var(--tf-grey); }
.tf-roll:hover { color: var(--tf-ink); }
.tf-roll:hover .tf-roll__title { color: var(--tf-pink-700); }

/* ---- section heads ---- */
.tf-shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: var(--tf-rule); padding-bottom: 8px; margin-bottom: 24px; }
.tf-shead__sub { font-size: 16px; font-weight: 500; color: var(--tf-grey); line-height: 1.3; }
.tf-shead--inline { align-items: center; }
.tf-shead--inline .tf-h2 { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; line-height: 1.25; }
.tf-shead__hi { font-weight: 800; color: var(--tf-pink); line-height: 1.25; letter-spacing: 0; }

/* ---- 5. Release calendar ---- */
.tf-cal { padding: 32px 0; border-bottom: var(--tf-rule); }
.tf-cal .tf-shead { border: 0; padding: 0; margin-bottom: 16px; }
.tf-legend { display: flex; gap: 20px; font-size: 12px; font-weight: 600; }
.tf-legend > span { display: flex; align-items: center; gap: 8px; }
.tf-cal__scroll { position: relative; overflow-x: auto; }
.tf-cal__scroll:focus-visible { outline-offset: -2px; }
.tf-cal__week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--tf-ink); border: var(--tf-rule); }
.tf-cal__day { position: relative; display: flex; flex-direction: column; min-height: 200px; min-width: 0; background: #fff; }
.tf-cal__dh { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-bottom: var(--tf-rule); }
.tf-cal__date { font-weight: 800; font-size: 28px; line-height: 1; }
.tf-cal__wd { font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--tf-grey); }
.tf-cal__day.is-today .tf-cal__dh { background: var(--tf-pink); color: #fff; border-bottom: 0; }
.tf-cal__day.is-today .tf-cal__wd { color: #fff; }
.tf-cal__films { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.tf-cal__film { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--tf-ink); }
a.tf-cal__film:hover { color: var(--tf-pink-700); }
.tf-cal__film .tf-dia { width: 9px; height: 9px; margin-top: 6px; }
.tf-cal__title { display: block; font-weight: 800; font-size: 15px; line-height: 1.25; }
.tf-cal__where { display: block; font-size: 12px; color: var(--tf-grey); }

/* ---- 6. Latest + sidebar ---- */
.tf-latest { padding: 32px 24px 32px 0; }
.tf-split--side > .tf-side { padding-left: 0; }
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.tf-grid__ad { grid-column: 1 / -1; }
.tf-card { display: flex; flex-direction: column; gap: 10px; color: var(--tf-ink); min-width: 0; }
.tf-card:hover { color: var(--tf-ink); }
.tf-card__meta { display: flex; justify-content: space-between; gap: 12px; border-top: var(--tf-rule); padding-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.tf-card__time { color: var(--tf-grey); white-space: nowrap; }
.tf-card__title { font-weight: 800; font-size: 20px; line-height: 1.2; text-wrap: pretty; }
.tf-card:hover .tf-card__title { color: var(--tf-pink-700); }

/* photographs: black and white by CSS on the frame, never in the upload; a still too small for its
   frame is letterboxed on the ink at its own size (scale-down), never blown up */
.tf-media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--tf-ink); filter: grayscale(1) contrast(1.08); }
.tf-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tf-media.is-small img { object-fit: scale-down; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-2x3 { aspect-ratio: 2 / 3; }

/* pagination: joined 44px cells on the ink, "Next →" as an ink block */
.tf-pager { display: flex; flex-wrap: wrap; gap: 2px; width: max-content; max-width: 100%; margin-top: 32px; border: var(--tf-rule); background: var(--tf-ink); }
.tf-pager .page-numbers, .tf-pager--pages > a, .tf-pager--pages > span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; background: #fff; color: var(--tf-ink); font-weight: 800; }
.tf-pager a.page-numbers:hover, .tf-pager--pages > a:hover { background: var(--tf-pink-100); color: var(--tf-pink-700); }
.tf-pager .page-numbers.current, .tf-pager--pages > span.post-page-numbers.current { background: var(--tf-pink); color: #fff; }
.tf-pager .page-numbers.dots { color: var(--tf-grey); }
.tf-pager .page-numbers.prev, .tf-pager .page-numbers.next { justify-content: flex-start; padding: 0 16px; background: var(--tf-ink); color: #fff; }
.tf-pager .page-numbers.prev:hover, .tf-pager .page-numbers.next:hover { background: var(--tf-pink); color: #fff; }

.tf-side { padding: 32px 0 32px 24px; display: flex; flex-direction: column; gap: 40px; }

/* box office table */
.tf-bo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--tf-ink); color: #fff; }
.tf-bo__title { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.tf-bo__unit { font-size: 13px; font-weight: 500; color: var(--tf-pink-200); text-align: right; }
.tf-bo__body { border: var(--tf-rule); border-top: 0; }
.tf-bo__list { list-style: none; margin: 0; padding: 0; }
.tf-bo__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: var(--tf-rule); }
.tf-bo__rank { font-weight: 800; font-size: 20px; color: var(--tf-pink); }
.tf-bo__film { display: flex; flex-direction: column; min-width: 0; }
.tf-bo__film strong { font-weight: 800; font-size: 15px; line-height: 1.3; }
.tf-bo__film span { font-size: 12px; color: var(--tf-grey); line-height: 1.4; }
.tf-bo__net { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.tf-bo__note { padding: 10px 16px; font-size: 12px; color: var(--tf-grey); }

/* most read */
.tf-mostread__row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: var(--tf-rule); color: var(--tf-ink); font-weight: 800; font-size: 16px; line-height: 1.25; }
.tf-mostread__row:hover { color: var(--tf-pink-700); }
.tf-mostread__n { color: var(--tf-pink); }

/* tags */
.tf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-tag { padding: 6px 10px; border: var(--tf-rule); color: var(--tf-ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.tf-tag:hover { background: var(--tf-pink); border-color: var(--tf-pink); color: #fff; }

/* ads */
.tf-ad { display: flex; flex-direction: column; gap: 6px; }
.tf-ad__label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-grey); }

/* ---- 7. The Verdict ---- */
.tf-verdict { padding: 32px 0 40px; }
.tf-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--tf-ink); border: var(--tf-rule); }
.tf-rcard { display: flex; flex-direction: column; background: #fff; color: var(--tf-ink); min-width: 0; }
.tf-rcard:hover { background: var(--tf-pink-100); color: var(--tf-ink); }
.tf-rcard .tf-media { border-bottom: var(--tf-rule); }
.tf-rcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.tf-rating { display: flex; gap: 6px; padding: 3px 0 3px 3px; }
.tf-rating .tf-dia { width: 14px; height: 14px; }
.tf-rating--lg { gap: 9px; }
.tf-rating--lg .tf-dia { width: 18px; height: 18px; }
.tf-rcard__film { font-weight: 800; font-size: 22px; line-height: 1.1; }
.tf-rcard__meta { font-size: 13px; color: var(--tf-grey); }
.tf-chip { align-self: flex-start; padding: 4px 10px; background: var(--tf-ink); color: #fff; font-weight: 800; font-size: 14px; line-height: 1.3; }
.tf-fill { background: #fff; }

/* ---- 8. Newsletter ---- */
.tf-news { background: var(--tf-pink); color: #fff; }
.tf-news__in { max-width: var(--tf-max); margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: end; }
.tf-news :focus-visible { outline-color: var(--tf-ink); }
.tf-news__dias { display: flex; gap: 10px; margin-bottom: 20px; padding-left: 4px; }
.tf-news__dias .tf-dia { width: 18px; height: 18px; }
.tf-news__h { font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.tf-news__form { display: flex; flex-direction: column; gap: 12px; }
.tf-news__label { font-family: var(--tf-font-hi); font-weight: 500; font-size: 16px; }
.tf-news__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 2px solid #fff; }
.tf-news__field input { height: 52px; min-width: 0; padding: 0 16px; border: 0; background: #fff; color: var(--tf-ink); font-size: 16px; -webkit-appearance: none; appearance: none; }
.tf-news__field input:focus-visible { outline: 2px solid var(--tf-ink); outline-offset: -4px; }
.tf-news__field .tf-btn { height: 52px; font-size: 15px; }
.tf-news__form.is-invalid .tf-news__field { outline: 2px solid var(--tf-ink); outline-offset: 0; }
.tf-news__msg { font-size: 14px; color: #fff; font-weight: 600; }
.tf-news__msg:empty { display: none; }
.tf-news__done { font-weight: 800; font-size: 20px; line-height: 1.3; color: #fff; }

/* ---- 9. Footer ---- */
.tf-foot { background: var(--tf-ink); color: #fff; }
.tf-foot__in { max-width: var(--tf-max); margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.tf-foot__logo { display: inline-block; line-height: 0; }
.tf-foot__img { display: block; height: 80px; width: auto; }
.tf-foot__tag { max-width: 360px; margin-top: 12px; font-size: 14px; color: var(--tf-grey-light); }
.tf-foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-top: 2px solid var(--tf-pink); padding-top: 12px; }
.tf-foot__h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; color: var(--tf-pink); }
.tf-foot__col a { color: #fff; font-size: 15px; }
.tf-foot__col a:hover { color: var(--tf-pink-200); }
.tf-foot__bar { max-width: var(--tf-max); margin: 0 auto; padding: 16px 24px; border-top: 2px solid var(--tf-ink-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--tf-grey-light); }
.tf-foot__bar a { color: var(--tf-grey-light); }
.tf-foot__bar a:hover { color: #fff; }

/* ---- derived templates: page header (archives, search, 404, pages) ---- */
.tf-phead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; padding: 32px 0 16px; border-bottom: var(--tf-rule); }
.tf-phead__main { display: flex; flex-direction: column; gap: 6px; max-width: 860px; min-width: 0; }
.tf-phead__hi { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--tf-grey); }
.tf-phead__desc { max-width: 680px; margin-top: 6px; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.tf-phead__count { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-grey); }
.tf-phead__count .tf-more { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tf-phead__search { padding: 16px 0; border-bottom: var(--tf-rule); }
.tf-verdict--archive { padding-top: 24px; }
.tf-empty { padding: 40px 0; display: flex; flex-direction: column; gap: 16px; }
.tf-empty__text { font-size: 18px; }
.tf-404__latest { padding: 32px 0 40px; }

/* ---- article ---- */
.tf-art-split > .tf-art { padding: 24px 24px 40px 0; }
.tf-art { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tf-art__h { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.tf-art__row--solo { grid-template-columns: minmax(0, 320px); }
.tf-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; border-top: var(--tf-rule); border-bottom: var(--tf-rule); }
.tf-rhead__score { font-weight: 800; font-size: 18px; }
.tf-rhead__meta { font-size: 13px; color: var(--tf-grey); }
.tf-rhead__meta strong { color: var(--tf-ink); }
.tf-art__fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tf-art__cap { font-size: 12px; line-height: 1.4; color: var(--tf-grey); }
.tf-art__updated { font-size: 12px; color: var(--tf-grey); }
.tf-entry { max-width: 680px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.55; text-wrap: pretty; overflow-wrap: break-word; }
.tf-entry > * { margin: 0; max-width: 100%; }
.tf-entry h2 { font-size: 28px; line-height: 1.15; margin-top: 8px; }
.tf-entry h3 { font-size: 22px; line-height: 1.2; margin-top: 8px; }
.tf-entry h4 { font-size: 18px; margin-top: 8px; }
.tf-entry ul, .tf-entry ol { padding-left: 1.2em; }
.tf-entry li + li { margin-top: 6px; }
.tf-entry a { font-weight: 600; }
.tf-entry figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tf-entry figure img, .tf-entry p > img, .tf-entry .wp-caption img { filter: grayscale(1) contrast(1.08); }
.tf-entry figcaption { font-size: 12px; line-height: 1.4; color: var(--tf-grey); }
.tf-entry blockquote, .tf-entry .wp-block-quote, .tf-entry .wp-block-pullquote { margin: 8px 0; padding: 16px 0; border: 0; border-top: var(--tf-rule); border-bottom: var(--tf-rule); font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-align: left; text-wrap: pretty; }
.tf-entry .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
.tf-entry blockquote p { margin: 0; }
.tf-entry blockquote cite, .tf-entry .wp-block-pullquote cite { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--tf-grey); }
.tf-entry iframe, .tf-entry video, .tf-entry embed { width: 100%; max-width: 100%; border: 0; }
.tf-entry iframe[src*="youtube"], .tf-entry iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.tf-entry .wp-block-embed__wrapper { position: relative; }
.tf-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tf-entry td, .tf-entry th { padding: 8px; border-bottom: var(--tf-rule); text-align: left; }
.tf-entry th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tf-entry pre { overflow-x: auto; }
.tf-related { margin-top: 12px; }
.tf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-art--page { padding: 0 0 56px; }
.tf-art--page .tf-phead { margin-bottom: 4px; }
.tf-page__fig { max-width: 880px; }

/* comments */
.tf-comments { margin-top: 12px; }
.tf-comments__list, .tf-comments__list .children { list-style: none; margin: 0; padding: 0; }
.tf-comments__list .children { padding-left: 24px; }
.tf-comments__list .comment-body { padding: 16px 0; border-bottom: var(--tf-rule); font-size: 16px; }
.tf-comments__list .comment-author { font-weight: 800; }
.tf-comments__list .comment-author .says { display: none; }
.tf-comments__list .comment-metadata, .tf-comments__list .reply { font-size: 12px; }
.tf-comments__list .comment-metadata a { color: var(--tf-grey); }
.tf-comments__list .comment-content p { margin: 8px 0 0; }
.comment-respond { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: var(--tf-rule); background: #fff; font-size: 16px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--tf-grey); }

/* ---- mid: 700–1099 ---- */
@media (max-width: 1099px) {
  .tf-nav__grid { grid-template-columns: repeat(var(--cols-m, 4), minmax(0, 1fr)); }
  .tf-nav__grid.wrap-m > li:nth-child(4n+1):last-child { grid-column: span 4; }
  .tf-nav__grid.wrap-m > li:nth-child(4n+2):last-child { grid-column: span 3; }
  .tf-nav__grid.wrap-m > li:nth-child(4n+3):last-child { grid-column: span 2; }
  .tf-split { grid-template-columns: minmax(0, 1fr); }
  .tf-lead { padding: 24px 0 32px; }
  .tf-rolling { padding: 24px 0 32px; }
  .tf-latest { padding: 32px 0; }
  .tf-side { padding: 32px 0; }
  .tf-art-split > .tf-art { padding: 24px 0 40px; }
  .tf-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-fill:not(.tf-fill--2) { display: none; }
  .tf-foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .tf-cal__week { grid-template-columns: repeat(7, 160px); width: max-content; }
}
@media (max-width: 899px) {
  .tf-news__in { grid-template-columns: minmax(0, 1fr); }
}

/* ---- small: 480–699 ---- */
@media (max-width: 699px) {
  .tf-head__in { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 8px; min-height: 0; padding: 12px 24px 14px; }
  .tf-head__img { height: 56px; }
  .tf-head__right { display: contents; }
  .tf-date { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 0 12px; }
  .tf-head__search { grid-row: 1; grid-column: 2; min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  .tf-head__search .tf-btn__label { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  .tf-head__sub { grid-row: 1; grid-column: 3; }

  .tf-nav__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px; padding: 0 24px; border: 0; background: #fff; color: var(--tf-ink); font-weight: 800; font-size: 15px; cursor: pointer; text-align: left; }
  .tf-nav__toggle .tf-hi { font-weight: 500; font-size: 13px; color: var(--tf-grey); margin-left: 6px; }
  .tf-nav__ico--close, .tf-nav__toggle[aria-expanded="true"] .tf-nav__ico--open { display: none; }
  .tf-nav__toggle[aria-expanded="true"] .tf-nav__ico--close { display: block; }
  .tf-nav__grid { display: none; grid-template-columns: repeat(var(--cols-s, 2), minmax(0, 1fr)); border-top: var(--tf-rule); }
  .tf-nav.is-open .tf-nav__grid, .no-js .tf-nav__grid { display: grid; }
  .no-js .tf-nav__toggle { display: none; }
  .no-js .tf-nav__grid { border-top: 0; }
  .tf-nav__grid.wrap-m > li:nth-child(n):last-child { grid-column: auto; }
  .tf-nav__grid.wrap-s > li:nth-child(2n+1):last-child { grid-column: span 2; }

  .tf-h2 { font-size: 26px; }
  .tf-lead__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tf-grid, .tf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-card__title { font-size: 18px; }
  .tf-roll__title { font-size: 18px; }
  .tf-entry blockquote, .tf-entry .wp-block-quote, .tf-entry .wp-block-pullquote { font-size: 26px; }
  /* the pager keeps to one row: previous, this page, next */
  .tf-pager .page-numbers:not(.current):not(.prev):not(.next) { display: none; }
}
@media (max-width: 559px) {
  .tf-slate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-foot__in { grid-template-columns: minmax(0, 1fr); }
}

/* ---- xs: under 480 ---- */
@media (max-width: 479px) {
  .tf-wrap { padding: 0 16px; }
  .tf-head__in { padding: 12px 16px 14px; }
  .tf-nav__toggle { padding: 0 16px; }
  .tf-nav__item { padding: 14px 16px; }
  .tf-grid, .tf-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .tf-rgrid { grid-template-columns: minmax(0, 1fr); }
  .tf-fill { display: none; }
  .tf-news__in { padding: 48px 16px; }
  .tf-foot__in { padding: 40px 16px 24px; }
  .tf-foot__bar { padding: 16px; }
  .tf-shead--inline { align-items: flex-end; }
}
@media (max-width: 379px) {
  .tf-head__sub { min-width: 0; }
}
