/* ══════════════════════════════════════════════════════════════
   The Mise — Magazine CSS
   Light & refreshing hospitality trade publication style
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --tm-accent:    #059669;
  --tm-accent2:   #047857;
  --tm-break:     #DC2626;
  --tm-bg:        #FFFFFF;
  --tm-bg2:       #F0FDF9;
  --tm-bg3:       #F8FAFC;
  --tm-border:    #E2E8F0;
  --tm-text:      #374151;
  --tm-text2:     #111827;
  --tm-muted:     #6B7280;
  --tm-nav-bg:    #0F2027;
  --tm-nav-text:  #E5E7EB;
  --tm-font-h:    Georgia, 'Times New Roman', serif;
  --tm-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tm-r:         6px;
  --tm-r-sm:      4px;
  --tm-r-lg:      10px;
  --tm-shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --tm-shadow-md: 0 4px 16px rgba(0,0,0,.1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--tm-font);
  color: var(--tm-text);
  background: var(--tm-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.tm-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.tm-container-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.tm-header {
  background: var(--tm-bg);
  border-bottom: 1px solid var(--tm-border);
  padding: 16px 0;
}
.tm-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tm-header-brand { display: flex; flex-direction: column; gap: 2px; }
.tm-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}
.tm-logo-the {
  font-family: var(--tm-font-h);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--tm-text2);
  font-style: italic;
  letter-spacing: -.01em;
}
.tm-logo-mise {
  font-family: var(--tm-font-h);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--tm-accent);
  letter-spacing: -.02em;
}
.tm-tagline {
  font-size: 11px;
  color: var(--tm-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tm-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tm-header-cta {
  background: var(--tm-accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--tm-r-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s;
}
.tm-header-cta:hover { background: var(--tm-accent2); }
.tm-header-rss {
  color: var(--tm-muted);
  display: flex;
  align-items: center;
  transition: color .2s;
}
.tm-header-rss:hover { color: var(--tm-accent); }

/* ══════════════════════════════════════════════════════════════
   NAV BAR
   ══════════════════════════════════════════════════════════════ */
