/*
Theme Name: My Times News
Theme URI: https://mytimesnews.com/
Author: My Times News
Author URI: https://mytimesnews.com/
Description: A custom-built professional news theme for My Times News — masthead with ticker, featured-stories hero grid, category sections, sidebar and a full multi-column footer. Fully responsive.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
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: mytimes-news
Tags: news, magazine, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ Reset & tokens ============ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --mtn-navy: #0a2240;
  --mtn-navy-dark: #061831;
  --mtn-navy-soft: #12325c;
  --mtn-red: #c8102e;
  --mtn-red-dark: #a50d26;
  --mtn-ink: #17222e;
  --mtn-muted: #5d6b7a;
  --mtn-line: #e2e8f0;
  --mtn-bg: #f4f6f9;
  --mtn-white: #ffffff;
  --mtn-font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mtn-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--mtn-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtn-ink);
  background: var(--mtn-bg);
  text-align: left;
}
img { max-width: 100%; height: auto; }
a { color: var(--mtn-navy); text-decoration: none; }
a:hover { color: var(--mtn-red); }
::selection { background: var(--mtn-navy); color: #fff; }
.mtn-container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 10000; background: var(--mtn-red); color: #fff; padding: 10px 16px; border-radius: 4px; }

/* ============ Top utility bar ============ */
.mtn-topbar { background: var(--mtn-navy-dark); color: #c9d6e6; font-size: 12.5px; }
.mtn-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-block: 4px; }
.mtn-topbar-date { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtn-topbar-tag { color: #8fa6c4; margin-left: 12px; }
.mtn-socials { display: flex; align-items: center; gap: 4px; flex: none; }
.mtn-socials a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #c9d6e6; transition: background .2s, color .2s; }
.mtn-socials a:hover { background: var(--mtn-red); color: #fff; }
.mtn-socials svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* ============ Masthead ============ */
.mtn-masthead { background: var(--mtn-white); border-bottom: 1px solid var(--mtn-line); }
.mtn-masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.mtn-brand { display: flex; align-items: center; min-width: 0; }
.mtn-brand a { display: inline-flex; align-items: center; }
.mtn-brand img.custom-logo, .mtn-brand .mtn-logo-img { max-height: 64px; width: auto; max-width: min(340px, 62vw); object-fit: contain; }
.mtn-site-name { font-family: var(--mtn-font-head); font-weight: 900; font-size: 34px; letter-spacing: -.01em; color: var(--mtn-navy); line-height: 1.05; }
.mtn-site-name span { color: var(--mtn-red); }
.mtn-masthead-side { display: flex; align-items: center; gap: 14px; flex: none; }
.mtn-search { position: relative; }
.mtn-search input[type="search"] { width: 220px; max-width: 44vw; padding: 9px 38px 9px 13px; border: 1px solid var(--mtn-line); border-radius: 999px; font: inherit; font-size: 13.5px; background: var(--mtn-bg); color: var(--mtn-ink); }
.mtn-search input[type="search"]:focus { outline: 2px solid var(--mtn-navy); background: #fff; }
.mtn-search button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mtn-navy); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mtn-search button svg { width: 15px; height: 15px; fill: currentColor; }
.mtn-write-btn { display: inline-block; background: var(--mtn-red); color: #fff !important; font-family: var(--mtn-font-head); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 16px; border-radius: 4px; white-space: nowrap; }
.mtn-write-btn:hover { background: var(--mtn-red-dark); }

/* ============ Primary navigation ============ */
.mtn-nav-wrap { background: var(--mtn-navy); position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 10px rgba(6, 24, 49, .25); }
body.admin-bar .mtn-nav-wrap { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .mtn-nav-wrap { top: 46px; } }
.mtn-nav-inner { display: flex; align-items: stretch; }
.mtn-nav-toggle { display: none; align-items: center; gap: 9px; background: transparent; border: 0; color: #fff; font-family: var(--mtn-font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 13px 4px; cursor: pointer; }
.mtn-nav-toggle .mtn-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.mtn-nav-toggle .mtn-bars i { display: block; width: 20px; height: 2px; background: #fff; }
.mtn-menu { flex: 1; }
.mtn-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; }
.mtn-menu li { position: relative; }
.mtn-menu a { display: flex; align-items: center; height: 100%; padding: 13px 16px; color: #fff; font-family: var(--mtn-font-head); font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.mtn-menu a:hover, .mtn-menu li.current-menu-item > a, .mtn-menu li.current_page_item > a { background: var(--mtn-navy-soft); border-bottom-color: var(--mtn-red); color: #fff; }
.mtn-menu ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--mtn-navy-dark); flex-direction: column; padding: 6px 0; box-shadow: 0 12px 24px rgba(0,0,0,.3); z-index: 950; }
.mtn-menu ul ul a { padding: 10px 16px; border-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 14px; }
.mtn-menu li:hover > ul, .mtn-menu li:focus-within > ul { display: flex; }

/* ============ News ticker ============ */
.mtn-ticker { background: var(--mtn-white); border-bottom: 1px solid var(--mtn-line); }
.mtn-ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.mtn-ticker-label { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--mtn-red); color: #fff; font-family: var(--mtn-font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 3px; }
.mtn-ticker-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mtn-pulse 1.6s infinite; }
@keyframes mtn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mtn-ticker-items { position: relative; flex: 1; min-width: 0; height: 24px; }
.mtn-ticker-item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .45s ease; font-weight: 600; font-size: 14.5px; color: var(--mtn-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtn-ticker-item.active { opacity: 1; pointer-events: auto; }
.mtn-ticker-item:hover { color: var(--mtn-red); }

/* ============ Layout ============ */
.mtn-main { padding-block: 28px 40px; }
.mtn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.mtn-layout.mtn-no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* ============ Section headers ============ */
.mtn-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--mtn-navy); margin: 0 0 18px; padding-bottom: 8px; }
.mtn-section-head h2, .mtn-section-head .mtn-section-title { font-family: var(--mtn-font-head); font-weight: 800; font-size: 21px; letter-spacing: .01em; text-transform: uppercase; color: var(--mtn-navy); margin: 0; position: relative; }
.mtn-section-head h2::before, .mtn-section-head .mtn-section-title::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--mtn-red); margin-right: 9px; }
.mtn-section-head a { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mtn-red); white-space: nowrap; }

