/* ============================================
   SAN JOSE CANNABIS BRIEF — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a5c38;
  --green-dark: #0f3d24;
  --green-hover: #2d7a50;
  --yellow: #f5d000;
  --yellow-dark: #d4b000;
  --rule: #d0d0d0;
  --rule-light: #e8e8e8;
  --ink: #111;
  --ink-mid: #333;
  --ink-light: #666;
  --ink-xlight: #999;
  --bg: #ffffff;
  --teal: #007a8c;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--green); }
img { display: block; width: 100%; object-fit: cover; }

/* ---- TOP BAR ---- */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--rule);
  height: 44px; background: #fff;
}
.top-bar-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.hamburger { display: flex; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.top-bar-right { display: flex; align-items: center; gap: 8px; }
.btn-top { background: var(--green-dark); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 18px; display: inline-block; }
.btn-top:hover { background: var(--green); color: #fff; }
.icon-search { font-size: 18px; cursor: pointer; padding: 4px 8px; }

/* ---- MASTHEAD ---- */
.masthead { padding: 14px 16px 10px; background: #fff; }
.masthead-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 200px 1fr 200px; align-items: center; }
.masthead-weather { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.masthead-date { font-size: 12px; color: var(--ink-mid); font-weight: 500; margin-top: 2px; }
.masthead-edition { font-size: 11px; color: var(--teal); margin-top: 1px; }
.masthead-edition a { color: var(--teal); }
.masthead-center { text-align: center; }
.site-name { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 64px); font-weight: 900; letter-spacing: -0.015em; color: var(--ink); line-height: 1; display: block; }
.site-name .cannabis-word { color: var(--green); }

/* ---- NAV ---- */
.main-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.main-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 12px 16px; white-space: nowrap; display: block; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-sep { width: 1px; height: 14px; background: var(--rule); flex-shrink: 0; }

/* ---- TRENDING ---- */
.trending-bar { border-bottom: 1px solid var(--rule); background: #fff; padding: 7px 16px; }
.trending-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label { font-size: 11.5px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; }
.t-item { font-size: 12.5px; color: var(--ink-mid); white-space: nowrap; flex-shrink: 0; }
.t-item a:hover { color: var(--green); }
.t-dot { width: 4px; height: 4px; background: var(--rule); border-radius: 50%; flex-shrink: 0; }

/* ---- BREAKING ---- */
.breaking-banner { background: var(--yellow); padding: 11px 16px; }
.breaking-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.breaking-label { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.breaking-text { font-size: 14px; color: var(--ink); flex: 1; }
.breaking-text a { color: var(--ink); }
.breaking-text a:hover { text-decoration: underline; }
.breaking-time { font-size: 12px; color: #555; white-space: nowrap; flex-shrink: 0; }
.breaking-close { font-size: 20px; font-weight: 300; cursor: pointer; flex-shrink: 0; }

/* ---- ARTICLE PAGE LAYOUT ---- */
.article-page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 28px 0; }
.article-main {}
.article-sidebar {}

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--ink-xlight); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--rule); }

/* Article header */
.article-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; display: block; }
.article-headline { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 42px); font-weight: 900; line-height: 1.15; color: var(--ink); margin-bottom: 16px; }
.article-deck { font-size: 18px; color: var(--ink-mid); line-height: 1.6; margin-bottom: 18px; font-weight: 400; border-left: 3px solid var(--green); padding-left: 14px; }
.article-meta { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.article-byline { font-size: 13px; }
.article-byline strong { color: var(--green); font-weight: 600; }
.article-date { font-size: 12px; color: var(--ink-xlight); }
.article-share { display: flex; gap: 8px; margin-left: auto; }
.share-btn { font-size: 11px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--rule); color: var(--ink-mid); cursor: pointer; }
.share-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Hero image */
.article-hero-img { width: 100%; height: 420px; overflow: hidden; margin-bottom: 10px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.img-caption { font-size: 11.5px; color: var(--ink-xlight); line-height: 1.4; margin-bottom: 24px; }

/* Article body */
.article-body p { font-size: 16px; line-height: 1.75; color: var(--ink-mid); margin-bottom: 20px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin: 30px 0 14px; padding-top: 10px; border-top: 1px solid var(--rule-light); }
.article-body blockquote { margin: 28px 0; padding: 16px 20px; border-left: 4px solid var(--green); background: #f7faf8; font-size: 18px; font-style: italic; color: var(--ink-mid); line-height: 1.6; }
.article-body blockquote cite { display: block; font-size: 12px; font-style: normal; font-weight: 600; color: var(--green); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.tag { font-size: 11px; font-weight: 600; padding: 4px 12px; border: 1px solid var(--rule); color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.tag:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- SIDEBAR ---- */
.sidebar-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-heading { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--teal); padding-bottom: 8px; margin-bottom: 14px; }
.sidebar-heading.green { border-bottom-color: var(--green); }
.sidebar-item { padding: 11px 0; border-bottom: 1px solid var(--rule-light); }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 3px; }
.sidebar-item-title a:hover { color: var(--green); }
.sidebar-item-meta { font-size: 11px; color: var(--ink-xlight); }

/* Newsletter sidebar */
.sidebar-newsletter { background: var(--green-dark); padding: 18px; text-align: center; }
.sidebar-newsletter h4 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sidebar-newsletter p { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 12px; line-height: 1.5; }
.sidebar-newsletter input { width: 100%; padding: 9px 12px; font-size: 12px; border: none; margin-bottom: 6px; }
.sidebar-newsletter button { width: 100%; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px; border: none; cursor: pointer; }
.sidebar-newsletter button:hover { background: var(--yellow-dark); }

/* ---- SECTION PAGE ---- */
.section-page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section-header { padding: 22px 0 16px; border-bottom: 3px solid var(--ink); margin-bottom: 24px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--ink); }
.section-desc { font-size: 14px; color: var(--ink-light); margin-top: 5px; }

/* Section article list */
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-light); border: 1px solid var(--rule-light); margin-bottom: 24px; }
.section-card { background: #fff; padding: 20px; }
.section-card-img { width: 100%; height: 200px; overflow: hidden; margin-bottom: 14px; }
.section-card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.section-card-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 7px; }
.section-card-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; line-height: 1.28; color: var(--ink); margin-bottom: 9px; }
.section-card-title a:hover { color: var(--green); }
.section-card-deck { font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; margin-bottom: 8px; }
.section-card-byline { font-size: 11px; color: var(--ink-xlight); }