.tm-nav {
  background: var(--tm-nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tm-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.tm-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.tm-nav-links::-webkit-scrollbar { display: none; }
.tm-nav-links a {
  color: var(--tm-nav-text);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 14px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  border-bottom: 2px solid transparent;
  letter-spacing: .01em;
}
.tm-nav-links a:hover,
.tm-nav-links a.active {
  color: #fff;
  border-bottom-color: var(--tm-accent);
}
.tm-nav-search {
  color: var(--tm-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  padding: 14px 0 14px 10px;
  text-transform: uppercase;
  transition: opacity .2s;
}
.tm-nav-search:hover { opacity: .8; }

/* Mobile hamburger */
.tm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.tm-hamburger span {
  display: block;
  height: 2px;
  background: var(--tm-nav-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.tm-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tm-hamburger.open span:nth-child(2) { opacity: 0; }
.tm-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.tm-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--tm-nav-bg);
  border-top: 1px solid rgba(255,255,255,.08);
}
.tm-mobile-nav.open { display: flex; }
.tm-mobile-nav a {
  color: var(--tm-nav-text);
  padding: 13px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.tm-mobile-nav a:hover { background: rgba(255,255,255,.05); }

@media (max-width: 900px) {
  .tm-hamburger { display: flex; }
  .tm-nav-links { display: none; }
  .tm-nav-search { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   BREAKING NEWS TICKER
   ══════════════════════════════════════════════════════════════ */
.tm-ticker {
  background: var(--tm-break);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.tm-ticker-label {
  background: rgba(0,0,0,.25);
  padding: 8px 16px;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.tm-ticker-track {
  display: flex;
  gap: 48px;
  padding: 8px 24px;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}
.tm-ticker-track a {
  color: #fff;
  font-weight: 500;
}
.tm-ticker-track a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE GRID
   ══════════════════════════════════════════════════════════════ */
.tm-home-grid {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 0;
  min-height: 600px;
}
@media (max-width: 1100px) {
  .tm-home-grid {
    grid-template-columns: 1fr 260px;
  }
  .tm-home-sidebar-left { display: none; }
}
@media (max-width: 720px) {
  .tm-home-grid {
    grid-template-columns: 1fr;
  }
  .tm-home-sidebar-right { display: none; }
}

.tm-home-section {
  padding: 24px 0;
}

/* Left sidebar */
.tm-home-sidebar-left {
  border-right: 1px solid var(--tm-border);
  padding: 24px 20px;
}
.tm-sidebar-list { list-style: none; }
.tm-sidebar-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--tm-border);
}
.tm-sidebar-list li:last-child { border-bottom: none; }
.tm-sidebar-article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  text-decoration: none;
}
.tm-sidebar-article:hover .tm-sidebar-title { color: var(--tm-accent); }
.tm-sidebar-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--tm-r-sm);
  background: var(--tm-bg3);
  display: block;
}
.tm-sidebar-thumb-placeholder {
  width: 72px;
  height: 56px;
  background: var(--tm-bg3);
  border-radius: var(--tm-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.tm-sidebar-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.tm-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text2);
  line-height: 1.4;
  transition: color .15s;
}
.tm-sidebar-date {
  font-size: 11px;
  color: var(--tm-muted);
  margin-top: 4px;
}

/* Center hero */
.tm-home-center {
  padding: 24px 24px;
  border-right: 1px solid var(--tm-border);
}

.tm-hero-article {
  text-decoration: none;
  display: block;
}
.tm-hero-article:hover .tm-hero-title { color: var(--tm-accent); }
.tm-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--tm-r);
  display: block;
}
.tm-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--tm-bg3);
  border-radius: var(--tm-r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--tm-border);
}
.tm-hero-body { padding: 16px 0; }
.tm-hero-title {
  font-family: var(--tm-font-h);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--tm-text2);
  line-height: 1.25;
  margin: 10px 0 10px;
  transition: color .15s;
}
.tm-hero-excerpt {
  font-size: 15px;
  color: var(--tm-text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.tm-hero-meta {
  font-size: 12px;
  color: var(--tm-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Second/third featured articles */
.tm-home-secondaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tm-border);
}
@media (max-width: 600px) {
  .tm-home-secondaries { grid-template-columns: 1fr; }
}
.tm-secondary-article {
  display: block;
  text-decoration: none;
}
.tm-secondary-article:hover .tm-secondary-title { color: var(--tm-accent); }
.tm-secondary-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--tm-r-sm);
  margin-bottom: 10px;
}
.tm-secondary-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--tm-bg3);
  border-radius: var(--tm-r-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--tm-border);
}
.tm-secondary-title {
  font-family: var(--tm-font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--tm-text2);
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color .15s;
}
.tm-secondary-meta {
  font-size: 11px;
  color: var(--tm-muted);
}

/* Right sidebar */
.tm-home-sidebar-right {
  padding: 24px 20px;
}
.tm-sidebar-section { margin-bottom: 28px; }
.tm-sidebar-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-text2);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tm-accent);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-sidebar-head a {
  font-size: 10px;
  color: var(--tm-accent);
  font-weight: 600;
  text-decoration: none;
}
.tm-sidebar-head a:hover { text-decoration: underline; }
.tm-latest-list { list-style: none; }
.tm-latest-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--tm-border);
}
.tm-latest-item:last-child { border-bottom: none; }
.tm-latest-link {
  display: block;
  text-decoration: none;
}
.tm-latest-link:hover .tm-latest-title { color: var(--tm-accent); }
.tm-latest-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text2);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color .15s;
}
.tm-latest-meta {
  font-size: 11px;
  color: var(--tm-muted);
}

