/* FriuliTv Magazine — layout, componenti, responsive */

:root {
  --ftv-red: #e11607;
  --ftv-red-dark: #b41008;
  --ftv-blue: #0e6ec2;
  --ftv-sky: #4f94df;
  --ftv-yellow: #ffd720;
  --ftv-navy: #0c4a85;
  --ftv-navy-2: #0a3d6e;
  --ftv-paper: #f4f7fb;
  --ftv-white: #fff;
  --ftv-ink: #172033;
  --ftv-muted: #5c6b7c;
  --ftv-line: #d5deea;
  --ftv-container: 1180px;
  --ftv-display: "Source Sans 3", system-ui, sans-serif;
  --ftv-mast: "Oswald", sans-serif;
  --ftv-head: "Source Serif 4", Georgia, serif;
  --ftv-serif: "Source Serif 4", Georgia, serif;
  --ftv-body: "Source Sans 3", system-ui, sans-serif;
  --ftv-shadow: 0 1px 0 rgba(28, 25, 22, 0.04);
  --ftv-radius: 0;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ftv-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ftv-ink);
  background: var(--ftv-paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ftv-red); }
button, input, textarea { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.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;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--ftv-red);
  color: #fff;
}

.ftv-container {
  width: min(100% - 32px, var(--ftv-container));
  margin-inline: auto;
}

/* Progress */
.ftv-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
}
.ftv-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ftv-red);
}

/* Header */
.ftv-header {
  background: #fff;
  color: var(--ftv-ink);
  position: relative;
  z-index: 40;
}
.ftv-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(#4f94df, #4f94df) 0 0 / 100% 3px no-repeat, var(--ftv-navy);
}