/* ---- FOOTER ---- */
footer { border-top: 3px solid var(--ink); background: #fff; padding: 28px 16px 20px; margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.footer-logo .cannabis-word { color: var(--green); }
.footer-tagline { font-size: 12px; color: var(--ink-xlight); font-style: italic; margin-bottom: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; border-top: 1px solid var(--rule); padding-top: 14px; }
.footer-links a { font-size: 12px; color: var(--ink-mid); }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 11px; color: var(--ink-xlight); border-top: 1px solid var(--rule); padding-top: 12px; }

/* ---- UTILITIES ---- */
.bg1 { background: linear-gradient(135deg,#1a5c38,#2d7a50); color:#fff; }
.bg2 { background: linear-gradient(135deg,#2d6a4f,#52b788); color:#fff; }
.bg3 { background: linear-gradient(135deg,#b8860b,#8b6914); color:#fff; }
.bg4 { background: linear-gradient(135deg,#0f3d24,#1a5c38); color:#fff; }
.bg5 { background: linear-gradient(135deg,#40916c,#74c69d); color:#fff; }
.bg6 { background: linear-gradient(135deg,#1a5c38,#007a8c); color:#fff; }
.bg7 { background: linear-gradient(135deg,#52b788,#1a5c38); color:#fff; }
.bg8 { background: linear-gradient(135deg,#d4af37,#b8860b); color:#fff; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .masthead-inner { grid-template-columns: 1fr; }
  .masthead-left { display: none; }
  .section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav-inner { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .article-hero-img { height: 240px; }
}