/* ── Category badge ─────────────────────────────────────────── */
.tm-cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
}
.tm-breaking-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  color: #fff;
  background: var(--tm-break);
  margin-right: 6px;
}
.tm-featured-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  color: #fff;
  background: #7C3AED;
  margin-right: 6px;
}

/* ── Section divider ─────────────────────────────────────────── */
.tm-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tm-border);
}
.tm-section-head h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tm-text2);
}
.tm-section-head::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--tm-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.tm-section-head a {
  margin-left: auto;
  font-size: 12px;
  color: var(--tm-accent);
  font-weight: 600;
}
.tm-section-head a:hover { text-decoration: underline; }

/* ── Category rows on homepage ───────────────────────────────── */
.tm-home-categories {
  background: var(--tm-bg3);
  border-top: 1px solid var(--tm-border);
  padding: 32px 0;
}
.tm-cat-row {
  margin-bottom: 36px;
}
.tm-cat-row:last-child { margin-bottom: 0; }
.tm-cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE CARD (shared)
   ══════════════════════════════════════════════════════════════ */
.tm-card {
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}
.tm-card:hover {
  box-shadow: var(--tm-shadow-md);
  border-color: rgba(5, 150, 105, .3);
}
.tm-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.tm-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--tm-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--tm-border);
}
.tm-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tm-card-title {
  font-family: var(--tm-font-h);
  font-size: 16px;
  font-weight: 700;
  color: var(--tm-text2);
  line-height: 1.35;
  margin: 8px 0 8px;
  transition: color .15s;
}
.tm-card:hover .tm-card-title { color: var(--tm-accent); }
.tm-card-excerpt {
  font-size: 13px;
  color: var(--tm-text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 12px;
}
.tm-card-meta {
  font-size: 11px;
  color: var(--tm-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.tm-card-meta-dot { color: var(--tm-border); }

/* ══════════════════════════════════════════════════════════════
   NEWS LISTING PAGE
   ══════════════════════════════════════════════════════════════ */
.tm-page-hero {
  background: var(--tm-bg2);
  border-bottom: 1px solid var(--tm-border);
  padding: 40px 0 32px;
}
.tm-page-hero h1 {
  font-family: var(--tm-font-h);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--tm-text2);
  margin-bottom: 8px;
}
.tm-page-hero p {
  font-size: 15px;
  color: var(--tm-muted);
}
.tm-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tm-cat-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--tm-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tm-text);
  text-decoration: none;
  transition: all .15s;
  background: var(--tm-bg);
}
.tm-cat-filter:hover,
.tm-cat-filter.active {
  border-color: var(--tm-accent);
  color: var(--tm-accent);
  background: rgba(5, 150, 105, .05);
}
.tm-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ══════════════════════════════════════════════════════════════
   SINGLE ARTICLE
   ══════════════════════════════════════════════════════════════ */