.ftv-social {
  display: flex;
  gap: 6px;
}
.ftv-social__link {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
  text-transform: uppercase;
}
.ftv-social__link--facebook { background: #1877f2; }
.ftv-social__link--twitter { background: #111; }
.ftv-social__link--instagram { background: #e1306c; }
.ftv-social__link--youtube { background: #ff0000; }

.ftv-brand {
  background: #fff;
  border-bottom: 1px solid var(--ftv-line);
}
.ftv-brand__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 128px;
  padding: 16px 0 18px;
}
.ftv-brand__date {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: var(--ftv-navy);
  line-height: 1.2;
}
.ftv-brand__day {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.ftv-brand__time {
  font-family: var(--ftv-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ftv-blue);
}
.ftv-brand__logo { justify-self: center; }
.ftv-brand__tagline {
  justify-self: end;
  margin: 0;
  text-align: right;
  color: var(--ftv-navy);
}
.ftv-brand__tagline strong {
  display: block;
  font-family: var(--ftv-serif);
  font-size: 22px;
  line-height: 1.1;
}
.ftv-brand__tagline span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ftv-red);
  white-space: nowrap;
}

.ftv-logo {
  display: block;
  line-height: 0;
}
.ftv-logo__img,
.custom-logo-link img {
  height: 96px;
  width: auto;
  max-height: 96px;
}

.ftv-search-toggle,
.ftv-menu-toggle {
  background: transparent;
  border: 1px solid rgba(12, 74, 133, 0.22);
  color: var(--ftv-navy);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ftv-menu-toggle {
  display: none;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.ftv-menu-toggle__bars,
.ftv-menu-toggle__bars::before,
.ftv-menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.ftv-menu-toggle__bars::before { top: -6px; position: absolute; }
.ftv-menu-toggle__bars::after { top: 6px; position: absolute; }

.ftv-navwrap {
  background: var(--ftv-blue);
  border-top: 0;
}
.ftv-navwrap__inner { display: flex; align-items: center; min-height: 48px; gap: 8px; }
.ftv-nav { flex: 1; min-width: 0; }
.ftv-navwrap .ftv-search-toggle {
  margin-left: auto;
  flex-shrink: 0;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.ftv-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.ftv-menu > li > a {
  display: block;
  color: rgba(255,255,255,0.88);
  padding: 16px 18px;
  font-family: var(--ftv-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.ftv-menu > li > a:hover,
.ftv-menu > .current-menu-item > a,
.ftv-menu > .current_page_item > a {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--ftv-yellow);
}
.ftv-menu .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  color: var(--ftv-ink);
  min-width: 220px;
  box-shadow: var(--ftv-shadow);
  z-index: 20;
}
.ftv-menu > li { position: relative; }
.ftv-menu > li:hover > .sub-menu,
.ftv-menu > li:focus-within > .sub-menu { display: block; }
.ftv-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ftv-line);
}

.ftv-navwrap:not(:has(.ftv-menu li)) { display: none; }

/* Breaking */
.ftv-breaking {
  background: var(--ftv-red);
  color: #fff;
  width: 100%;
}
.ftv-breaking__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 52px;
  overflow: hidden;
}
.ftv-breaking__label {
  font-family: var(--ftv-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background: #8f0606;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.ftv-breaking__track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ftv-breaking__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ftv-marquee 38s linear infinite;
}
.ftv-breaking:hover .ftv-breaking__track {
  animation-play-state: paused;
}
.ftv-breaking__track li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ftv-breaking__track li::after {
  content: "•";
  margin: 0 18px;
  opacity: 0.7;
}
.ftv-breaking__track a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
}
.ftv-breaking__track a:hover { text-decoration: underline; color: #fff; }
@keyframes ftv-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Search overlay */
.ftv-search {
  background: #fff;
  border-bottom: 3px solid var(--ftv-red);
  padding: 18px 0;
}
.ftv-search .ftv-container {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ftv-searchform { display: flex; gap: 8px; flex: 1; }
.ftv-searchform__input,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--ftv-line);
  padding: 12px 14px;
  background: #fff;
}
.ftv-searchform__btn,
.ftv-btn,
.comment-form .submit {
  background: var(--ftv-red);
  color: #fff !important;
  border: 0;
  padding: 12px 18px;
  font-family: var(--ftv-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
}
.ftv-search__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ftv-muted);
}

/* Main */
.ftv-main { padding: 28px 0 64px; }
.ftv-magazine { display: grid; gap: 36px; }

/* Hero — 3 banner del giorno */
.ftv-hero__grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 12px;
  min-height: 460px;
}
.ftv-hero__main,
.ftv-hero__main .ftv-overlay { height: 100%; min-height: 460px; }
.ftv-hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  background: transparent;
  padding: 0;
  min-height: 460px;
}
.ftv-hero__side:empty { display: none; }
.ftv-hero__side .ftv-overlay {
  min-height: 0;
  height: 100%;
}
.ftv-hero__side .ftv-overlay__content { padding: 16px; }
.ftv-hero__side .ftv-overlay__title {
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.ftv-overlay {
  position: relative;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
  background: #111;
  display: block;
}
.ftv-overlay .ftv-thumb {
  position: absolute;
  inset: 0;
}
.ftv-overlay .ftv-thumb__img,
.ftv-overlay .ftv-thumb__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ftv-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 10, 16, 0.92));
  pointer-events: none;
}
.ftv-overlay__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
}
.ftv-overlay__title {
  font-family: var(--ftv-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  margin: 8px 0 10px;
}
.ftv-overlay__title a { color: #fff; }
.ftv-overlay .ftv-kicker { background: var(--ftv-red); color: #fff; }
.ftv-overlay .ftv-meta { color: rgba(255,255,255,0.8); }

/* Cards */
.ftv-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d9dce3;
  aspect-ratio: 16 / 10;
}
.ftv-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ftv-card:hover .ftv-thumb__img,
.ftv-overlay:hover .ftv-thumb__img { transform: scale(1.04); }
.ftv-thumb__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #d9d2c6, #b7aea2);
}
.ftv-thumb--podcast::after {
  content: "PODCAST";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--ftv-red);
  color: #fff;
  font-family: var(--ftv-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 8px;
}

.ftv-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ftv-red);
  color: #fff;
  font-size: 12px;
}

.ftv-kicker {
  display: inline-block;
  font-family: var(--ftv-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ftv-blue);
  font-weight: 700;
}
.ftv-overlay .ftv-kicker { padding: 4px 8px; }

.ftv-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ftv-line);
}
.ftv-card__body { padding: 16px 16px 18px; }
.ftv-card__title {
  font-family: var(--ftv-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.ftv-card__excerpt {
  color: var(--ftv-muted);
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.ftv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ftv-muted);
  font-size: 12px;
}

.ftv-mini {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}
.ftv-mini__thumb {
  display: block;
  overflow: hidden;
  background: #07090f;
}
.ftv-mini__thumb img {
  width: 84px;
  height: 64px;
  object-fit: cover;
}
.ftv-mini__title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 6px;
  font-family: var(--ftv-serif);
  font-weight: 700;
}

.ftv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ftv-grid--archive { grid-template-columns: repeat(2, 1fr); }
.ftv-grid--related { grid-template-columns: repeat(3, 1fr); }

