/*
Theme Name: Legal Magazine
Theme URI: https://mishpati.net/
Author: Muli Ari
Description: תבנית וורדפרס למגזין משפטי דיגיטלי בעברית — מאמרים, ראיונות וידאו ופודקאסטים. RTL מלא, עיצוב עריכותי מודרני.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: legal-magazine
Tags: rtl-language-support, magazine, blog, news, two-columns, custom-menu, custom-logo, featured-images
*/

:root {
  --c-bg:        #FBFAF6;
  --c-surface:   #FFFFFF;
  --c-surface-2: #F4F1EA;
  --c-ink:       #14181F;
  --c-ink-2:     #3D434E;
  --c-muted:     #6B7280;
  --c-line:      #E6E2D6;
  --c-line-2:    #ECE9DE;
  --c-accent:    #1E3A8A;
  --c-accent-2:  #2C5282;
  --c-gold:      #B68C2A;
  --c-danger:    #B91C1C;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20,24,31,.04);
  --shadow-md: 0 6px 24px rgba(20,24,31,.06);
  --max: 1240px;
  --gap: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Heebo', 'Assistant', Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; display: block; height: auto; }

.serif, .single-content h1, .single-content h2, .single-content h3 { font-family: 'Frank Ruhl Libre', 'David Libre', Georgia, serif; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--c-ink);
  color: #D8D5C9;
  font-size: 13px;
}
.topbar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar nav ul, .topbar nav { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.topbar nav a { color: #D8D5C9; }
.topbar nav a:hover { color: #fff; }

/* ---------- header ---------- */
header.site {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
}
header.site .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--c-ink);
  color: #fff;
  display: grid; place-items: center;
  border-radius: 4px;
  font-weight: 800;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
}
.brand-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.brand-tag {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav.primary, nav.primary ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0;
}
nav.primary a {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--r-sm);
  color: var(--c-ink-2);
  display: inline-block;
  transition: background .15s, color .15s;
}
nav.primary a:hover, nav.primary li.current-menu-item a, nav.primary li.current-cat a {
  background: var(--c-surface-2); color: var(--c-ink);
}
nav.primary li.current-menu-item a { color: var(--c-accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.icon-btn:hover { background: var(--c-surface-2); }
.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--c-accent);
  color: #fff !important;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--c-accent-2); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-line);
}
.btn-ghost:hover { background: var(--c-surface-2); }

#lm-search { display: none; padding: 14px 0; border-top: 1px solid var(--c-line); background: var(--c-surface); }
#lm-search.open { display: block; }
#lm-search .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
#lm-search input[type=search] {
  width: 100%; padding: 12px 16px; font-family: inherit; font-size: 16px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg);
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}
.hero-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1E3A8A 0%, #14181F 100%);
}
.hero-main > a, .hero-main > img, .hero-main .ph {
  position: absolute; inset: 0; display: block;
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.hero-main .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,31,0) 30%, rgba(20,24,31,.85) 100%);
  pointer-events: none;
}
.hero-main .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px clamp(20px, 3vw, 40px);
  color: #fff;
  z-index: 2;
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  background: var(--c-gold);
  color: #14181F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-soft { background: var(--c-surface-2); color: var(--c-accent); }