.tm-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0;
}
@media (max-width: 900px) {
  .tm-article-layout { grid-template-columns: 1fr; }
  .tm-article-aside { display: none; }
}
.tm-article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--tm-r);
  margin-bottom: 32px;
}
.tm-article-title {
  font-family: var(--tm-font-h);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--tm-text2);
  line-height: 1.2;
  margin: 12px 0 16px;
}
.tm-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--tm-muted);
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tm-border);
}
.tm-article-meta-dot { color: var(--tm-border); }
.tm-article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--tm-text);
}
.tm-article-body h2 {
  font-family: var(--tm-font-h);
  font-size: 24px;
  font-weight: 700;
  color: var(--tm-text2);
  margin: 40px 0 16px;
}
.tm-article-body h3 {
  font-family: var(--tm-font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--tm-text2);
  margin: 32px 0 12px;
}
.tm-article-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tm-text2);
  margin: 24px 0 10px;
}
.tm-article-body p { margin-bottom: 22px; }
.tm-article-body ul, .tm-article-body ol { padding-left: 24px; margin-bottom: 22px; }
.tm-article-body li { margin-bottom: 8px; }
.tm-article-body blockquote {
  border-left: 4px solid var(--tm-accent);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--tm-bg2);
  border-radius: 0 var(--tm-r) var(--tm-r) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--tm-text2);
}
.tm-article-body img {
  max-width: 100%;
  border-radius: var(--tm-r);
  margin: 8px 0;
}
.tm-article-body a { color: var(--tm-accent); text-underline-offset: 3px; }
.tm-article-body a:hover { text-decoration: underline; }
.tm-article-body hr {
  border: none;
  border-top: 1px solid var(--tm-border);
  margin: 40px 0;
}
.tm-article-body pre {
  background: #0F172A;
  border-radius: var(--tm-r-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  margin: 20px 0;
}
.tm-article-body code {
  background: rgba(5,150,105,.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.tm-article-body pre code { background: none; padding: 0; color: #e2e8f0; }
.tm-article-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--tm-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-accent);
}
.tm-back-link:hover { text-decoration: underline; }

/* Article aside */
.tm-article-aside {
  padding-top: 4px;
}
.tm-aside-sticky {
  position: sticky;
  top: 72px;
}

/* ══════════════════════════════════════════════════════════════
   SECTION / PAGE LAYOUT
   ══════════════════════════════════════════════════════════════ */
.tm-section { padding: 40px 0; }
.tm-section-alt {
  padding: 40px 0;
  background: var(--tm-bg3);
  border-top: 1px solid var(--tm-border);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.tm-footer {
  background: #0F2027;
  color: #9CA3AF;
  padding: 48px 0 0;
  margin-top: 40px;
}
.tm-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
@media (max-width: 900px) {
  .tm-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tm-footer-top { grid-template-columns: 1fr; }
}
.tm-footer .tm-logo-the { color: #e5e7eb; font-size: 20px; }
.tm-footer .tm-logo-mise { color: var(--tm-accent); font-size: 28px; }
.tm-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
  color: #6B7280;
}
.tm-footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #E5E7EB;
  margin-bottom: 14px;
}
.tm-footer-col a {
  display: block;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
  transition: color .15s;
}
.tm-footer-col a:hover { color: var(--tm-accent); }
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #4B5563;
}
.tm-footer-bottom a { color: #4B5563; }
.tm-footer-bottom a:hover { color: var(--tm-accent); }
.tm-footer-dev a { color: var(--tm-accent); }
.tm-footer-links {
  display: flex;
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════
   FORMS (contact)
   ══════════════════════════════════════════════════════════════ */
.tm-form-group { margin-bottom: 20px; }
.tm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text2);
  margin-bottom: 6px;
}
.tm-form-input,
.tm-form-textarea,
.tm-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r-sm);
  font-size: 14px;
  font-family: var(--tm-font);
  color: var(--tm-text2);
  background: var(--tm-bg);
  transition: border-color .2s;
  outline: none;
}
.tm-form-input:focus,
.tm-form-textarea:focus,
.tm-form-select:focus { border-color: var(--tm-accent); }
.tm-form-textarea { min-height: 140px; resize: vertical; }
.tm-form-msg {
  padding: 12px 16px;
  border-radius: var(--tm-r-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.tm-form-msg.success { background: rgba(5,150,105,.08); color: var(--tm-accent2); border: 1px solid rgba(5,150,105,.2); }
.tm-form-msg.error   { background: rgba(220,38,38,.06); color: #b91c1c; border: 1px solid rgba(220,38,38,.2); }

/* ── Button ──────────────────────────────────────────────────── */
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--tm-accent);
  color: #fff;
  border: none;
  border-radius: var(--tm-r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.tm-btn:hover { background: var(--tm-accent2); }
.tm-btn-outline {
  background: transparent;
  border: 1px solid var(--tm-accent);
  color: var(--tm-accent);
}
.tm-btn-outline:hover { background: rgba(5,150,105,.06); }
.tm-btn-sm { padding: 7px 16px; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════ */
.tm-admin-body {
  background: #F8FAFC;
  font-family: var(--tm-font);
  color: var(--tm-text);
  min-height: 100vh;
}
.tm-admin-wrap {
  display: flex;
  min-height: 100vh;
}
.tm-admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--tm-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.tm-admin-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--tm-border);
}
.tm-admin-nav {
  padding: 12px 8px;
  flex: 1;
}
.tm-admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--tm-r-sm);
  font-size: 13px;
  color: var(--tm-text);
  text-decoration: none;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.tm-admin-nav a:hover,
.tm-admin-nav a.active {
  background: rgba(5,150,105,.08);
  color: var(--tm-accent);
}
.tm-admin-nav a svg { flex-shrink: 0; }
.tm-admin-count {
  margin-left: auto;
  background: var(--tm-bg3);
  color: var(--tm-muted);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 100px;
  font-weight: 600;
}
.tm-admin-main {
  flex: 1;
  padding: 32px 36px;
  overflow-x: auto;
}
@media (max-width: 768px) {
  .tm-admin-sidebar { display: none; }
  .tm-admin-main { padding: 20px; }
}
.tm-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tm-admin-header h1 { font-size: 22px; font-weight: 700; color: var(--tm-text2); }
.tm-admin-card {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.tm-admin-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tm-text2);
  margin-bottom: 14px;
}
.tm-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.tm-admin-stat {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r);
  padding: 16px 20px;
  text-align: center;
}
.tm-admin-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--tm-accent);
  display: block;
}
.tm-admin-stat-label {
  font-size: 12px;
  color: var(--tm-muted);
  margin-top: 2px;
}
.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tm-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--tm-bg3);
  border-bottom: 1px solid var(--tm-border);
  font-weight: 600;
  color: var(--tm-text2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--tm-border);
  vertical-align: middle;
}
.tm-table tr:hover td { background: var(--tm-bg3); }
.tm-status-live  { color: var(--tm-accent); font-weight: 600; font-size: 12px; }
.tm-status-draft { color: var(--tm-muted); font-weight: 600; font-size: 12px; }
.tm-delete-btn {
  background: none;
  border: 1px solid rgba(220,38,38,.3);
  color: #dc2626;
  padding: 4px 10px;
  border-radius: var(--tm-r-sm);
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
.tm-delete-btn:hover { background: rgba(220,38,38,.06); }
.tm-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--tm-muted);
}
.tm-empty svg { width: 40px; height: 40px; opacity: .3; margin: 0 auto 16px; display: block; }
.tm-empty h3 { font-size: 16px; color: var(--tm-text2); margin-bottom: 8px; }
.tm-empty p { font-size: 14px; }

