/*
Theme Name: Times Release News
Theme URI: https://timesrelease.com/
Author: Times Release
Description: Classic newspaper theme for Times Release, with a breaking-news ticker, category sections, Brandpost labelling, a contact form and a 1080x1080 share card for every article.
Version: 1.0.2
Requires at least: 6.3
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: timesrelease-news
*/

:root {
  --bg: #ffffff;
  --surface: #f6f5f2;
  --text: #121212;
  --muted: #5f6368;
  --line: #e3e1dc;
  --accent: #e10a0a;
  --accent-dark: #b30808;
  --ink: #0b1f3a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
}

[data-theme="dark"] {
  --bg: #111315;
  --surface: #1a1d20;
  --text: #ecebe8;
  --muted: #a3a6aa;
  --line: #2c3035;
  --ink: #e8edf5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Utility bar */
.utility {
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.utility nav a { margin-left: 18px; }
.utility nav a:hover { color: var(--accent); }

/* Masthead */
.masthead { padding: 22px 0 18px; text-align: center; border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo-img { width: clamp(240px, 32vw, 400px); height: auto; margin: 0 auto; }
.footer-logo { width: 240px; height: auto; }
.tagline { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.masthead-left { text-align: left; font-size: 13px; color: var(--muted); }
.masthead-right { display: flex; justify-content: flex-end; gap: 10px; }
.btn {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 600 13px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.btn:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-insta { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 3px double var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-weight: 600; font-size: 14px; padding: 13px 12px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav a:hover, .nav a.active { color: var(--accent); border-color: var(--accent); }
.nav .nav-logo { display: none; padding: 8px 10px 8px 0; margin-right: 6px; border: 0; }
.nav .nav-logo img { width: 28px; height: 28px; }
.nav.stuck .nav-logo { display: inline-flex; align-items: center; }

/* Breaking ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden; }
.ticker-label { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { width: max-content; display: flex; gap: 40px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track a:hover { color: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Typography helpers */
.kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.kicker.sponsored { color: #8a6d1f; }
.headline { font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -.2px; margin: 0; }
.headline:hover, a:hover > .headline, a:hover .headline { color: var(--accent); }
.meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.meta b { color: var(--text); font-weight: 600; }
.excerpt { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--surface); border-radius: 4px; }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 3px solid var(--text); padding-top: 10px; margin: 44px 0 20px;
}
.section-title h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.section-title a { font-size: 13px; font-weight: 600; color: var(--accent); }

/* Hero: two side stories, main story, headline list */
.hero { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 28px; padding-top: 28px; }
.hero > * + * { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-side { display: flex; flex-direction: column; gap: 22px; }
.hero-card + .hero-card { border-top: 1px solid var(--line); padding-top: 22px; }
.hero-card .headline { font-size: 18px; margin-top: 2px; }
.hero-main .thumb { aspect-ratio: 3 / 2; }
.hero-main .headline { font-size: clamp(24px, 2.3vw, 30px); margin-top: 2px; }
.hero-main .excerpt { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.hero-mini .thumb { aspect-ratio: 1 / 1; }
.hero-mini .headline { font-size: 15px; line-height: 1.3; margin-top: 2px; }
.hero-mini .meta { margin-top: 4px; }
.hero-list > h3 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 4px; color: var(--muted); }
.hero-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero-link:last-child { border-bottom: 0; }
.hero-link .kicker { margin-bottom: 2px; }
.hero-link .headline { font-size: 16px; }
.hero-link .meta { margin-top: 4px; }

/* Card grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card .headline { font-size: 18px; margin-top: 12px; }

/* Main + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.list-item { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-item .headline { font-size: 21px; }
.sidebar { position: relative; }
.sticky { position: sticky; top: 70px; }
.widget { margin-bottom: 32px; }
.widget h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--text); }
.most-read { counter-reset: rank; list-style: none; margin: 0; padding: 0; }
.most-read li { counter-increment: rank; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.most-read li::before { content: counter(rank); font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1; }
.most-read .headline { font-size: 16px; }
.newsletter { background: var(--ink); color: #fff; padding: 24px; border-radius: 6px; }
[data-theme="dark"] .newsletter { background: #0b1f3a; }
.newsletter h3 { border: 0; color: #fff; padding: 0; }
.newsletter p { font-size: 14px; opacity: .8; margin: 6px 0 16px; }
.newsletter input { width: 100%; padding: 11px 12px; border-radius: 4px; border: 0; font: 14px var(--sans); margin-bottom: 10px; }
.newsletter .btn { width: 100%; padding: 11px; border-radius: 4px; }
.ad-slot { border: 1px dashed var(--line); color: var(--muted); font-size: 12px; text-align: center; padding: 90px 10px; border-radius: 4px; background: var(--surface); }
.ad-banner span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 6px; }
.ad-banner img { width: 100%; height: auto; border-radius: 4px; }
.ad-wa { display: block; margin-top: 8px; padding: 10px; border-radius: 4px; background: #1fa855; color: #fff; text-align: center; font: 600 14px var(--sans); }
.ad-wa:hover { background: #178a45; }

/* Category blocks */
.cat-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.cat-block .big .headline { font-size: 24px; margin-top: 12px; }
.cat-block .small { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-block .small:first-child { padding-top: 0; }
.cat-block .small .headline { font-size: 16px; }

/* Partner content */
.partner { background: var(--surface); border-radius: 8px; padding: 6px 28px 30px; margin-top: 48px; }
.partner .section-title { border-top-color: #8a6d1f; }
.partner-note { font-size: 13px; color: var(--muted); margin: -8px 0 20px; }

/* Footer */
.footer { margin-top: 64px; background: #0b1f3a; color: #cfd6e2; font-size: 14px; }
.footer .wrap { padding-top: 48px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo { color: #fff; font-size: 34px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 12.5px; opacity: .8; }

/* Article page */
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 28px; }
.breadcrumb a:hover { color: var(--accent); }
.article-head { max-width: 860px; padding: 14px 0 24px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.5px; margin: 6px 0 16px; }
.standfirst { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; }
.byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.author { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
[data-theme="dark"] .avatar { background: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.share button:hover { border-color: var(--accent); color: var(--accent); }
.share [data-share="download"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.share [data-share="download"]:hover { background: var(--accent-dark); color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(520px, calc(100% - 32px));
  background: #111; color: #fff; padding: 12px 18px; border-radius: 6px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hero-figure { margin: 26px 0 8px; }
.hero-figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 4px; }
.hero-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.disclosure { display: flex; gap: 12px; background: #fbf6e9; border-left: 4px solid #c9a227; padding: 14px 16px; font-size: 14px; color: #5a4a1a; margin: 24px 0; border-radius: 0 4px 4px 0; }
[data-theme="dark"] .disclosure { background: #2a2416; color: #e6d7a6; }
.article-body { font-family: var(--serif); font-size: 19px; line-height: 1.7; max-width: 700px; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2, .article-body h3 { font-family: var(--sans); line-height: 1.3; margin: 1.8em 0 .6em; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 21px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 4px; margin: 1em 0; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 22px; font-style: italic; }
.article-body figure { margin: 1.5em 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body > p:first-of-type::first-letter { float: left; font-size: 64px; line-height: .9; font-weight: 800; padding: 6px 10px 0 0; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; max-width: 700px; }
.tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.tags a:hover { background: var(--accent); color: #fff; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 50; }

/* Responsive */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 12px 0 56px; }
.contact-intro h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.contact-intro > p { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.contact-points { list-style: none; margin: 0; padding: 0; }
.contact-points li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-points span { color: var(--muted); font-size: 14px; }
.contact-points a { color: var(--accent); }
.contact-form, .contact-done { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 28px; align-self: start; }
.contact-form label { display: block; font: 600 14px var(--sans); margin-bottom: 18px; }
.contact-form label span { color: var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px;
  font: 400 15px var(--sans); background: var(--bg); color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.contact-form .btn { width: 100%; padding: 13px; border-radius: 4px; font-size: 15px; }
.form-error { color: var(--accent); font-size: 14px; margin: -6px 0 14px; }
.contact-done h2 { font-family: var(--serif); margin: 0 0 8px; }
.contact-done p { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .hero-side { grid-column: 1 / -1; order: 3; flex-direction: row; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .hero-side .hero-card { flex: 1; }
  .hero-card + .hero-card { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 22px; }
  .hero-main { border-left: 0 !important; padding-left: 0 !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero, .cat-block { grid-template-columns: 1fr; }
  .hero > * { border-left: 0 !important; padding-left: 0 !important; }
  .hero-list { border-top: 1px solid var(--line); padding-top: 16px; }
  .hero-side { flex-direction: column; order: 2; border-top: 1px solid var(--line); padding-top: 20px; }
  .hero-list { order: 3; }
  .hero-more { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact-form, .contact-done { padding: 20px; }
  .hero-card + .hero-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 120px 1fr; gap: 14px; }
  .list-item .headline { font-size: 17px; }
  .list-item .excerpt { display: none; }
  .masthead .wrap { grid-template-columns: 1fr; }
  .masthead .wrap { position: relative; }
  .masthead-left, #themeToggle { display: none; }
  .masthead-right { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .btn-insta { padding: 8px; font-size: 0; gap: 0; }
  .utility nav a:first-child { margin-left: 0; }
  .utility .wrap > span { display: none; }
  .article-body { font-size: 18px; }
  .partner { padding: 6px 16px 22px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* WordPress additions */
.site-title { margin: 0; font-size: inherit; line-height: 0; }
.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; left: 8px; top: 8px; z-index: 100; background: var(--bg); color: var(--text); padding: 10px 14px; border-radius: 4px; }
.nav .menu-item { list-style: none; display: contents; }
.nav .current-menu-item > a { color: var(--accent); border-color: var(--accent); }
.thumb-empty { display: block; background: linear-gradient(135deg, var(--surface), var(--line)); }
img.thumb { height: auto; }
.list-item .thumb, .cat-block .thumb, .card .thumb, .hero-card .thumb, .hero-main .thumb { height: auto; }
.btn-block { display: block; width: 100%; text-align: center; padding: 11px; border-radius: 4px; }
.footer-bottom a:hover { color: #fff; }

.archive-head { max-width: 860px; padding: 14px 0 8px; }
.archive-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 6px 0 10px; }
.archive-head p, .archive-desc { color: var(--muted); font-size: 16px; margin: 0 0 12px; }
.archive-head p a { color: var(--accent); text-decoration: underline; }
.archive-head + .layout > div > .list-item:first-child { padding-top: 12px; }
.empty { font-size: 17px; color: var(--muted); }

.pagination { margin: 32px 0 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .dots { border: 0; }

.search-form { display: flex; gap: 8px; max-width: 520px; margin: 12px 0 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; font: 15px var(--sans); background: var(--bg); color: var(--text); }
.search-form .search-submit { border: 0; background: var(--accent); color: #fff; font: 600 14px var(--sans); padding: 0 18px; border-radius: 4px; cursor: pointer; }

.page-body > p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; font-weight: inherit; padding: 0; color: inherit; }
.contact-more { max-width: 860px; border-top: 1px solid var(--line); padding-top: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.article-body iframe, .article-body video, .article-body embed { max-width: 100%; }
.article-body figcaption, .article-body .wp-caption-text { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.article-body .wp-caption { max-width: 100%; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body pre { white-space: pre-wrap; background: var(--surface); padding: 14px; border-radius: 4px; font-size: 14px; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: 4px; }
.article-body .wp-block-embed { margin: 1.5em 0; }
.post-page-numbers { margin-right: 8px; }

/* Mobile menu */
.menu-toggle { display: none; border: 0; background: transparent; color: var(--text); padding: 8px; cursor: pointer; border-radius: 6px; }
.menu-toggle:hover { color: var(--accent); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg); color: var(--text); z-index: 61; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 3px solid var(--accent); }
.drawer-head img { width: 170px; height: auto; }
.drawer-close { border: 0; background: transparent; color: var(--text); font-size: 30px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav a { padding: 12px 20px; font-weight: 600; font-size: 16px; border-left: 3px solid transparent; }
.drawer-nav a:hover, .drawer-nav a.active { color: var(--accent); border-left-color: var(--accent); background: var(--surface); }
.drawer-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px 0; }
.drawer-links a { padding: 10px 20px; font-size: 14px; color: var(--muted); }
.drawer-links a:hover { color: var(--accent); }
.drawer-foot { display: flex; gap: 10px; padding: 16px 20px 24px; margin-top: auto; border-top: 1px solid var(--line); }
.drawer-foot .btn { flex: 1; text-align: center; }
body.drawer-open { overflow: hidden; }

@media (max-width: 760px) {
  .utility { display: none; }
  .menu-toggle { display: inline-flex; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
  .nav::after { content: ""; position: absolute; top: 0; right: 0; bottom: 3px; width: 36px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }
  .nav .wrap { padding-right: 36px; }
  .logo-img { width: min(230px, 58vw); }
}