.hero-main h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 14px 0 10px;
  color: #fff;
}
.hero-main h1 a { color: #fff; }
.hero-main .meta { color: #D8D5C9; font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.play-badge {
  position: absolute; top: 24px; left: 24px; z-index: 3;
  background: rgba(20,24,31,.7);
  color: #fff; padding: 8px 14px 8px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.play-icon {
  width: 22px; height: 22px;
  background: var(--c-gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #14181F;
}

.hero-side { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.hero-mini {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  transition: transform .2s, box-shadow .2s;
}
.hero-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-mini .thumb {
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  overflow: hidden;
  position: relative;
}
.hero-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-mini .cat { color: var(--c-accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-mini h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 18px; font-weight: 700; line-height: 1.3; margin: 6px 0 8px; }
.hero-mini .meta { color: var(--c-muted); font-size: 13px; }

/* ---------- topics strip ---------- */
.topics-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 14px 0;
}
.topics-strip .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}
.topics-strip .label {
  background: var(--c-ink); color: #fff; padding: 6px 12px;
  border-radius: var(--r-sm); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.topics-strip a {
  color: var(--c-ink-2); font-size: 14px; font-weight: 500;
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px;
  transition: background .15s;
}
.topics-strip a:hover { background: var(--c-surface-2); color: var(--c-accent); }

/* ---------- section base ---------- */
section.lm { padding: 56px 0; }
section.lm.tight { padding: 36px 0; }
.section-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
  border-bottom: 2px solid var(--c-ink);
  padding-bottom: 14px;
}
.section-head h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; margin: 0; line-height: 1.1;
  display: flex; align-items: baseline; gap: 12px;
}
.count-badge {
  font-family: 'Heebo', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--c-muted);
  background: var(--c-surface-2); padding: 4px 10px; border-radius: 999px;
}
.section-head .more {
  color: var(--c-accent); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.section-head .more:hover { color: var(--c-accent-2); }

/* ---------- card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-line-2); }
.card a.card-link { display: contents; color: inherit; }
.card .thumb { aspect-ratio: 16/10; background: var(--c-surface-2); overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card .cat { color: var(--c-accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.card h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; color: var(--c-ink); }
.card p { color: var(--c-ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.card .foot {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-muted); font-size: 13px;
  border-top: 1px solid var(--c-line-2);
  padding-top: 12px; margin-top: auto;
}
.card .foot .read { color: var(--c-accent); font-weight: 600; }

/* video card variant */
.card.video .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.5) 100%);
}
.card.video .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .2s, background .2s;
  z-index: 2;
}
.card.video:hover .play { background: var(--c-gold); transform: translate(-50%, -50%) scale(1.08); }
.card.video .play svg { color: var(--c-ink); }
.card.video .duration {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(20,24,31,.85); color: #fff;
  padding: 4px 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; z-index: 2;
}

