/* M25-R1 / R1-02 · News & Blog editorial centre
   Single shared left sidebar + chronological horizontal cards + article detail.
   Scope: .fy-editorial-* / .fy-side-* / .fy-hcard / .fy-article only.
   Header, footer and global CTA CSS stay owned by r1-chrome / r1-footer. */

.fy-editorial-shell { max-width: 1280px; margin-inline: auto; padding: 48px clamp(20px, 3vw, 36px) 88px; }
.fy-editorial-shell [hidden] { display: none !important; }

.fy-editorial-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.fy-editorial-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- shared left column: categories + recommended + quick inquiry ---------- */
.fy-side-box {
  padding: 18px;
  background: var(--bg-sub, #faf8f5);
  border: 1px solid var(--hairline, rgba(26, 24, 21, .12));
  border-radius: 14px;
}

.fy-side-box__title {
  margin: 0 0 12px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent, #b5835a);
}

.fy-side-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.fy-side-cat {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #141311);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.fy-side-cat:hover { background: rgba(20, 19, 17, .06); }
.fy-side-cat.is-active { background: var(--ink, #141311); color: var(--bg, #fff); }
.fy-side-cat sup { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 400; opacity: .7; }

.fy-side-rec-list { display: flex; flex-direction: column; }
.fy-side-rec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline, rgba(26, 24, 21, .12));
  text-decoration: none;
  color: inherit;
}
.fy-side-rec:first-child { padding-top: 0; }
.fy-side-rec:last-child { border-bottom: 0; padding-bottom: 0; }
.fy-side-rec__cat {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong, #8f653f);
}
.fy-side-rec__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #141311);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fy-side-rec:hover .fy-side-rec__title { color: var(--accent-strong, #8f653f); }

/* Warm-sand quick inquiry card: one question, two actions, no filler copy. */
.fy-side-cta {
  margin-top: 16px;
  padding: 16px;
  background: #f1e7d5;
  border: 1px solid rgba(139, 101, 58, .18);
  border-radius: 12px;
}
.fy-side-cta strong { display: block; margin-bottom: 12px; font-size: 14px; line-height: 1.4; color: var(--ink, #141311); }
.fy-side-cta__row { display: flex; gap: 8px; }
.fy-side-cta__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #1b4d3e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.fy-side-cta__btn--ghost { background: transparent; border: 1px solid #1b4d3e; color: #1b4d3e; }
.fy-side-cta__btn:hover { filter: brightness(1.08); }

/* ---------- right column: listing head + chronological horizontal cards ---------- */
.fy-editorial-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fy-editorial-head h1 {
  margin: 0 0 10px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  color: var(--ink, #141311);
}
.fy-editorial-head p { margin: 0; max-width: 74ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft, #5c554c); }
.fy-hcard-list { display: flex; flex-direction: column; gap: 18px; }

.fy-hcard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: var(--bg-elev, #fff);
  border: 1px solid var(--hairline, rgba(26, 24, 21, .12));
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fy-hcard:hover { border-color: rgba(200, 161, 101, .45); box-shadow: 0 12px 28px rgba(20, 19, 17, .06); }

.fy-hcard__cover {
  display: block;
  width: 220px;
  height: 148px;
  aspect-ratio: 220 / 148;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f3ef;
}
.fy-hcard__cover img { width: 220px; height: 148px; object-fit: cover; display: block; }

.fy-hcard__body { min-width: 0; }
.fy-hcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b665c);
}
.fy-hcard__cat { font-weight: 700; color: var(--accent-strong, #8f653f); }
.fy-hcard__title {
  margin: 0 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, #141311);
}
.fy-hcard__title a { color: inherit; text-decoration: none; }
.fy-hcard__title a:hover { color: var(--accent-strong, #8f653f); }
.fy-hcard__excerpt {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft, #5c554c);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fy-hcard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong, #8f653f);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ---------- shared detail article ---------- */
.fy-article { min-width: 0; }
.fy-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--ink-meta, #6b665c);
}
.fy-crumbs a { color: var(--ink, #141311); text-decoration: none; border-bottom: 1px solid var(--accent); }
.fy-crumbs span[aria-current] { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fy-article__head { margin-bottom: 24px; }
.fy-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b665c);
}
.fy-article__cat { font-weight: 700; color: var(--accent-strong, #8f653f); }
.fy-article__title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 500;
  line-height: 1.17;
  color: var(--ink, #141311);
}
.fy-article__figure { margin: 0 0 30px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--bg-sub, #faf8f5); }
.fy-article__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-article__body { max-width: 72ch; font-size: 16px; line-height: 1.75; color: var(--ink-soft, #5c554c); }
.fy-article__body h2 { margin: 34px 0 10px; font-family: var(--font-display, Georgia, serif); font-size: 23px; font-weight: 500; color: var(--ink, #141311); }
.fy-article__body p { margin: 0 0 18px; }

.fy-article__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline, rgba(26, 24, 21, .14));
}
.fy-pager__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--hairline, rgba(26, 24, 21, .12));
  border-radius: 12px;
  background: var(--bg-sub, #faf8f5);
  color: var(--ink, #141311);
  text-decoration: none;
}
.fy-pager__item:not(.is-empty):hover { border-color: var(--accent); }
.fy-pager__item.is-empty { opacity: .55; }
.fy-pager__dir {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong, #8f653f);
}
.fy-pager__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fy-article .cta-band { margin-top: 56px; }
.fy-editorial-shell > .cta-band { margin-top: 72px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fy-editorial-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fy-editorial-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .fy-editorial-sidebar .fy-side-box { flex: 1 1 320px; }
}
@media (max-width: 640px) {
  .fy-editorial-shell { padding-top: 34px; padding-bottom: 64px; }
  .fy-editorial-sidebar { flex-direction: column; }
  .fy-hcard { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .fy-hcard__cover { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .fy-hcard__cover img { width: 100%; height: 100%; }
  .fy-article__pager { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fy-side-cat, .fy-hcard { transition: none; }
  .fy-hcard:hover { box-shadow: none; }
}