/* ============ Hero ============ */
.mtn-hero { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-bottom: 34px; }
.mtn-hero-lead { grid-column: span 2; grid-row: span 2; position: relative; border-radius: 8px; overflow: hidden; min-height: 380px; background: var(--mtn-navy-dark); display: flex; }
.mtn-hero-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mtn-hero-lead .mtn-hero-overlay { position: relative; margin-top: auto; width: 100%; padding: 46px 24px 20px; background: linear-gradient(transparent, rgba(4, 15, 30, .92) 55%); color: #fff; }
.mtn-hero-lead h2 { font-family: var(--mtn-font-head); font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.18; margin: 8px 0 8px; }
.mtn-hero-lead h2 a { color: #fff; }
.mtn-hero-lead h2 a:hover { color: #ffd7dd; }
.mtn-hero-lead p { margin: 0; color: #d6e0ee; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mtn-hero-card { position: relative; border-radius: 8px; overflow: hidden; min-height: 182px; background: var(--mtn-navy-dark); display: flex; }
.mtn-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mtn-hero-card .mtn-hero-overlay { position: relative; margin-top: auto; width: 100%; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(4, 15, 30, .92) 60%); color: #fff; }
.mtn-hero-card h3 { font-family: var(--mtn-font-head); font-size: 15.5px; font-weight: 700; line-height: 1.3; margin: 6px 0 0; }
.mtn-hero-card h3 a { color: #fff; }
.mtn-hero-card h3 a:hover { color: #ffd7dd; }
.mtn-cat-tag { display: inline-block; background: var(--mtn-red); color: #fff !important; font-family: var(--mtn-font-head); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.mtn-cat-tag:hover { background: var(--mtn-red-dark); }
.mtn-hero-meta { font-size: 12px; color: #b9c8db; margin-top: 7px; }

/* ============ Post cards & lists ============ */
.mtn-card { background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.mtn-card-thumb { display: block; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--mtn-navy-soft); }
.mtn-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mtn-card:hover .mtn-card-thumb img { transform: scale(1.045); }
.mtn-card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mtn-card-body h3 { font-family: var(--mtn-font-head); font-size: 18px; font-weight: 700; line-height: 1.32; margin: 0; }
.mtn-card-body h3 a { color: var(--mtn-ink); }
.mtn-card-body h3 a:hover { color: var(--mtn-red); }
.mtn-card-body p { margin: 0; color: var(--mtn-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mtn-meta { font-size: 12.5px; color: var(--mtn-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.mtn-meta .mtn-author { font-weight: 600; color: var(--mtn-navy); }
.mtn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mtn-list { display: flex; flex-direction: column; gap: 18px; }
.mtn-row-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; overflow: hidden; }
.mtn-row-card .mtn-card-thumb { aspect-ratio: auto; height: 100%; min-height: 150px; }
.mtn-row-card .mtn-card-body { padding: 14px 16px 14px 0; justify-content: center; }
.mtn-row-card .mtn-card-body h3 { font-size: 19px; }

/* Category sections on homepage */
.mtn-cat-section { margin-top: 38px; }
.mtn-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mtn-cat-grid .mtn-card-body h3 { font-size: 16px; }
.mtn-cat-grid .mtn-card-body p { -webkit-line-clamp: 2; }

/* ============ Sidebar & widgets ============ */
.mtn-sidebar { display: flex; flex-direction: column; gap: 26px; }
.mtn-widget { background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 18px; }
.mtn-widget > h2, .mtn-widget .widget-title, .mtn-widget .wp-block-heading { font-family: var(--mtn-font-head); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--mtn-navy); margin: 0 0 13px; padding-bottom: 9px; border-bottom: 2px solid var(--mtn-line); position: relative; }
.mtn-widget > h2::after, .mtn-widget .widget-title::after, .mtn-widget .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--mtn-red); }
.mtn-widget ul { list-style: none; margin: 0; padding: 0; }
.mtn-widget li { padding: 7px 0; border-bottom: 1px solid var(--mtn-line); font-size: 14.5px; }
.mtn-widget li:last-child { border-bottom: 0; }
.mtn-widget .wp-block-latest-posts li, .mtn-widget .wp-block-latest-posts__list li { display: flex; flex-direction: column; gap: 3px; }
.mtn-widget .wp-block-latest-posts__featured-image { margin-bottom: 4px; }
.mtn-widget .wp-block-latest-posts__featured-image img { border-radius: 5px; width: 100%; }
.mtn-widget .wp-block-latest-posts__post-title { font-family: var(--mtn-font-head); font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--mtn-ink); }
.mtn-widget .wp-block-latest-posts__post-date { font-size: 12px; color: var(--mtn-muted); }
.mtn-widget .wp-block-search__input { border: 1px solid var(--mtn-line); border-radius: 4px; padding: 9px 11px; font: inherit; font-size: 14px; width: 100%; }
.mtn-widget .wp-block-search__button { background: var(--mtn-navy); color: #fff; border: 0; border-radius: 4px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.mtn-widget .wp-block-categories li, .mtn-widget .cat-item { display: flex; justify-content: space-between; }
.mtn-newsletter-box { background: var(--mtn-navy); color: #dce6f2; border: 0; }
.mtn-newsletter-box h2, .mtn-newsletter-box .widget-title { color: #fff; border-bottom-color: var(--mtn-navy-soft); }
.mtn-newsletter-box p { font-size: 14px; margin: 0 0 12px; }
.mtn-newsletter-box a.mtn-nl-btn { display: inline-block; background: var(--mtn-red); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 15px; border-radius: 4px; }
.mtn-trending { counter-reset: mtn-trend; }
.mtn-trending li { display: flex; gap: 12px; align-items: flex-start; }
.mtn-trending li::before { counter-increment: mtn-trend; content: counter(mtn-trend); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mtn-red); color: #fff; font-family: var(--mtn-font-head); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.mtn-trending a { font-family: var(--mtn-font-head); font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--mtn-ink); }

/* ============ Single article ============ */
.mtn-breadcrumb { font-size: 12.5px; color: var(--mtn-muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mtn-breadcrumb a { color: var(--mtn-muted); font-weight: 600; }
.mtn-breadcrumb a:hover { color: var(--mtn-red); }
.mtn-article { background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 30px 34px 34px; }
.mtn-article-head .mtn-cat-tag { margin-bottom: 12px; }
.mtn-article h1 { font-family: var(--mtn-font-head); font-weight: 800; font-size: clamp(27px, 3.6vw, 41px); line-height: 1.16; letter-spacing: -.01em; color: var(--mtn-ink); margin: 0 0 14px; text-align: left; }
.mtn-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--mtn-line); border-bottom: 1px solid var(--mtn-line); margin-bottom: 22px; font-size: 13.5px; color: var(--mtn-muted); }
.mtn-byline .mtn-author { color: var(--mtn-navy); font-weight: 700; }
.mtn-byline img.avatar { border-radius: 50%; }
.mtn-article-figure { margin: 0 0 24px; }
.mtn-article-figure img { width: 100%; border-radius: 6px; display: block; }
.mtn-article-figure figcaption { font-size: 12.5px; color: var(--mtn-muted); padding-top: 7px; }
.mtn-entry { font-size: 17.5px; line-height: 1.78; color: #24313f; text-align: left; }
.mtn-entry > *:first-child { margin-top: 0; }
.mtn-entry p { margin: 0 0 1.25em; }
.mtn-entry h2 { font-family: var(--mtn-font-head); font-size: 27px; font-weight: 800; line-height: 1.25; color: var(--mtn-navy); margin: 1.5em 0 .55em; }
.mtn-entry h3 { font-family: var(--mtn-font-head); font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--mtn-navy); margin: 1.4em 0 .5em; }
.mtn-entry h4 { font-family: var(--mtn-font-head); font-size: 17.5px; font-weight: 700; margin: 1.3em 0 .45em; }
.mtn-entry ul, .mtn-entry ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.mtn-entry li { margin-bottom: .45em; }
.mtn-entry a { color: var(--mtn-red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mtn-entry a:hover { color: var(--mtn-navy); }
.mtn-entry blockquote { margin: 1.5em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--mtn-red); font-size: 19px; line-height: 1.6; color: var(--mtn-navy); font-style: italic; }
.mtn-entry img { border-radius: 6px; }
.mtn-entry figure { margin: 1.5em 0; }
.mtn-entry figcaption { font-size: 13px; color: var(--mtn-muted); text-align: left; padding-top: 6px; }
/* Quick Facts and content tables */
.mtn-entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.7em; font-size: 15.5px; line-height: 1.5; background: #fff; border: 1px solid var(--mtn-line); border-radius: 6px; overflow: hidden; }
.mtn-entry table caption { caption-side: top; text-align: left; font-family: var(--mtn-font-head); font-weight: 800; font-size: 16px; color: var(--mtn-navy); padding: 0 0 8px; }
.mtn-entry th { background: var(--mtn-navy); color: #fff; font-family: var(--mtn-font-head); font-weight: 700; text-align: left; padding: 11px 14px; }
.mtn-entry td { padding: 10px 14px; border-top: 1px solid var(--mtn-line); vertical-align: top; }
.mtn-entry tbody tr:nth-child(even) td { background: #f6f8fb; }
.mtn-entry table tbody tr td:first-child { background: var(--mtn-navy); color: #fff; font-family: var(--mtn-font-head); font-weight: 700; width: 32%; border-top-color: var(--mtn-navy); }
.mtn-entry td:first-child { font-weight: 600; color: var(--mtn-navy); width: 34%; }
.mtn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px; }
.mtn-tags a { background: var(--mtn-bg); border: 1px solid var(--mtn-line); color: var(--mtn-navy); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.mtn-tags a:hover { background: var(--mtn-navy); color: #fff; }
.mtn-author-box { display: flex; gap: 16px; background: var(--mtn-bg); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 18px; margin-top: 26px; }
.mtn-author-box img.avatar { border-radius: 50%; flex: none; }
.mtn-author-box h3 { font-family: var(--mtn-font-head); font-size: 16px; margin: 0 0 5px; color: var(--mtn-navy); }
.mtn-author-box p { margin: 0; font-size: 14px; color: var(--mtn-muted); }
.mtn-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.mtn-post-nav a { display: block; background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 15px 17px; }
.mtn-post-nav .mtn-nav-dir { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mtn-red); margin-bottom: 5px; }
.mtn-post-nav .mtn-nav-title { font-family: var(--mtn-font-head); font-weight: 700; font-size: 15.5px; line-height: 1.35; color: var(--mtn-ink); }
.mtn-post-nav .mtn-next { text-align: right; }
.mtn-related { margin-top: 34px; }
.mtn-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mtn-related-grid .mtn-card-body h3 { font-size: 15.5px; }

/* Comments */
.mtn-comments { background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 26px 30px; margin-top: 26px; }
.mtn-comments h2, .mtn-comments h3 { font-family: var(--mtn-font-head); color: var(--mtn-navy); }
.mtn-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.mtn-comments .comment { padding: 16px 0; border-bottom: 1px solid var(--mtn-line); }
.mtn-comments .comment-meta { font-size: 12.5px; color: var(--mtn-muted); }
.mtn-comments textarea, .mtn-comments input[type="text"], .mtn-comments input[type="email"], .mtn-comments input[type="url"] { width: 100%; border: 1px solid var(--mtn-line); border-radius: 4px; padding: 10px 12px; font: inherit; font-size: 14.5px; }
.mtn-comments .submit { background: var(--mtn-red); color: #fff; border: 0; border-radius: 4px; padding: 11px 20px; font-weight: 700; cursor: pointer; }

/* ============ Archive & pages ============ */
.mtn-archive-head { background: var(--mtn-navy); color: #fff; border-radius: 8px; padding: 26px 30px; margin-bottom: 26px; }
.mtn-archive-head .mtn-kicker { color: #ffb3bf; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mtn-archive-head h1 { font-family: var(--mtn-font-head); font-size: clamp(25px, 3.4vw, 36px); font-weight: 800; margin: 6px 0 0; color: #fff; }
.mtn-archive-head p { color: #c9d6e6; margin: 8px 0 0; font-size: 15px; max-width: 70ch; }
.mtn-page-article h1 { margin-bottom: 16px; }

/* Pagination */
.mtn-pagination { margin-top: 30px; }
.mtn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mtn-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--mtn-navy); }
.mtn-pagination .page-numbers.current { background: var(--mtn-navy); color: #fff; border-color: var(--mtn-navy); }
.mtn-pagination a.page-numbers:hover { background: var(--mtn-red); border-color: var(--mtn-red); color: #fff; }

/* ============ Footer ============ */
.mtn-footer { background: var(--mtn-navy-dark); color: #c2d0e2; margin-top: 10px; }
.mtn-footer-main { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 34px; padding: 46px 0 36px; }
.mtn-footer-col h3, .mtn-footer-col .widget-title, .mtn-footer-col .wp-block-heading { font-family: var(--mtn-font-head); font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--mtn-navy-soft); position: relative; }
.mtn-footer-col h3::after, .mtn-footer-col .widget-title::after, .mtn-footer-col .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--mtn-red); }
.mtn-footer-col p { font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.mtn-footer-col ul { list-style: none; margin: 0; padding: 0; }
.mtn-footer-col li { padding: 5px 0; font-size: 14.5px; }
.mtn-footer-col a { color: #c2d0e2; }
.mtn-footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mtn-footer-col .wp-block-categories li, .mtn-footer-col .cat-item { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); padding: 6px 0; }
.mtn-footer-main .mtn-widget { background: transparent; border: 0; border-radius: 0; padding: 0; }
.mtn-footer-main .mtn-widget > h2, .mtn-footer-main .mtn-widget .widget-title, .mtn-footer-main .mtn-widget .wp-block-heading { color: #fff; border-bottom-color: var(--mtn-navy-soft); }
.mtn-footer-main .mtn-widget li { border-bottom-color: rgba(255,255,255,.07); }
.mtn-footer-main .mtn-widget p, .mtn-footer-main .mtn-widget li { color: #c2d0e2; }
.mtn-footer-main .mtn-widget a { color: #c2d0e2; }
.mtn-footer-main .mtn-widget a:hover { color: #fff; }
.mtn-footer .mtn-socials a { background: rgba(255,255,255,.08); color: #e6eef8; width: 34px; height: 34px; }
.mtn-footer-strip { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: flex-start; justify-content: space-between; }
.mtn-footer-strip .mtn-widget { background: transparent; border: 0; padding: 0; }
.mtn-footer-strip ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.mtn-footer-strip li { border: 0; padding: 2px 0; font-size: 14px; }
.mtn-footer-strip h2, .mtn-footer-strip .widget-title, .mtn-footer-strip .wp-block-heading { font-family: var(--mtn-font-head); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin: 0 0 8px; border: 0; padding: 0; }
.mtn-footer-strip a { color: #c2d0e2; }
.mtn-footer-strip a:hover { color: #fff; }
.mtn-copyright { background: #040f1f; color: #93a8c1; font-size: 13.5px; }
.mtn-copyright-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; min-height: 52px; padding-block: 10px; }

/* ============ 404 ============ */
.mtn-404 { text-align: left; background: var(--mtn-white); border: 1px solid var(--mtn-line); border-radius: 8px; padding: 44px 38px; }
.mtn-404 .mtn-404-code { font-family: var(--mtn-font-head); font-size: 74px; font-weight: 900; color: var(--mtn-red); line-height: 1; }
.mtn-404 h1 { font-family: var(--mtn-font-head); font-size: 30px; color: var(--mtn-navy); margin: 10px 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .mtn-hero { grid-template-columns: repeat(2, 1fr); }
  .mtn-hero-lead { grid-column: span 2; min-height: 340px; }
  .mtn-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtn-footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .mtn-layout { grid-template-columns: minmax(0, 1fr); }
  .mtn-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 900px) {
  .mtn-masthead-side .mtn-search { display: none; }
  .mtn-nav-toggle { display: inline-flex; }
  .mtn-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--mtn-navy-dark); display: none; box-shadow: 0 18px 30px rgba(0,0,0,.35); }
  .mtn-nav-wrap .mtn-container { position: relative; }
  .mtn-menu.mtn-open { display: block; }
  .mtn-menu ul { flex-direction: column; padding: 8px 0 12px; }
  .mtn-menu a { padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mtn-menu ul ul { position: static; display: none; box-shadow: none; padding-left: 16px; }
  .mtn-menu li.mtn-sub-open > ul { display: flex; }
  .mtn-nav-inner { position: relative; }
}
@media (max-width: 680px) {
  .mtn-topbar-tag { display: none; }
  .mtn-masthead-inner { padding-block: 13px; gap: 12px; }
  .mtn-brand img.custom-logo, .mtn-brand .mtn-logo-img { max-height: 46px; }
  .mtn-site-name { font-size: 25px; }
  .mtn-write-btn { display: none; }
  .mtn-hero { grid-template-columns: 1fr; }
  .mtn-hero-lead { grid-column: span 1; min-height: 300px; }
  .mtn-hero-card { min-height: 190px; }
  .mtn-grid { grid-template-columns: 1fr; }
  .mtn-row-card { grid-template-columns: 118px minmax(0, 1fr); gap: 12px; }
  .mtn-row-card .mtn-card-body h3 { font-size: 15.5px; }
  .mtn-row-card .mtn-card-body p { display: none; }
  .mtn-cat-grid { grid-template-columns: 1fr; }
  .mtn-sidebar { grid-template-columns: 1fr; }
  .mtn-article { padding: 20px 16px 24px; }
  .mtn-entry { font-size: 16.5px; }
  .mtn-entry table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; white-space: nowrap; }
  .mtn-post-nav { grid-template-columns: 1fr; }
  .mtn-post-nav .mtn-next { text-align: left; }
  .mtn-related-grid { grid-template-columns: 1fr; }
  .mtn-footer-main { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 26px; }
  .mtn-author-box { flex-direction: column; }
  .mtn-archive-head { padding: 20px 18px; }
  .mtn-comments { padding: 20px 16px; }
  .mtn-ticker-label { font-size: 11px; padding: 5px 8px; }
  .mtn-ticker-item { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtn-ticker-label::before { animation: none; }
  .mtn-card-thumb img { transition: none; }
}