/* ---------- videos section dark ---------- */
.videos-section { background: var(--c-ink); color: #F5F2E7; padding: 64px 0; }
.videos-section .section-head { border-bottom-color: rgba(255,255,255,.18); }
.videos-section .section-head h2, .videos-section .section-head h2 * { color: #F5F2E7; }
.videos-section .more { color: var(--c-gold); }
.videos-section .card { background: #1B1F27; border-color: #2A2F39; }
.videos-section .card h3 { color: #F5F2E7; }
.videos-section .card p { color: #B7BBC2; }
.videos-section .card .foot { border-top-color: #2A2F39; color: #8E94A0; }
.videos-section .card .cat { color: var(--c-gold); }
.videos-section .count-badge { background: #2A2F39; color: #B7BBC2; }
.videos-section .card .read { color: var(--c-gold); }

/* ---------- newsletter band ---------- */
.newsletter {
  background: linear-gradient(135deg, #1E3A8A 0%, #14181F 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 32px;
}
.newsletter h2 { font-family: 'Frank Ruhl Libre', serif; font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0; color: #fff; }
.newsletter p { margin: 0; color: #D8D5C9; max-width: 540px; }
.newsletter form {
  display: flex; gap: 8px;
  background: #fff; padding: 6px;
  border-radius: 999px; min-width: 380px;
}
.newsletter input { flex: 1; border: none; padding: 10px 18px; font-family: inherit; font-size: 15px; background: transparent; color: var(--c-ink); outline: none; }
.newsletter button { padding: 10px 22px; border-radius: 999px; background: var(--c-gold); color: #14181F; border: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.newsletter button:hover { background: #C99A35; }

/* ---------- single post ---------- */
.single-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 48px 0 32px; }
.single-head .wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.cat-link { display: inline-block; color: var(--c-accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.single-head h1 { font-family: 'Frank Ruhl Libre', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.2; margin: 0 0 24px; }
.single-head .meta { display: flex; align-items: center; gap: 24px; color: var(--c-muted); font-size: 14px; flex-wrap: wrap; }
.single-head .author { display: flex; align-items: center; gap: 12px; }
.single-head .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--c-surface-2); border: 2px solid var(--c-line); }
.single-head .avatar img { width: 100%; height: 100%; }
.single-head .name { font-weight: 600; color: var(--c-ink); font-size: 14px; }
.single-head .role { font-size: 13px; color: var(--c-muted); }

.single-video, .single-thumb { max-width: 1100px; margin: -24px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.ratio-16x9 { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-md); }
.ratio-16x9 iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.single-thumb img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

.single-content { max-width: 740px; margin: 32px auto; padding: 0 24px; font-size: 17px; line-height: 1.85; color: var(--c-ink-2); }
.single-content > h2 { font-size: 28px; margin-top: 36px; margin-bottom: 14px; color: var(--c-ink); }
.single-content > h3 { font-size: 22px; margin-top: 28px; margin-bottom: 10px; color: var(--c-ink); }
.single-content p { margin: 0 0 22px; }
.single-content blockquote {
  border-right: 4px solid var(--c-gold);
  background: var(--c-surface-2);
  margin: 24px 0; padding: 18px 26px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 21px; line-height: 1.5;
  color: var(--c-ink); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.single-content a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-content img { border-radius: var(--r-md); margin: 18px 0; }
.single-content ul, .single-content ol { padding-right: 26px; margin: 0 0 22px; }
.single-content li { margin-bottom: 8px; }
.single-content figure { margin: 24px 0; }
.single-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-md); }

.tags { padding: 18px 0; border-top: 1px solid var(--c-line); margin-top: 24px; font-size: 14px; color: var(--c-muted); }
.tags a { display: inline-block; padding: 4px 12px; background: var(--c-surface-2); border-radius: 999px; margin: 0 4px; color: var(--c-ink-2); font-weight: 500; }
.tags a:hover { background: var(--c-accent); color: #fff; }

/* Auto internal links — visually distinct so readers can tell they're contextual links */
.single-content a.lm-auto-link {
    color: var(--c-accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--c-accent);
    padding-bottom: 1px;
    font-weight: 500;
    transition: background .15s ease, border-bottom-style .15s ease;
}
.single-content a.lm-auto-link:hover {
    background: rgba(30, 58, 138, 0.06);
    border-bottom-style: solid;
}

/* ---------- Auto-extracted FAQ accordion ---------- */
.lm-faq {
    max-width: 740px;
    margin: 36px auto 24px;
    padding: 26px clamp(18px, 3vw, 30px);
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    border: 1px solid var(--c-line);
}
.lm-faq h2 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--c-ink);
    border-bottom: 2px solid var(--c-ink);
    padding-bottom: 10px;
}
.lm-faq-list { display: flex; flex-direction: column; gap: 10px; }

.lm-faq-item {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.lm-faq-item[open] {
    border-color: var(--c-accent);
    box-shadow: 0 2px 8px rgba(30,58,138,.06);
}

.lm-faq-item summary {
    padding: 14px 56px 14px 18px; /* room for icon on the right (RTL) */
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--c-ink);
    user-select: none;
    transition: background .15s;
}
.lm-faq-item summary::-webkit-details-marker { display: none; }
.lm-faq-item summary::marker { display: none; content: ""; }
.lm-faq-item summary:hover { background: var(--c-bg); }

.lm-faq-item summary::before {
    content: '+';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s, transform .2s;
}
.lm-faq-item[open] summary::before {
    content: '−';
    background: var(--c-gold);
    color: #14181F;
}

.lm-faq-answer {
    padding: 4px 18px 18px;
    color: var(--c-ink-2);
    font-size: 15px;
    line-height: 1.75;
    border-top: 1px solid var(--c-line-2);
    margin-top: 0;
}
.lm-faq-answer p:first-child { margin-top: 12px; }
.lm-faq-answer p:last-child  { margin-bottom: 0; }
.lm-faq-answer a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.lm-faq-answer ul, .lm-faq-answer ol { padding-right: 22px; margin: 8px 0; }
.lm-faq-answer li { margin-bottom: 4px; }
.lm-faq-answer strong { color: var(--c-ink); }

/* ---------- archive (category, tag, search) ---------- */
.archive-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 56px 0 36px; text-align: center; }
.archive-head .wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.archive-head .kicker { color: var(--c-accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.archive-head h1 { font-family: 'Frank Ruhl Libre', serif; font-size: clamp(32px, 4vw, 48px); margin: 0 0 14px; line-height: 1.15; }
.archive-head p { color: var(--c-muted); margin: 0; }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 36px 0; }
.pagination a, .pagination span {
  padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--c-line); color: var(--c-ink-2); font-weight: 500;
}
.pagination .current { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.pagination a:hover { background: var(--c-surface-2); }

/* ---------- footer ---------- */
footer.site { background: var(--c-ink); color: #B7BBC2; padding: 56px 0 24px; margin-top: 32px; }
footer.site .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #2A2F39; }
footer.site h5 { color: #fff; font-family: 'Frank Ruhl Libre', serif; font-size: 18px; font-weight: 700; margin: 0 0 16px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: 10px; font-size: 14px; }
footer.site ul li a { color: #B7BBC2; }
footer.site ul li a:hover { color: var(--c-gold); }
footer.site .brand-block .brand-name { color: #fff; }
footer.site .brand-block p { font-size: 14px; line-height: 1.7; margin: 12px 0 16px; max-width: 360px; }
footer.site .news-mini { font-size: 14px; }
footer.site .news-mini ul { margin-bottom: 14px; }
footer.site .news-mini li { padding-right: 22px; position: relative; }
footer.site .news-mini li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--c-gold); font-weight: 700; }
footer.site .news-mini form { display: flex; gap: 6px; background: #2A2F39; border-radius: var(--r-sm); padding: 4px; }
footer.site .news-mini input { flex: 1; background: transparent; border: none; padding: 8px 12px; color: #fff; font-family: inherit; outline: none; font-size: 14px; }
footer.site .news-mini input::placeholder { color: #8E94A0; }
footer.site .news-mini button { background: var(--c-gold); color: #14181F; border: none; padding: 8px 16px; border-radius: var(--r-sm); font-weight: 700; cursor: pointer; font-size: 13px; }
footer.site .legal { padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #8E94A0; }

/* ---------- placeholder thumb art (no featured image) ---------- */
.ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ph-a, #1E3A8A) 0%, var(--ph-b, #14181F) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 50%);
}
.ph span { position: relative; z-index: 1; padding: 0 12px; text-align: center; }
.ph.gold { --ph-a: #B68C2A; --ph-b: #6B4F0F; }
.ph.crim { --ph-a: #7F1D1D; --ph-b: #14181F; }
.ph.green { --ph-a: #14532D; --ph-b: #14181F; }
.ph.purple { --ph-a: #4C1D95; --ph-b: #14181F; }
.ph.teal { --ph-a: #115E59; --ph-b: #14181F; }
.ph.slate { --ph-a: #334155; --ph-b: #14181F; }
.ph.warm { --ph-a: #9A3412; --ph-b: #14181F; }

/* ---------- comments (basic) ---------- */
.comments { max-width: 740px; margin: 32px auto; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.comments h3 { font-family: 'Frank Ruhl Libre', serif; margin: 0 0 14px; font-size: 22px; }
.comments .comment { padding: 12px 0; border-bottom: 1px solid var(--c-line-2); }
.comments .comment .meta { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.comments .comment .meta b { color: var(--c-ink); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg);
  margin-bottom: 12px;
}
.comment-form .submit { padding: 11px 22px; background: var(--c-accent); color: #fff; border: none; border-radius: var(--r-sm); font-weight: 600; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter form { min-width: 0; width: 100%; }
  nav.primary { display: none; }
}
@media (max-width: 640px) {
  header.site .wrap { grid-template-columns: 1fr auto; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  .topbar nav { display: none; }
  .hero-mini { grid-template-columns: 90px 1fr; }
  section.lm { padding: 36px 0; }
}

/* WP block compat */
.wp-block-image { margin: 24px 0; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: right; margin: 0 0 12px 18px; } /* RTL: visually right */
.alignright { float: left; margin: 0 18px 12px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