/* Admin editor */
.tm-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--tm-bg3);
  border: 1px solid var(--tm-border);
  border-bottom: none;
  border-radius: var(--tm-r-sm) var(--tm-r-sm) 0 0;
}
.tm-editor-btn {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-text2);
  cursor: pointer;
  transition: background .15s;
}
.tm-editor-btn:hover { background: rgba(5,150,105,.06); border-color: var(--tm-accent); }
.tm-editor-textarea {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--tm-border);
  border-radius: 0 0 var(--tm-r-sm) var(--tm-r-sm);
  padding: 14px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tm-text2);
  resize: vertical;
  outline: none;
}
.tm-editor-textarea:focus { border-color: var(--tm-accent); }
.tm-edit-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .tm-edit-grid { grid-template-columns: 1fr; } }

/* Admin login */
.tm-admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tm-bg3);
  padding: 24px;
}
.tm-login-box {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

/* ══════════════════════════════════════════════════════════════
   GDPR COOKIE BANNER
   ══════════════════════════════════════════════════════════════ */
#lw-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0F2027;
  color: #e5e7eb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  border-top: 3px solid var(--tm-accent);
}
#lw-cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#lw-cookie-banner p a { color: var(--tm-accent); }
.lw-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lw-cookie-accept,
.lw-cookie-decline {
  padding: 8px 18px;
  border-radius: var(--tm-r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}
.lw-cookie-accept  { background: var(--tm-accent); color: #fff; }
.lw-cookie-decline { background: rgba(255,255,255,.1); color: #e5e7eb; }
.lw-cookie-accept:hover,
.lw-cookie-decline:hover { opacity: .85; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.tm-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.tm-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Utilities ───────────────────────────────────────────────── */
.tm-dot { color: var(--tm-border); }
.tm-muted { color: var(--tm-muted); }
.tm-accent-text { color: var(--tm-accent); }
.tm-bold { font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tm-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tm-header-right { width: 100%; }
  .tm-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER (about, contact, privacy, terms, etc.)
   ══════════════════════════════════════════════════════════════ */
.tm-page-header {
  background: var(--tm-bg3);
  border-bottom: 1px solid var(--tm-border);
  padding: 40px 0 32px;
}
.tm-page-title {
  font-family: var(--tm-font-h);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--tm-text2);
  margin: 8px 0 6px;
}
.tm-page-subtitle {
  color: var(--tm-muted);
  font-size: 15px;
}
.tm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tm-muted);
  margin-bottom: 4px;
}
.tm-breadcrumb a { color: var(--tm-accent); text-decoration: none; }
.tm-breadcrumb-sep { color: var(--tm-border); }

/* ══════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════ */
.tm-alert {
  border-radius: var(--tm-r-sm);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
}
.tm-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.tm-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS (public pages)
   ══════════════════════════════════════════════════════════════ */
.tm-form-group { margin-bottom: 18px; }
.tm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text2);
  margin-bottom: 6px;
}
.tm-form-input,
.tm-form-textarea,
.tm-form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r-sm);
  font-size: 14px;
  color: var(--tm-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.tm-form-input:focus,
.tm-form-textarea:focus,
.tm-form-select:focus {
  outline: none;
  border-color: var(--tm-accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}
.tm-form-textarea { resize: vertical; min-height: 80px; }
.tm-form-msg {
  border-radius: var(--tm-r-sm);
  padding: 12px 16px;
  font-size: 14px;
}
.tm-form-msg.success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.tm-form-msg.error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* ══════════════════════════════════════════════════════════════
   ARTICLE BODY STYLES (public article reading)
   ══════════════════════════════════════════════════════════════ */
.tm-article-body h2 {
  font-family: var(--tm-font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--tm-text2);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tm-border);
}
.tm-article-body h3 {
  font-family: var(--tm-font-h);
  font-size: 18px;
  font-weight: 600;
  color: var(--tm-text2);
  margin: 24px 0 10px;
}
.tm-article-body p { margin: 0 0 16px; }
.tm-article-body ul, .tm-article-body ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.tm-article-body li { margin-bottom: 6px; }
.tm-article-body blockquote {
  border-left: 3px solid var(--tm-accent);
  margin: 20px 0;
  padding: 12px 20px;
  background: var(--tm-bg3);
  color: var(--tm-text2);
  font-style: italic;
}
.tm-article-body a { color: var(--tm-accent); }
.tm-article-body img { max-width: 100%; border-radius: var(--tm-r-sm); margin: 16px 0; }
.tm-article-body hr { border: none; border-top: 1px solid var(--tm-border); margin: 28px 0; }
.tm-article-body code {
  background: var(--tm-bg3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}
.tm-article-body pre {
  background: var(--tm-bg3);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-r-sm);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.tm-article-body pre code { background: none; padding: 0; }

/* ══════════════════════════════════════════════════════════════
   AD STYLES
   ══════════════════════════════════════════════════════════════ */
.tm-ad { margin: 0 auto; }
.tm-ad img { display: block; max-width: 100%; height: auto; }
.tm-ad-placeholder { display: block; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — contact/about sidebar grid
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .tm-contact-grid,
  .tm-about-grid { grid-template-columns: 1fr !important; }
}
