/* Shared news-card look (from the /v1/ design), loaded site-wide by _footer.php
   after each page's own CSS so it wins at equal specificity.
   1. article.card: homepage, /news/, source, search and style pages
      (photo, source + time row, title, Read button + save slot + "More X").
   (My feed's .fd-post cards keep their own layout.)
   2. a.card with .card-source: the brand / model / wiki "Latest news" grids,
      which have no footer markup, so the Read button is drawn with ::after. */

/* ── 1. article.card:not(.fd-post) ─────────────────────────────────────────────── */
article.card:not(.fd-post) { background: #fff; border: 1px solid #E6E6EB; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
article.card:not(.fd-post).best-card, article.card:not(.fd-post).compare-card, article.card:not(.fd-post).is-wtw, article.card:not(.fd-post).video-card,
article.card:not(.fd-post).best-card.hero-main, article.card:not(.fd-post).video-card.hero-main { border-color: #E6E6EB; }
article.card:not(.fd-post):hover { border-color: #D4D4DC; box-shadow: 0 10px 28px rgba(11,11,15,.08); }
article.card:not(.fd-post) .card-link { display: flex; flex-direction: column; flex: 1 1 auto; height: auto; min-height: 0; }
article.card:not(.fd-post) .card-footer { flex-shrink: 0; }
article.card:not(.fd-post) .source-badge:not(.video-badge) { display: none; }
article.card:not(.fd-post) .card-body { padding: 18px 20px 16px; gap: 10px; flex: 1; display: flex; flex-direction: column; }
article.card:not(.fd-post) .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.card-src { font-size: 13px; font-weight: 600; color: #0B0B0F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-src.card-pill { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #5B4EFA; color: #fff; }
article.card:not(.fd-post) .art-date { font-size: 13px; color: #5F5F6B; white-space: nowrap; }
article.card:not(.fd-post) .card-meta .watch-tag { background: none; border: 0; padding: 0; border-radius: 0; font-size: 13px; font-weight: 600; color: #0B0B0F; }
/* Brand/watch label on the photo: hidden (mostly repeated the title). Remove this rule to bring it back. */
article.card:not(.fd-post) .watch-tag.card-tag-ov { display: none; }
article.card:not(.fd-post) .card-title { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #0B0B0F; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side article.card:not(.fd-post) .card-title { font-size: 18px; }
article.card:not(.fd-post).hero-main .card-title { font-size: 40px; line-height: 1.12; }
@media (max-width: 640px) { article.card:not(.fd-post).hero-main .card-title { font-size: 24px; line-height: 1.18; } }
article.card:not(.fd-post):not(.hero-main) .card-snippet-wrap,
article.card:not(.fd-post):not(.hero-main) .card-snippet { display: none; }
article.card:not(.fd-post) .card-footer { display: flex; align-items: center; justify-content: flex-start; gap: 10px; border-top: 0; margin-top: auto; padding: 4px 20px 20px; }

.card-footer .read-more { min-height: 44px; padding: 0 18px; gap: 8px; border: 1px solid #E6E6EB; border-radius: 10px; background: #fff; color: #0B0B0F !important; font-size: 14px; font-weight: 600; letter-spacing: -.005em; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; box-shadow: none; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.card-footer .read-more svg { display: none; width: 15px; height: 15px; color: currentColor !important; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
article.card:not(.fd-post):hover .card-footer .read-more { background: #5B4EFA; border-color: #5B4EFA; color: #fff !important; }
article.card:not(.fd-post):hover .card-footer .read-more svg { transform: translateX(3px); }
.card-footer .read-more:active { transform: scale(.97); }

.card-save-slot { display: inline-flex; }
.card-save-slot:empty { display: none; }
.card-save-slot .wb-save-btn { position: static; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #E6E6EB; background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #0B0B0F; }
.card-save-slot .wb-save-btn:hover { transform: none; border-color: #0B0B0F; color: #0B0B0F; background: #fff; }
.card-save-slot .wb-save-btn.saved { background: #D4FF3A; border-color: #D4FF3A; color: #0B0B0F; }
.card-save-slot .wb-save-btn svg { width: 17px; height: 17px; }

.card-footer .src-link { margin-left: auto; font-size: 13px; font-weight: 500; color: #5F5F6B; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-footer .src-link:hover { color: #0B0B0F; }
@media (max-width: 380px) { .card-footer .src-link { display: none; } }

/* ── 2. Brand / model / wiki grids: <a class="card"> ─────────────── */
a.card:has(> .card-body > .card-source) { background: #fff; border: 1px solid #E6E6EB; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
a.card:has(> .card-body > .card-source):hover { border-color: #D4D4DC; box-shadow: 0 10px 28px rgba(11,11,15,.08); }
a.card:has(> .card-body > .card-source) > img.card-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s; }
a.card:has(> .card-body > .card-source) > .card-body { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr; gap: 10px; padding: 18px 20px 20px; }
a.card > .card-body > .card-source { grid-column: 1; grid-row: 1; align-self: center; background: none !important; color: #0B0B0F !important; padding: 0; border-radius: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
a.card:has(> .card-body > .card-source) .card-date { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 13px; color: #5F5F6B; white-space: nowrap; }
a.card:has(> .card-body > .card-source) .card-title { grid-column: 1 / -1; grid-row: 2; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #0B0B0F; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.card:has(> .card-body > .card-source) > .card-body::after { content: "Read article"; grid-column: 1 / -1; grid-row: 3; justify-self: start; align-self: end; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid #E6E6EB; border-radius: 10px; background: #fff; color: #0B0B0F; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s, border-color .18s, color .18s; }
a.card:has(> .card-body > .card-source):hover > .card-body::after { background: #5B4EFA; border-color: #5B4EFA; color: #fff; }

/* Exclusive pill on the photo (own WristBuzz articles). */
.card-pill-ov { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: #5B4EFA; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); pointer-events: none; }

/* ── Section titles (v1 look), site-wide: big display-font title in sentence
   case, no rule line or icon, meta / "Browse all" pushed to the right. ── */
.section-head, .trend-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.section-head h2, .trend-head h2 { margin: 0 auto 0 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-transform: none; color: #0B0B0F; white-space: normal; }
.section-head h2 span, .trend-head h2 span { color: inherit; }
.section-head .section-line, .trend-head .section-line, .trend-head .trend-flame { display: none; }
.section-head-meta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #5F5F6B; white-space: nowrap; }
.section-head .ws-strip-cta, .trend-head .ws-strip-cta { font-size: 14px; font-weight: 600; color: #0B0B0F; gap: 6px; }
.section-head .ws-strip-cta:hover, .trend-head .ws-strip-cta:hover { color: #5B4EFA; }
.section-head .ws-strip-cta svg, .trend-head .ws-strip-cta svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .section-head h2, .trend-head h2 { font-size: 26px; } }
/* Carousel page dashes: not shown. "Last 7 days" styled like the other section meta. */
.trend-head .trend-dots { display: none !important; }
.trend-head .trend-window { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; color: #5F5F6B; background: none; padding: 0; border: 0; white-space: nowrap; }
/* Same space under every section title. */
.section-head, .trend-head, .ws-strip .section-head, .section-head:has(+ .wiki-random-shell) { margin-bottom: 15px !important; }

/* ── 3. "WristBuzz exclusives" strip on brand/model pages (_brand_related.php) ── */
a.wbx-card { position: relative; background: #fff; border: 1px solid #E6E6EB; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.wbx-card:hover { border-color: #D4D4DC; box-shadow: 0 10px 28px rgba(11,11,15,.08); transform: translateY(-3px); }
a.wbx-card .wbx-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
a.wbx-card .wbx-body { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr; gap: 10px; padding: 18px 20px 20px; }
a.wbx-card .wbx-badge { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: #5B4EFA; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
a.wbx-card .wbx-body::before { content: "WristBuzz"; grid-column: 1; grid-row: 1; align-self: center; font-size: 13px; font-weight: 600; color: #0B0B0F; }
a.wbx-card .wbx-date { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 13px; color: #5F5F6B; white-space: nowrap; }
a.wbx-card .wbx-title { grid-column: 1 / -1; grid-row: 2; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #0B0B0F; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.wbx-card:hover .wbx-title { color: #0B0B0F; }
a.wbx-card .wbx-body::after { content: "Read article"; grid-column: 1 / -1; grid-row: 3; justify-self: start; align-self: end; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid #E6E6EB; border-radius: 10px; background: #fff; color: #0B0B0F; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s, border-color .18s, color .18s; }
a.wbx-card:hover .wbx-body::after { background: #5B4EFA; border-color: #5B4EFA; color: #fff; }

/* News card background (carousels / .trend-card are not touched). */
article.card:not(.fd-post), a.card:has(> .card-body > .card-source), a.wbx-card { background: #F3F3F6; }
article.card:not(.fd-post), article.card:not(.fd-post):hover,
a.card:has(> .card-body > .card-source), a.card:has(> .card-body > .card-source):hover,
a.wbx-card, a.wbx-card:hover { border-color: transparent; }
