@import url("/assets/brand/paper-flame-brand.css?v=paper-flame-20261019");
:root {
  --paper: #f3f0e9;
  --card: #fffefb;
  --ink: #172821;
  --muted: #64706a;
  --line: #dddcd3;
  --orange: #df673e;
  --green: #214b3c;
  --green-soft: #e9f1eb;
  --focus: #dd7147;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fs-news {
  margin: 0;
  background: #e6e6de;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.fs-news button,
body.fs-news input,
body.fs-news select { font: inherit; }
body.fs-news button { cursor: pointer; }
body.fs-news :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body.fs-news h1,
body.fs-news h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.025em; }

.news-site { min-height: 100vh; background: var(--paper); }
.news-site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 21px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.news-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.27rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}
.news-brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px 10px 13px 10px;
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  transform: rotate(-9deg);
}
.news-brand-mark span { transform: rotate(9deg); }
.news-primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: .91rem;
}
.news-primary-nav a { color: inherit; text-decoration: none; }
.news-primary-nav a:hover { color: var(--ink); }
.news-primary-nav [aria-current="page"] { color: var(--green); font-weight: 800; }
.news-locale select {
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

main.news-preview {
  width: auto;
  max-width: 1200px;
  margin: auto;
  padding: 48px 24px 70px;
}
.news-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.news-intro h1 {
  max-width: 650px;
  margin: .35em 0 .25em;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.09;
}
.news-intro p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.64;
}
.news-eyebrow,
.news-section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--green);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-eyebrow span { color: var(--orange); }

.news-searchbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 8px;
  max-width: none;
  margin: 27px 0 0;
}
.news-searchbox input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.04rem;
}
.news-searchbox button,
.soft-button,
.fs-filter-inline-entry button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  white-space: nowrap;
}
.news-searchbox .primary,
.ticker-settings-actions .primary,
#filter-form .primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 750;
}
.news-searchbox .fs-filter-inline-entry { display: contents; }
.news-searchbox .fs-filter-inline-entry button:hover,
.soft-button:hover { border-color: var(--orange); }
.fs-micro {
  margin: 8px 2px 20px;
  color: var(--muted);
  font-size: .79rem;
}
.news-choice-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .84rem;
}

#news-ticker { margin: 0 0 34px; }
.ticker-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.ticker-settings h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
}
.ticker-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticker-window {
  min-height: 70px;
  overflow: hidden;
  border: 1px solid var(--green);
  border-radius: 17px;
  background: var(--green);
  color: #fff;
}
.ticker-track { min-height: 70px; }
.ticker-group {
  align-items: stretch;
  gap: 38px;
  padding: 10px 38px 10px 20px;
}
.ticker-group .tick {
  width: clamp(270px, 45vw, 640px);
  max-width: none;
  justify-content: center;
  padding: 8px 0;
  border: 0;
  color: #fff;
  text-decoration: none;
}
.ticker-group .tick strong { font-size: .96rem; line-height: 1.45; }
.ticker-group .ticker-meta-item {
  color: #ffc3a9;
  font-size: .75rem;
}
.ticker-group .ticker-source,
.ticker-group .ticker-summary { color: #e2eae4; }
.ticker-empty { align-self: center; margin: 0; padding: 22px; color: #fff; }
.ticker-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: .79rem;
}

.news-entry,
.news-room,
#news-filter-view {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.news-entry-heading h2 {
  margin: 7px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}
.news-entry > p,
.news-room > p,
#news-filter-status { color: var(--muted); line-height: 1.6; }
.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.categories .category {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}
.categories .category:hover { border-color: #c5c3b9; box-shadow: 0 12px 28px rgba(23, 40, 33, .09); }
.categories .category strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.categories .category span,
.categories .category small { color: var(--muted); }
#load-status { margin-top: 18px; }
.news-room .controls { margin: 22px 0; }
.news-room .grid,
#news-filter-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-footer {
  margin-top: 55px;
  color: var(--muted);
  font-size: .77rem;
  text-align: center;
}

dialog {
  max-width: min(780px, calc(100vw - 28px));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(27, 38, 29, .2);
}
dialog::backdrop { background: rgba(13, 27, 19, .68); }
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #faf8f3;
}
.dialog-head h2 { margin: 0; font-size: 1.55rem; }
.dialog-head button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}
#filter-form,
#detail-body,
#detail-tabs { padding: 22px 24px; }

@media (max-width: 800px) {
  .news-site-header { grid-template-columns: 1fr auto; }
  .news-primary-nav { display: none; }
  main.news-preview { padding: 28px 18px 55px; }
  .news-searchbox { grid-template-columns: minmax(0, 1fr) auto; }
  .news-searchbox input { grid-column: 1 / -1; }
  .news-searchbox .news-search-submit { grid-column: 1; }
  .news-searchbox .fs-filter-inline-entry { display: block; grid-column: 2; }
  .news-searchbox .fs-filter-inline-entry button { width: 100%; }
  .ticker-actions { width: 100%; }
  .categories,
  .news-room .grid,
  #news-filter-results { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