.ftv-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ftv-ink);
}
.ftv-section__title {
  font-family: var(--ftv-serif);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: transparent;
  color: var(--ftv-ink);
  padding: 0 0 8px;
  border-bottom: 3px solid var(--ftv-blue);
  margin-bottom: -1px;
}
.ftv-section__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--ftv-red);
}

/* Channels */
.ftv-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ftv-channel {
  position: relative;
  min-height: 220px;
  color: #fff !important;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ftv-navy);
}
.ftv-channel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ftv-channel:hover .ftv-channel__img { transform: scale(1.06); }
.ftv-channel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,9,15,0.05) 10%, rgba(7,9,15,0.88) 100%);
}
.ftv-channel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 16px;
}
.ftv-channel__kicker {
  font-family: var(--ftv-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.ftv-channel__title {
  font-family: var(--ftv-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ftv-channel__text { font-size: 13px; color: rgba(255,255,255,0.82); }

/* Category blocks */
.ftv-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ftv-catblock { background: #fff; padding: 0 0 8px; }
.ftv-catblock .ftv-section__head { margin: 0 0 0; }
.ftv-catblock .ftv-card { box-shadow: none; }
.ftv-catblock__list { padding: 0 12px 8px; }
.ftv-catblock__list .ftv-mini { padding: 10px 0; border-top: 1px solid var(--ftv-line); }

/* Inner layout */
.ftv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.ftv-content { min-width: 0; }
.no-sidebar .ftv-layout { grid-template-columns: 1fr; }

.ftv-breadcrumbs {
  font-size: 13px;
  color: var(--ftv-muted);
  margin-bottom: 16px;
}
.ftv-breadcrumbs__sep { margin: 0 6px; }
.ftv-archive-head { margin-bottom: 22px; }
.ftv-archive-head__title {
  font-family: var(--ftv-serif);
  letter-spacing: -0.03em;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

/* Article */
.ftv-article { background: #fff; padding: 28px 32px 36px; }
.ftv-article__title {
  font-family: var(--ftv-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.ftv-article__media--podcast {
  position: relative;
  background: #07090f;
}
.ftv-article__media--podcast::after {
  content: "PODCAST";
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--ftv-red);
  color: #fff;
  font-family: var(--ftv-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 10px;
}
.ftv-article__meta { margin-bottom: 16px; }
.ftv-article__media { margin: 0 -32px 24px; }
.ftv-article__img { width: 100%; height: auto; }
.ftv-article__media figcaption {
  padding: 8px 32px;
  font-size: 13px;
  color: var(--ftv-muted);
}
.ftv-article__body {
  font-size: 1.125rem;
  line-height: 1.75;
}
.ftv-article__body p { margin: 0 0 1.1em; }
.ftv-article__body h2,
.ftv-article__body h3 { font-family: var(--ftv-head); }
.ftv-article__body a { color: var(--ftv-blue); text-decoration: underline; }
.ftv-article__body iframe,
.ftv-article__body video,
.ftv-article__body .wp-block-embed {
  max-width: 100%;
}
.ftv-article__footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ftv-line); }

.ftv-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
.ftv-share__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ftv-muted); }
.ftv-share__btn {
  border: 1px solid var(--ftv-line);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.ftv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ftv-tags a,
.ftv-tags__label {
  background: var(--ftv-paper);
  padding: 4px 8px;
  font-size: 12px;
}
.ftv-related { margin-top: 36px; }
.ftv-related .ftv-section__title { margin-bottom: 16px; display: inline-block; }

/* Sidebar */
.ftv-sidebar { display: grid; gap: 18px; }
.ftv-widget { background: #fff; padding: 16px; }
.ftv-widget__title {
  font-family: var(--ftv-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 700;
  background: transparent;
  color: var(--ftv-ink);
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--ftv-blue);
}
.ftv-list { display: grid; }
.ftv-list__item { padding: 10px 0; border-bottom: 1px dashed var(--ftv-line); }
.ftv-list__item:last-child { border-bottom: 0; }

/* Footer */
.ftv-footer {
  background: var(--ftv-navy);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 0;
}
.ftv-footer a { color: #fff; }
.ftv-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.ftv-footer .ftv-widget { background: transparent; padding: 0; }
.ftv-footer .ftv-widget__title {
  background: transparent;
  color: #fff;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--ftv-red);
  display: inline-block;
}
.ftv-footer__legal {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 36ch;
}
.ftv-footer__credits {
  display: grid;
  gap: 12px;
}
.ftv-footer__credits li {
  padding-left: 12px;
  border-left: 2px solid var(--ftv-red);
  line-height: 1.4;
  font-size: 14px;
}
.ftv-footer__channels { display: grid; gap: 12px; }
.ftv-footer__channels a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}
.ftv-footer__channels img {
  width: 56px;
  height: 40px;
  object-fit: cover;
}
.ftv-footer__channels strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ftv-footer__channels small {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
}
.ftv-footer__email {
  margin: 0 0 18px;
  font-size: 15px;
  word-break: break-word;
}
.ftv-footer__follow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ftv-footer__bar {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ftv-footer__bar p { margin: 0; }
.ftv-footer .ftv-social { margin-top: 0; }

.ftv-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: grid;
  place-items: center;
  z-index: 30;
}

.ftv-empty { background: #fff; padding: 48px 28px; text-align: center; }
.ftv-empty__code {
  font-family: var(--ftv-display);
  font-size: 72px;
  color: var(--ftv-red);
  margin: 0;
  line-height: 1;
}
.ftv-empty .ftv-searchform { max-width: 480px; margin: 20px auto; }

.nav-links,
.ftv-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.nav-links a,
.nav-links span,
.page-numbers {
  background: #fff;
  padding: 8px 12px;
  border: 1px solid var(--ftv-line);
}
.nav-links .current { background: var(--ftv-red); color: #fff; border-color: var(--ftv-red); }

.ftv-comments { background: #fff; margin-top: 28px; padding: 24px; }
.ftv-comments__list { list-style: none; }
.ftv-comments__list .comment { padding: 16px 0; border-bottom: 1px solid var(--ftv-line); }
.comment-form p { margin-bottom: 12px; }

.ftv-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 35;
}

/* Alignments / WP */
.alignwide { margin-left: -16px; margin-right: -16px; }
.wp-block-image img { height: auto; }
.wp-caption-text { font-size: 13px; color: var(--ftv-muted); }

@media (max-width: 1100px) {
  .ftv-grid { grid-template-columns: repeat(3, 1fr); }
  .ftv-channels { grid-template-columns: repeat(2, 1fr); }
  .ftv-cats { grid-template-columns: 1fr 1fr; }
  .ftv-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .ftv-hero__grid,
  .ftv-layout { grid-template-columns: 1fr; }
  .ftv-hero__main,
  .ftv-hero__main .ftv-overlay,
  .ftv-overlay { min-height: 280px; height: auto; }
  .ftv-hero__side {
    grid-template-rows: none;
    min-height: 0;
  }
  .ftv-hero__side .ftv-overlay { min-height: 220px; }
  .ftv-grid,
  .ftv-grid--archive,
  .ftv-grid--related { grid-template-columns: 1fr 1fr; }
  .ftv-menu-toggle { display: grid; }
  .ftv-brand__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "date tag";
    min-height: 0;
    gap: 12px;
    padding: 14px 0;
  }
  .ftv-brand__logo { grid-area: logo; }
  .ftv-brand__date { grid-area: date; }
  .ftv-brand__tagline { grid-area: tag; }
  .ftv-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 320px);
    background: var(--ftv-navy);
    z-index: 45;
    padding: 72px 0 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow: auto;
  }
  body.is-nav-open .ftv-nav { transform: translateX(0); }
  .ftv-menu { flex-direction: column; }
  .ftv-menu .sub-menu { position: static; display: block; background: transparent; box-shadow: none; }
  .ftv-menu .sub-menu a { color: #fff; border-color: rgba(255,255,255,0.08); }
  .ftv-article { padding: 20px 18px 28px; }
  .ftv-article__media { margin: 0 -18px 18px; }
}

@media (max-width: 640px) {
  .ftv-container { width: min(100% - 20px, var(--ftv-container)); }
  .ftv-brand__inner { padding: 12px 0; gap: 8px 12px; }
  .ftv-brand__time { font-size: 22px; }
  .ftv-brand__tagline strong { font-size: 16px; }
  .ftv-brand__tagline span { white-space: normal; font-size: 11px; letter-spacing: 0.04em; }
  .ftv-logo__img,
  .custom-logo-link img { height: 78px; }
  .ftv-grid,
  .ftv-grid--archive,
  .ftv-grid--related,
  .ftv-channels,
  .ftv-cats,
  .ftv-footer__grid { grid-template-columns: 1fr; }
  .ftv-footer__bar { flex-wrap: wrap; }
  .ftv-breaking__label { margin-left: 0; }
  .ftv-main { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ftv-breaking__track { animation: none; }
  .ftv-thumb__img { transition: none; }
  html { scroll-behavior: auto; }
}
