/*
Theme Name: The Mohali
Theme URI: https://themohali.com
Author: The Mohali
Description: Editorial city-magazine theme for The Mohali — Stories. People. Places. Mohali. Broadsheet layout, category landing pages, neighbourhood guides, Mohali Talk community page (bbPress-ready), built-in schema and Open Graph.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-mohali
Tags: news, blog, magazine, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens (edit these to restyle the whole site) ---------- */
:root {
  --tm-bg: #fdfdfb;
  --tm-bg-alt: #f6f6f4;
  --tm-ink: #121212;
  --tm-ink-soft: #333333;
  --tm-muted: #555555;
  --tm-faint: #8a8a86;
  --tm-numeral: #c9c9c5;
  --tm-rule: #dcdcda;
  --tm-rule-soft: #e6e6e4;
  --tm-chip: #b9b9b4;
  --tm-photo: #ececea;
  --tm-accent: #8a2318;
  --tm-dark: #121212;
  --tm-dark-text: #f4f4f2;
  --tm-dark-muted: #c9c9c5;
  --tm-dark-rule: #3a3a38;
  --tm-display: "Playfair Display", Georgia, serif;
  --tm-body: "Source Serif 4", Georgia, serif;
  --tm-ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --tm-wrap: 1240px;
  --tm-gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tm-bg); color: var(--tm-ink); font-family: var(--tm-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tm-muted); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
::selection { background: #f0d9d5; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.tm-skip { position: absolute; left: -9999px; top: 0; background: var(--tm-ink); color: #fff; padding: 8px 14px; z-index: 999; }
.tm-skip:focus { left: 8px; top: 8px; color: #fff; }
.tm-wrap { max-width: var(--tm-wrap); margin: 0 auto; padding: 0 var(--tm-gutter); }
.tm-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--tm-gutter); }
.tm-read { max-width: 680px; margin: 0 auto; padding: 0 var(--tm-gutter); }

/* ---------- Type helpers ---------- */
.tm-kicker { font-family: var(--tm-ui); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-accent); }
.tm-kicker--muted { color: var(--tm-faint); }
.tm-label { font-family: var(--tm-ui); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--tm-ink); padding-bottom: 8px; margin: 0 0 4px; }
.tm-meta { font-family: var(--tm-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-faint); }
.tm-dek { font-style: italic; color: var(--tm-muted); }
.tm-title { font-family: var(--tm-display); font-weight: 700; line-height: 1.25; margin: 0; }
.tm-h1 { font-family: var(--tm-display); font-weight: 900; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.tm-h2 { font-family: var(--tm-display); font-weight: 900; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; margin: 0; }
.tm-link-arrow { font-family: var(--tm-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tm-link-arrow:hover { color: var(--tm-accent); }

/* ---------- Buttons ---------- */
.tm-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--tm-ink); color: #fff; border: none; padding: 13px 22px; font-family: var(--tm-ui); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-align: left; }
.tm-btn:hover { background: var(--tm-ink-soft); color: #fff; }
.tm-btn--sm { padding: 7px 14px; font-size: 10px; letter-spacing: .05em; }
.tm-btn--light { background: var(--tm-dark-text); color: var(--tm-ink); }
.tm-btn--light:hover { background: var(--tm-rule); color: var(--tm-ink); }
.tm-chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--tm-chip); font-family: var(--tm-ui); font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--tm-bg); cursor: pointer; }
.tm-chip:hover, .tm-chip.is-active { background: var(--tm-ink); border-color: var(--tm-ink); color: #fff; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Logo lockup ---------- */
.tm-logo { position: relative; display: inline-block; font-family: var(--tm-display); font-weight: 700; line-height: .85; letter-spacing: -.05em; color: var(--tm-ink); font-size: 48px; }
.tm-logo--lg { font-size: clamp(110px, 14vw, 160px); }
.tm-logo--md { font-size: 80px; }
.tm-logo__band { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); background: var(--tm-bg); padding: .02em .08em; font-family: var(--tm-ui); font-size: .105em; font-weight: 800; letter-spacing: .3em; white-space: nowrap; color: var(--tm-ink); }
.custom-logo { max-height: 150px; width: auto; }
.tm-compact .custom-logo { max-height: 44px; }

/* ---------- Header ---------- */
.tm-topbar { border-bottom: 1px solid var(--tm-rule); font-family: var(--tm-ui); font-size: 11px; font-weight: 500; color: #444; }
.tm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.tm-topbar__actions { display: flex; align-items: center; gap: 18px; }
.tm-masthead { border-bottom: 2px solid var(--tm-ink); }
.tm-masthead__in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 26px; padding-bottom: 18px; }
.tm-masthead__tag { font-family: var(--tm-ui); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--tm-muted); }
.tm-nav { border-top: 1px solid var(--tm-rule); background: var(--tm-bg); position: sticky; top: 0; z-index: 50; }
.admin-bar .tm-nav, .admin-bar .tm-compact { top: 32px; }
.tm-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 34px; overflow-x: auto; font-family: var(--tm-ui); }
.tm-menu a { display: block; padding: 12px 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.tm-menu a:hover, .tm-menu .current-menu-item > a, .tm-menu .current-category-ancestor > a { border-bottom-color: var(--tm-ink); color: var(--tm-ink); }
.tm-menu .tm-menu__talk > a, .tm-menu .menu-item-talk > a { color: var(--tm-accent); font-weight: 700; }
.tm-compact { position: sticky; top: 0; z-index: 50; background: var(--tm-bg); border-bottom: 1px solid var(--tm-rule); }
.tm-compact__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.tm-compact .tm-menu { justify-content: flex-start; gap: 20px; }
.tm-compact .tm-menu a { padding: 6px 0; font-size: 11px; border-bottom: 0; }
.tm-compact .tm-menu a:hover { color: var(--tm-accent); }
.tm-menu-toggle { display: none; background: none; border: 1px solid var(--tm-ink); padding: 7px 10px; cursor: pointer; font-family: var(--tm-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.is-scrolled .tm-compact__in { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Photos ---------- */
.tm-photo { position: relative; background: var(--tm-photo); overflow: hidden; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a:hover .tm-photo img { transform: scale(1.03); }
.tm-photo--16x9 { aspect-ratio: 16 / 9; }
.tm-photo--16x10 { aspect-ratio: 16 / 10; }
.tm-photo--4x3 { aspect-ratio: 4 / 3; }
.tm-photo--3x4 { aspect-ratio: 3 / 4; }
.tm-photo--3x2 { aspect-ratio: 3 / 2; }
.tm-photo--wide { aspect-ratio: 16 / 8; }
.tm-photo--thumb { width: 150px; height: 100px; flex: none; }
.tm-caption { font-family: var(--tm-ui); font-size: 12px; color: var(--tm-faint); padding-top: 8px; }

/* ---------- Sections ---------- */
.tm-section { border-bottom: 1px solid var(--tm-rule); padding: 36px 0 44px; }
.tm-section--strong { border-bottom: 2px solid var(--tm-ink); }
.tm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--tm-ink); padding-bottom: 10px; margin-bottom: 24px; }
.tm-section-head .tm-sub { font-family: var(--tm-body); font-weight: 400; font-style: italic; font-size: .55em; color: #666; }

/* columns with hairline rules */
.tm-cols { display: flex; flex-wrap: wrap; }
.tm-col { min-width: 0; }
.tm-col + .tm-col { border-left: 1px solid var(--tm-rule); }
.tm-col--pad-r { padding-right: 28px; }
.tm-col--pad-x { padding: 0 28px; }
.tm-col--pad-l { padding-left: 28px; }

/* list items */
.tm-item { display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--tm-rule-soft); }
.tm-item:last-child { border-bottom: 0; }
.tm-item .tm-title { font-size: 17px; }
.tm-item--ranked { flex-direction: row; gap: 12px; align-items: baseline; }
.tm-rank { font-family: var(--tm-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--tm-numeral); flex: none; }
.tm-row { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--tm-rule-soft); align-items: flex-start; }
.tm-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.tm-row .tm-title { font-size: 21px; line-height: 1.2; }
.tm-row__excerpt { font-size: 14px; line-height: 1.5; color: var(--tm-muted); margin: 0; }
.tm-card { display: flex; flex-direction: column; gap: 10px; }
.tm-card .tm-title { font-size: 21px; line-height: 1.2; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

/* front-page lead */
.tm-lead { display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.tm-lead .tm-h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; }
.tm-lead__dek { margin: 0; font-size: 18px; line-height: 1.5; max-width: 52ch; }
.tm-lead .tm-photo { width: 100%; }
.tm-lead .tm-caption { align-self: flex-start; text-align: left; }
.tm-feature .tm-title { font-size: 26px; line-height: 1.15; }

/* dark tracker band */
.tm-band { background: var(--tm-dark); color: var(--tm-dark-text); padding: 52px 0 56px; }
.tm-band a:hover { color: var(--tm-dark-text); }
.tm-band__in { display: flex; flex-wrap: wrap; gap: 40px; }
.tm-band__copy { flex: 1.4 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tm-band__kicker { font-family: var(--tm-ui); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #b9b9b4; }
.tm-band__title { font-family: var(--tm-display); font-weight: 900; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; margin: 0; }
.tm-band__text { margin: 0; font-size: 17px; color: var(--tm-dark-muted); max-width: 54ch; }
.tm-band__stats { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.tm-stat { border-top: 1px solid var(--tm-dark-rule); padding: 18px 0; display: flex; align-items: baseline; gap: 18px; }
.tm-stat:last-child { border-bottom: 1px solid var(--tm-dark-rule); }
.tm-stat__num { font-family: var(--tm-display); font-weight: 900; font-size: 52px; line-height: 1; }
.tm-stat__label { font-family: var(--tm-ui); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #b9b9b4; }

/* people feature */
.tm-profile { display: flex; flex-wrap: wrap; gap: 24px; }
.tm-profile__photo { flex: 1 1 200px; min-width: 0; }
.tm-profile__body { flex: 1.4 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tm-profile__quote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tm-muted); font-style: italic; }

/* weekend */
.tm-weekend-item { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--tm-rule-soft); }
.tm-weekend-item .tm-kicker { flex: none; width: 70px; }

/* ---------- Newsletter ---------- */
.tm-newsletter { border-bottom: 2px solid var(--tm-ink); }
.tm-newsletter__in { max-width: 760px; margin: 0 auto; padding: 64px var(--tm-gutter) 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.tm-newsletter__title { font-family: var(--tm-display); font-weight: 900; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 0; }
.tm-newsletter__text { margin: 0; font-size: 17px; color: var(--tm-muted); max-width: 52ch; font-style: italic; }
.tm-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 520px; }
.tm-newsletter__form input[type="email"] { flex: 1 1 260px; min-width: 0; font-size: 15px; padding: 13px 16px; border: 1px solid var(--tm-chip); background: #fff; font-family: var(--tm-ui); }
.tm-cta-band { background: var(--tm-dark); color: var(--tm-dark-text); }
.tm-cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.tm-cta-band__title { font-family: var(--tm-display); font-weight: 900; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; margin: 0; }

/* ---------- Footer ---------- */
.tm-footer__in { display: flex; flex-wrap: wrap; gap: 44px; padding-top: 48px; padding-bottom: 40px; }
.tm-footer__brand { flex: 1.4 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tm-footer__tagline { font-family: var(--tm-display); font-weight: 700; font-size: 24px; font-style: italic; }
.tm-footer__col { flex: 1 1 160px; min-width: 0; font-family: var(--tm-ui); font-size: 14px; }
.tm-footer__col h3 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-faint); margin: 0 0 14px; }
.tm-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-footer__col a:hover { color: var(--tm-accent); }
.tm-social { display: flex; gap: 16px; color: var(--tm-muted); }
.tm-social a:hover { color: var(--tm-ink); }
.tm-footer__base { border-top: 1px solid var(--tm-rule); }
.tm-footer__base-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-family: var(--tm-ui); font-size: 12px; color: var(--tm-faint); }

/* ---------- Article ---------- */
.tm-article-head { padding-top: 56px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.tm-article-head .tm-dek { margin: 0; font-size: 19px; line-height: 1.5; max-width: 54ch; }
.tm-byline { display: flex; flex-direction: column; gap: 6px; align-items: center; font-family: var(--tm-ui); padding-top: 6px; }
.tm-byline__name { font-size: 13px; font-weight: 700; }
.tm-article-hero { max-width: 1080px; margin: 0 auto; padding: 36px var(--tm-gutter) 0; }
.tm-content { padding-top: 44px; padding-bottom: 56px; font-size: 19px; line-height: 1.75; }
.tm-content > * + * { margin-top: 28px; }
.tm-content p { margin: 0; }
.tm-content > p:first-of-type::first-letter { font-family: var(--tm-display); font-weight: 900; font-size: 60px; line-height: .78; float: left; padding: 9px 12px 0 0; }
.tm-content h2 { font-family: var(--tm-display); font-weight: 900; font-size: 30px; line-height: 1.15; margin-bottom: 0; }
.tm-content h3 { font-family: var(--tm-display); font-weight: 700; font-size: 23px; line-height: 1.2; margin-bottom: 0; }
.tm-content a { color: var(--tm-accent); text-decoration: underline; text-underline-offset: 3px; }
.tm-content blockquote, .tm-content .wp-block-pullquote { margin-left: 0; margin-right: 0; padding: 24px; border: 0; border-top: 2px solid var(--tm-ink); border-bottom: 2px solid var(--tm-ink); text-align: center; font-family: var(--tm-display); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; }
.tm-content blockquote p { margin: 0; }
.tm-content blockquote cite { display: block; margin-top: 12px; font-family: var(--tm-ui); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-faint); }
.tm-content figure { margin-left: 0; margin-right: 0; }
.tm-content figcaption, .tm-content .wp-element-caption { font-family: var(--tm-ui); font-size: 12px; color: var(--tm-faint); margin-top: 8px; }
.tm-content .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
.tm-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.tm-content ul, .tm-content ol { padding-left: 1.2em; }
.tm-content table { width: 100%; border-collapse: collapse; font-family: var(--tm-ui); font-size: 14px; }
.tm-content th, .tm-content td { border-bottom: 1px solid var(--tm-rule); padding: 10px 8px; text-align: left; }
.tm-content th { border-bottom: 2px solid var(--tm-ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
/* Stat cards: add class "tm-stats" to a Columns block, put a Heading (number) + Paragraph (label) in each column */
.tm-content .tm-stats { border-top: 2px solid var(--tm-ink); border-bottom: 1px solid var(--tm-rule); gap: 0 !important; }
.tm-content .tm-stats > * { padding: 20px 16px; margin: 0 !important; }
.tm-content .tm-stats > * + * { border-left: 1px solid var(--tm-rule); }
.tm-content .tm-stats h2, .tm-content .tm-stats h3 { font-size: 38px; line-height: 1; margin: 0; }
.tm-content .tm-stats p { font-family: var(--tm-ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-faint); margin-top: 6px; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 40px; }
.tm-author-box { border-top: 1px solid var(--tm-rule); border-bottom: 1px solid var(--tm-rule); }
.tm-author-box__in { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.tm-author-box img { border-radius: 50%; width: 64px; height: 64px; flex: none; }
.tm-author-box__body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-author-box__name { font-family: var(--tm-display); font-weight: 700; font-size: 20px; }
.tm-author-box p { margin: 0; font-size: 15px; color: var(--tm-muted); }
.tm-related .tm-cols > .tm-card { flex: 1 1 260px; padding: 0 24px; }
.tm-related .tm-cols > .tm-card:first-child { padding-left: 0; }
.tm-related .tm-cols > .tm-card:last-child { padding-right: 0; }
.tm-related .tm-cols > .tm-card + .tm-card { border-left: 1px solid var(--tm-rule); }

/* ---------- Archive / category ---------- */
.tm-mast { border-bottom: 2px solid var(--tm-ink); padding: 48px 0 36px; }
.tm-mast__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.tm-mast .tm-h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.tm-mast__dek { margin: 0; font-size: 18px; max-width: 56ch; }
.tm-crumbs { font-family: var(--tm-ui); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-faint); }
.tm-crumbs a:hover { color: var(--tm-ink); }
.tm-crumbs .is-current { color: var(--tm-accent); }
.tm-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 8px; }
.tm-filters a { padding: 9px 16px; border: 1px solid var(--tm-ink); font-family: var(--tm-ui); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.tm-filters a:hover, .tm-filters a.is-active { background: var(--tm-ink); color: #fff; }
.tm-pagination { display: flex; gap: 8px; justify-content: center; padding: 32px 0 8px; font-family: var(--tm-ui); font-size: 13px; font-weight: 600; }
.tm-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--tm-chip); }
.tm-pagination .page-numbers.current, .tm-pagination a.page-numbers:hover { background: var(--tm-ink); border-color: var(--tm-ink); color: #fff; }
.tm-empty { padding: 48px 0; text-align: center; font-style: italic; color: var(--tm-faint); }

/* area picker */
.tm-areabar { background: var(--tm-bg-alt); border-bottom: 1px solid var(--tm-rule); }
.tm-areabar__in { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tm-areabar__label { font-family: var(--tm-ui); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-faint); margin-right: 6px; }
.tm-areabar .tm-chip { padding: 6px 12px; font-size: 11px; }

/* search */
.tm-search-hero { border-bottom: 2px solid var(--tm-ink); }
.tm-search-hero__in { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.tm-searchform { width: 100%; max-width: 640px; display: flex; }
.tm-searchform input[type="search"] { flex: 1; min-width: 0; font-size: 17px; padding: 16px 20px; border: 2px solid var(--tm-ink); border-right: 0; background: #fff; font-family: var(--tm-body); }
.tm-searchform button { border: 2px solid var(--tm-ink); }

/* ---------- Mohali Talk ---------- */
.tm-talk-mast__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding-top: 44px; padding-bottom: 32px; }
.tm-talk-mast .tm-h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.tm-talk { display: flex; flex-wrap: wrap; padding-top: 12px; padding-bottom: 56px; }
.tm-talk__main { flex: 2.2 1 520px; min-width: 0; padding-right: 28px; }
.tm-talk__side { flex: 1 1 280px; min-width: 0; padding: 22px 0 0 28px; border-left: 1px solid var(--tm-rule); display: flex; flex-direction: column; gap: 32px; }
.tm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.tm-steps li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; counter-increment: s; }
.tm-steps li::before { content: counter(s); font-family: var(--tm-display); font-weight: 900; font-size: 20px; color: var(--tm-numeral); flex: none; width: 18px; }
.tm-badge { display: inline-block; border: 1px solid var(--tm-ink); padding: 1px 6px; font-family: var(--tm-ui); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.widget { font-size: 14px; color: var(--tm-muted); }
.widget-title { font-family: var(--tm-ui); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--tm-ink); padding-bottom: 8px; margin: 0 0 12px; color: var(--tm-ink); }

/* bbPress skin */
#bbpress-forums { font-family: var(--tm-body); font-size: 16px; }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-search-results { border: 0; border-top: 2px solid var(--tm-ink); }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: transparent; border: 0; border-bottom: 1px solid var(--tm-rule); font-family: var(--tm-ui); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-faint); }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 0; border-bottom: 1px solid var(--tm-rule-soft); padding: 16px 0; }
#bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: transparent; }
#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink { font-family: var(--tm-display); font-weight: 700; font-size: 19px; line-height: 1.25; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: transparent; border-top: 1px solid var(--tm-rule); font-family: var(--tm-ui); font-size: 11px; color: var(--tm-faint); }
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { font-size: 16px; line-height: 1.65; }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--tm-rule); padding: 20px; }
#bbpress-forums fieldset.bbp-form legend { font-family: var(--tm-display); font-weight: 900; font-size: 22px; padding: 0 8px; }
#bbpress-forums input[type="text"], #bbpress-forums textarea, #bbpress-forums select { border: 1px solid var(--tm-chip); background: #fff; padding: 10px; border-radius: 0; }
#bbpress-forums .button, #bbpress-forums button.button, .bbp-submit-wrapper button { background: var(--tm-ink) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; padding: 11px 20px !important; font-family: var(--tm-ui) !important; font-weight: 700 !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
#bbpress-forums .bbp-breadcrumb { font-family: var(--tm-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-faint); }
#bbpress-forums .bbp-pagination-links .page-numbers { border: 1px solid var(--tm-chip); padding: 4px 10px; }
#bbpress-forums .bbp-pagination-links .current { background: var(--tm-ink); color: #fff; }

/* AnsPress (Q&A) skin */
#anspress { font-family: var(--tm-body); }
#anspress .ap-questions-title, #anspress .ap-q-title, #anspress .entry-title { font-family: var(--tm-display); font-weight: 700; line-height: 1.25; }
#anspress .ap-questions-item, #anspress .ap-question-item { border: 0; border-bottom: 1px solid var(--tm-rule-soft); padding: 18px 0; background: transparent; }
#anspress .ap-btn, #anspress .ap-btn-submit, #anspress button[type="submit"] { background: var(--tm-ink); color: #fff; border: 0; border-radius: 0; font-family: var(--tm-ui); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 11px 18px; }
#anspress .ap-vote, #anspress .ap-vote-net { font-family: var(--tm-ui); font-weight: 800; }
#anspress .ap-vote a:hover, #anspress .vote-up.active { color: var(--tm-accent); }
#anspress input[type="text"], #anspress textarea, #anspress select { border: 1px solid var(--tm-chip); border-radius: 0; background: #fff; }
#anspress .ap-avatar, #anspress .ap-q-cells .ap-avatar, #anspress img.avatar { display: none !important; }
#anspress .best-answer, #anspress .ap-best-answer-label { border-color: #2f6b3a; color: #2f6b3a; }
#anspress .ap-list-head, #anspress .ap-filters { font-family: var(--tm-ui); font-size: 12px; }

/* ---------- m/talk (Reddit-style community) ---------- */
.tm-t-layout { --t-accent: #d9542b; --t-accent-h: #b8431f; --t-green: #1f4d3f; --t-up: #e8562a; --t-down: #4a5bd4; }
.tm-t-layout { display: flex; flex-wrap: wrap; gap: 32px; font-family: var(--tm-ui); }
.tm-t-main { flex: 2.2 1 560px; min-width: 0; padding: 20px 0 64px; }
.tm-t-side { flex: 1 1 280px; min-width: 0; padding: 28px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.tm-t-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--t-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 9px; flex: none; }
.tm-t-mark--lg { width: 64px; height: 64px; font-size: 22px; border: 4px solid var(--tm-bg); }
.tm-t-banner { height: 96px; border-radius: 16px; background: var(--t-green); position: relative; overflow: hidden; margin-top: 4px; box-shadow: inset 0 -6px 0 #f2b134; }
.tm-t-banner::after { content: "m/talk"; position: absolute; right: -10px; bottom: -34px; font-family: var(--tm-display); font-weight: 900; font-size: 150px; line-height: 1; color: #2a6452; letter-spacing: -.04em; }
.tm-t-community { display: flex; align-items: flex-end; gap: 14px; padding: 0 0 18px 12px; flex-wrap: wrap; margin-top: -26px; position: relative; }
.tm-t-community__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tm-t-community__title { font-size: 26px; font-weight: 800; line-height: 1.1; }
.tm-t-meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--tm-faint); }
.tm-t-meta strong { color: var(--tm-ink); }
.tm-t-op { font-size: 11px; font-weight: 800; color: #fff; background: var(--t-accent); padding: 1px 6px; border-radius: 8px; }
.tm-t-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--t-accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font-family: var(--tm-ui); font-weight: 700; font-size: 13px; cursor: pointer; }
.tm-t-btn:hover { background: var(--t-accent-h); color: #fff; }
.tm-t-pill { display: inline-flex; align-items: center; gap: 8px; background: #efefed; border: 0; border-radius: 999px; height: 38px; padding: 0 16px; font-family: var(--tm-ui); font-size: 14px; font-weight: 700; color: var(--tm-ink); cursor: pointer; }
.tm-t-pill:hover { background: #e4e4e1; color: var(--tm-ink); }
.tm-t-pill svg, .tm-t-ghost svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.tm-t-ghost { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: 999px; height: 32px; padding: 0 10px; font-family: var(--tm-ui); font-size: 13px; font-weight: 700; color: var(--tm-muted); cursor: pointer; }
.tm-t-ghost:hover { background: #efefed; }
.tm-t-ghost--muted { color: var(--tm-faint); font-weight: 600; }
.tm-t-icon { background: none; border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--tm-ink); }
.tm-t-icon:hover { background: #efefed; }
.tm-t-icon svg { width: 18px; height: 18px; fill: currentColor; }
/* votes */
.tm-t-vote { display: inline-flex; align-items: center; background: #efefed; border-radius: 999px; height: 38px; }
.tm-t-vote__btn { background: none; border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--tm-ink); }
.tm-t-vote__btn:hover { background: #e4e4e1; }
.tm-t-vote__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.tm-t-vote__score { font-size: 14px; font-weight: 700; min-width: 22px; text-align: center; }
.tm-t-vote.is-up { background: #fde4da; }
.tm-t-vote.is-up .tm-t-vote__up, .tm-t-vote.is-up .tm-t-vote__score { color: var(--t-up); }
.tm-t-vote.is-up .tm-t-vote__up svg { fill: var(--t-up); }
.tm-t-vote.is-down { background: #e4e7fb; }
.tm-t-vote.is-down .tm-t-vote__down, .tm-t-vote.is-down .tm-t-vote__score { color: var(--t-down); }
.tm-t-vote.is-down .tm-t-vote__down svg { fill: var(--t-down); }
.tm-t-vote--sm { background: none; height: 32px; }
.tm-t-vote--sm .tm-t-vote__btn { width: 32px; height: 32px; }
.tm-t-vote--sm .tm-t-vote__btn svg { width: 16px; height: 16px; }
.tm-t-vote--sm .tm-t-vote__score { font-size: 13px; min-width: 16px; }
.tm-t-vote--sm.is-up, .tm-t-vote--sm.is-down { background: none; }
/* sort + feed */
.tm-t-sort { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--tm-rule); }
.tm-t-sort a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.tm-t-sort a:hover { background: #fbeee8; color: var(--tm-ink); }
.tm-t-sort a.is-active { background: var(--t-accent); color: #fff; }
.tm-t-post { padding: 14px 12px 16px; margin: 0 -12px; border-bottom: 1px solid var(--tm-rule); border-radius: 12px; }
.tm-t-post:not(.tm-t-post--full):hover { background: #faf6f1; }
.tm-t-post__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-t-link { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; color: var(--tm-ink); }
.tm-t-link:hover { color: var(--tm-ink); }
.tm-t-link:hover .tm-t-title { text-decoration: underline; text-underline-offset: 3px; }
.tm-t-title { margin: 0; font-family: var(--tm-ui); font-size: 21px; font-weight: 700; line-height: 1.3; }
.tm-t-post--full .tm-t-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.25; margin: 12px 0 10px; }
.tm-t-body { font-size: 15px; line-height: 1.6; color: var(--tm-ink-soft); overflow-wrap: anywhere; }
.tm-t-post--full .tm-t-body { font-size: 16px; line-height: 1.7; }
.tm-t-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.tm-t-more { position: relative; }
.tm-t-menu { position: absolute; right: 0; top: 36px; background: #fff; border: 1px solid var(--tm-rule); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.12); z-index: 20; overflow: hidden; min-width: 160px; }
.tm-t-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 16px; font-family: var(--tm-ui); font-size: 13px; cursor: pointer; }
.tm-t-menu button:hover { background: var(--tm-bg-alt); }
.tm-t-menu .is-danger { color: var(--tm-accent); }
.tm-t-notice { background: var(--tm-bg-alt); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 14px; }
.tm-t-back { display: inline-flex; background: #fbeee8; color: var(--t-accent-h); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; margin: 4px 0 16px; }
.tm-t-back:hover { background: #e4e4e1; color: var(--tm-ink); }
/* composer */
.tm-t-create { border: 1px solid #c9c9c5; border-radius: 18px; background: #fff; margin-bottom: 14px; }
.tm-t-create summary { list-style: none; cursor: pointer; padding: 13px 18px; font-size: 15px; color: var(--tm-faint); }
.tm-t-create summary::-webkit-details-marker { display: none; }
.tm-t-create[open] summary { display: none; }
.tm-t-create form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.tm-t-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #efefed; border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 13px; font-weight: 700; }
.tm-t-input { width: 100%; border: 1px solid #c9c9c5; border-radius: 14px; background: #fff; padding: 13px 16px; font-family: var(--tm-ui); font-size: 15px; line-height: 1.55; }
.tm-t-create__foot, .tm-t-reply__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* comments */
.tm-t-comments { padding-top: 18px; }
.tm-t-reply { display: block; border: 1px solid #c9c9c5; border-radius: 18px; background: #fff; overflow: hidden; margin-bottom: 14px; }
.tm-t-reply textarea { width: 100%; border: 0; padding: 14px 16px; font-family: var(--tm-ui); font-size: 15px; line-height: 1.5; resize: vertical; display: block; outline: none; }
.tm-t-reply__foot { padding: 8px 10px 10px 16px; }
.tm-t-reply__to { padding: 10px 16px 0; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tm-t-reply--guest { padding: 13px 18px; font-size: 15px; color: var(--tm-faint); border-radius: 999px; }
.tm-t-reply--guest:hover { border-color: var(--tm-ink); }
.tm-t-clist, .tm-t-clist .children { list-style: none; margin: 0; padding: 0; }
.tm-t-clist .children { padding-left: 18px; }
.tm-t-c__inner { padding: 12px 0 6px 16px; border-left: 2px solid #f1d6c9; margin-bottom: 8px; }
.tm-t-c__inner:hover { border-left-color: var(--t-accent); }
.tm-t-c__body { margin: 6px 0 4px; font-size: 15px; line-height: 1.6; color: #222; overflow-wrap: anywhere; }
.tm-t-c__actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tm-t-c .tm-t-reply { margin: 6px 0 12px 16px; }
/* sidebar */
.tm-t-box { background: var(--tm-bg-alt); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--tm-muted); }
.tm-t-box p { margin: 0; font-size: 14px; }
.tm-t-box__title { font-size: 14px; font-weight: 800; color: var(--tm-ink); display: flex; align-items: center; gap: 8px; }
.tm-t-box--dark { background: var(--t-green); color: #cfe3da; }
.tm-t-box--about { background: #fbeee8; border-top: 6px solid var(--t-accent); }
.tm-t-box--about .tm-t-box__title { color: var(--t-accent-h); }
.tm-t-box--join { background: #e8f1ec; }
.tm-t-box--join .tm-t-box__title { color: var(--t-green); }
.tm-t-box--rules { background: #fcf3dc; }
.tm-t-box--rules .tm-t-box__title { color: #8a5a00; }
.tm-t-box--alerts { background: #fff; border: 1px solid #f1d6c9; }
.tm-t-box--dark .tm-t-box__title { color: var(--tm-dark-text); }
.tm-t-box .tm-t-btn { align-self: flex-start; }
.tm-t-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tm-t-box--dark .tm-t-list { list-style: none; padding-left: 0; }
.tm-t-stats { display: flex; gap: 24px; }
.tm-t-stats span { display: flex; flex-direction: column; font-size: 12px; color: var(--tm-faint); }
.tm-t-stats strong { font-size: 16px; color: var(--tm-ink); }
.tm-t-badge { background: var(--t-accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tm-t-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-t-alerts li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--tm-rule-soft); color: var(--tm-ink); font-size: 13px; }
.tm-t-alerts li span { display: block; font-size: 11px; color: var(--tm-faint); margin-top: 2px; }
.tm-t-alerts li.is-unread a { font-weight: 600; }
.tm-t-alerts li.is-unread a::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tm-accent); margin-right: 6px; vertical-align: middle; }
.tm-t-prefs label { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.tm-t-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f4d3f; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 120; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
@media (max-width: 900px) {
  .tm-t-side { padding-top: 0; }
  .tm-t-title { font-size: 18px; }
}

/* ---------- Comments ---------- */
.tm-comments { padding-top: 40px; padding-bottom: 56px; }
.tm-comments .comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.tm-comments .comment-list .children { list-style: none; padding-left: 28px; border-left: 1px solid var(--tm-rule); }
.tm-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--tm-rule-soft); }
.tm-comments .comment-meta { font-family: var(--tm-ui); font-size: 12px; color: var(--tm-faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tm-comments .comment-author img { border-radius: 50%; }
.tm-comments .comment-author .fn { font-weight: 700; color: var(--tm-ink); font-style: normal; }
.tm-comments .says { display: none; }
.tm-comments .comment-content { font-size: 16px; line-height: 1.6; }
.tm-comments .reply a { font-family: var(--tm-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-accent); }
.tm-comments textarea, .tm-comments input[type="text"], .tm-comments input[type="email"], .tm-comments input[type="url"] { width: 100%; border: 1px solid var(--tm-chip); background: #fff; padding: 12px; font-size: 15px; border-radius: 0; }
.tm-comments label { font-family: var(--tm-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.tm-comments .submit { background: var(--tm-ink); color: #fff; border: 0; padding: 12px 22px; font-family: var(--tm-ui); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tm-comments .comment-reply-title { font-family: var(--tm-display); font-weight: 900; font-size: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tm-col + .tm-col { border-left: 0; border-top: 1px solid var(--tm-rule); }
  .tm-col--pad-r, .tm-col--pad-x, .tm-col--pad-l { padding: 20px 0 0; }
  .tm-cols > .tm-col:first-child { padding-top: 0; }
  .tm-talk__main { padding-right: 0; }
  .tm-talk__side { border-left: 0; border-top: 1px solid var(--tm-rule); padding: 24px 0 0; }
  .tm-related .tm-cols > .tm-card { padding: 18px 0 !important; border-left: 0 !important; }
  .tm-related .tm-cols > .tm-card + .tm-card { border-top: 1px solid var(--tm-rule); }
  .tm-content .alignwide { margin-left: 0; margin-right: 0; }
  .tm-content .tm-stats > * + * { border-left: 0; border-top: 1px solid var(--tm-rule); }
}
@media (max-width: 782px) {
  .admin-bar .tm-nav, .admin-bar .tm-compact { top: 46px; }
  .tm-menu-toggle { display: inline-block; }
  .tm-compact .tm-compact__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tm-bg); border-bottom: 2px solid var(--tm-ink); padding: 8px var(--tm-gutter) 16px; }
  .tm-compact.is-open .tm-compact__nav { display: block; }
  .tm-compact .tm-menu { flex-direction: column; gap: 0; }
  .tm-compact .tm-menu a { padding: 12px 0; border-bottom: 1px solid var(--tm-rule-soft); font-size: 13px; }
  .tm-menu { justify-content: flex-start; gap: 22px; padding: 0 2px; }
  .tm-photo--thumb { width: 96px; height: 72px; }
  .tm-row { gap: 14px; }
  .tm-row .tm-title { font-size: 18px; }
  .tm-row__excerpt { display: none; }
  .tm-topbar__date { display: none; }
  body { font-size: 16px; }
  .tm-content { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tm-photo img { transition: none; }
}
