/*
Theme Name: ریلو (Reylo)
Theme URI: http://localhost/wp-reylo/
Author: Reylo
Description: قالب اختصاصی ریلو — راست‌چین و فارسی با هویت بصری «حمل‌ونقل رترو»: کاغذ کرم، چهار نوار قرمز/سبز/زرد/آبی، تایپوگرافی سنگین و کاشی‌های رنگی. شامل لندینگ، مجله، آرشیو ایستگاه‌ها و خطوط مترو و قالب برگه‌ی «نقشه و مسیریاب مترو».
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reylo
Tags: rtl-language-support, blog, news, custom-menu, custom-logo, featured-images, block-styles, block-patterns
*/

/* ==========================================================================
   Tokens — retro transit livery
   ========================================================================== */
:root {
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --surface: #fbf8f1;
  --ink: #161513;
  --ink-2: #3a3833;
  --muted: #6b675e; /* 4.5:1 on paper and surface (WCAG AA) */
  --rule: rgba(22, 21, 19, 0.14);
  --rule-2: rgba(22, 21, 19, 0.08);

  --red: #d6401f; /* white text on red ≥ 4.5:1 */
  --green: #1e7b4e;
  --yellow: #f3b229;
  --blue: #2155a3;
  --green-ink: #0f4d30;

  --stripes: linear-gradient(
    to bottom,
    var(--red) 0 22%,
    transparent 22% 26%,
    var(--green) 26% 48%,
    transparent 48% 52%,
    var(--yellow) 52% 74%,
    transparent 74% 78%,
    var(--blue) 78% 100%
  );

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 0 rgba(22, 21, 19, 0.06), 0 10px 26px -14px rgba(22, 21, 19, 0.35);

  --wrap: 1240px;
  --prose: 760px;
  --header-h: 72px;

  /* --reylo-font is set inline by inc/fonts.php (customizer choice) */
  --font: var(--reylo-font, 'Vazirmatn'), 'Vazirmatn', 'Reylo Fallback', Tahoma, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-block: 36px 88px;
}

.home .site-main {
  padding-block: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Brand pieces
   ========================================================================== */
.stripe-band {
  height: 14px;
  background: var(--stripes);
}

.stripe-band--thin {
  height: 8px;
}

.stripes-art {
  display: block;
}

.lbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  vertical-align: middle;
}

.lb-link {
  text-decoration: none;
  border-radius: 50%;
}

.lb {
  --lc: var(--ink);
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--lc);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}

.lb--lg {
  min-width: 46px;
  height: 46px;
  font-size: 22px;
  box-shadow: 0 0 0 3px var(--paper);
}

.lb--sm {
  min-width: 22px;
  height: 22px;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 10px;
  background: var(--stripes);
}

/* ==========================================================================
   Buttons & chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  color: var(--paper);
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 var(--yellow);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  color: var(--ink);
  background: var(--surface);
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  color: var(--ink);
  box-shadow: -4px 4px 0 var(--ink);
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn--red:hover {
  color: #fff;
  box-shadow: -4px 4px 0 var(--ink);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.chip {
  --c: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 2px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1.5px solid var(--rule);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
  text-decoration: none;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

a.chip:hover {
  border-color: var(--c);
  color: var(--ink);
}

.chip--plain::before {
  display: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header::after {
  content: '';
  display: block;
  height: 6px;
  background: var(--stripes);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.01em;
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 52px;
  height: 33px;
  flex: none;
  color: var(--ink);
}

.brand .custom-logo {
  max-height: 42px;
  width: auto;
}

.primary-nav {
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_parent > a {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after,
.primary-nav .current_page_parent > a::after {
  transform: scaleX(1);
}

/* «بیشتر» dropdown (inc/menu.php) */
.primary-nav li {
  position: relative;
}

.primary-nav .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav .menu-item-has-children > a::before {
  content: '';
  order: 2;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s, margin 0.2s;
}

.primary-nav .is-open > a::before {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 60;
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--yellow);
}

.primary-nav .is-open > .sub-menu {
  display: flex;
}

/* desktop: also open on hover / keyboard focus */
@media (hover: hover) and (min-width: 761px) {
  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
  }

  /* bridge the gap so the pointer can travel into the panel */
  .primary-nav .menu-item-has-children::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 100%;
    height: 8px;
  }
}

.primary-nav .sub-menu a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
}

.primary-nav .sub-menu a::after {
  display: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
  background: var(--paper-2);
}

/* «آگهی کسب‌وکار»: a pill so business owners find it */
.primary-nav .menu-biz > a {
  margin-inline-start: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--ink);
}

.primary-nav .menu-biz > a::after {
  display: none;
}

.primary-nav .menu-biz > a:hover,
.primary-nav .menu-biz.current-menu-item > a {
  background: var(--ink);
  color: var(--paper);
}

.primary-nav .sub-menu .menu-sep {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1.5px dashed var(--rule);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.nav-toggle {
  display: none;
}

.header-search {
  display: none;
  padding-block: 0 18px;
}

.header-search.is-open {
  display: block;
}

@media (max-width: 980px) {
  .header-actions .btn span {
    display: none;
  }

  .header-actions .btn {
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 8px 20px 20px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .primary-nav a {
    padding: 14px 0;
    font-size: 19px;
    font-weight: 900;
    border-bottom: 1px solid var(--rule);
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav .menu-item-has-children > a {
    justify-content: space-between;
  }

  .primary-nav .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 16px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }

  .primary-nav .sub-menu a {
    padding: 11px 0;
    font-size: 16.5px;
    font-weight: 700;
    border-radius: 0;
  }

  .primary-nav .sub-menu .menu-sep {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .primary-nav .menu-biz > a {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-bottom: 2px solid var(--ink);
    text-align: center;
  }

  .site-header__inner {
    gap: 12px;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
}

.search-form input[type='search'] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  padding: 10px 16px;
  font-size: 16px;
}

.search-form .btn {
  border-radius: 0;
  border-width: 0;
  min-height: 48px;
}

.search-form .btn:hover {
  transform: none;
  box-shadow: none;
  background: var(--red);
}

/* ==========================================================================
   Page heads (archives, magazine)
   ========================================================================== */
.page-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-block: 28px 34px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
}

.page-head h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.page-head p,
.page-head .archive-description {
  margin: 0;
  max-width: 640px;
  color: var(--ink-2);
  font-size: 18px;
}

.page-head .archive-description p {
  margin: 0;
}

.page-head__art {
  width: clamp(110px, 16vw, 200px);
  align-self: start;
}

.page-head .search-form {
  margin-top: 24px;
  max-width: 560px;
}

.page-head__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  font-weight: 800;
  color: var(--ink-2);
}

.page-head__stats b {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  margin-inline-end: 6px;
}

@media (max-width: 640px) {
  .page-head {
    grid-template-columns: 1fr;
  }

  .page-head__art {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 76px;
    opacity: 0.9;
  }

  .page-head h1 {
    padding-inline-end: 70px;
  }
}

/* ==========================================================================
   Category strip
   ========================================================================== */
.cat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: -10px 0 28px;
  scrollbar-width: thin;
}

.cat-strip .chip {
  padding: 6px 14px;
}

.cat-strip .chip.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  --c: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.card:hover {
  transform: translate(3px, -3px);
  border-color: var(--ink);
  box-shadow: -6px 6px 0 var(--c);
}

.card__media {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* no featured image: the category's line running into a station */
.card__line {
  position: relative;
  height: 74px;
  background: var(--c);
  overflow: hidden;
}

.card__line::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 66px;
  top: 50%;
  height: 22px;
  margin-top: -11px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0 4px,
    transparent 4px 9px
  );
  opacity: 0.85;
}

.card__line::after {
  content: '';
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--yellow);
  border: 8px solid var(--paper);
  box-shadow: 0 0 0 3px var(--ink);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}

.card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__city {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.card__title {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card .chip,
.card .lb-link {
  position: relative;
  z-index: 1;
}

.card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.card__foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card__foot svg {
  width: 15px;
  height: 15px;
}

.cards--featured .card:first-child .card__line {
  height: 96px;
}

/* ==========================================================================
   Color tiles (landing + block style)
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  --t: var(--green);
  --t-ink: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px 26px 22px;
  border-radius: var(--r-sm);
  background: var(--t);
  color: var(--t-ink);
  overflow: hidden;
  isolation: isolate;
}

.tile--red {
  --t: var(--red);
}

.tile--yellow {
  --t: var(--yellow);
  --t-ink: var(--ink);
}

.tile--blue {
  --t: var(--blue);
}

.tile--paper {
  --t: var(--surface);
  --t-ink: var(--ink);
  border: 1.5px solid var(--rule);
}

.tile--ink {
  --t: var(--ink);
  --t-ink: var(--paper);
}

.tile h3 {
  color: inherit;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.tile p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 30ch;
}

.tile__mark {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}

.tile__mark .brand__mark {
  width: 76px;
  height: 48px;
  color: var(--t-ink);
}

.tile__mark .brand__mark circle:first-of-type {
  fill: var(--t);
}

.tile__brand {
  font-weight: 900;
  font-size: 15px;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 200px;
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding-inline: 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--ink);
  color: var(--paper);
}

.pagination a.page-numbers:hover {
  background: var(--yellow);
}

.pagination .dots {
  border-color: transparent;
}

/* ==========================================================================
   Single article / station / line
   ========================================================================== */
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-inline-start: 6px;
  color: var(--red);
  font-weight: 900;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.article {
  max-width: var(--prose);
  margin-inline: auto;
}

.article-head {
  position: relative;
  margin-bottom: 30px;
}

.article-head .chip {
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.25;
  margin: 0 0 16px;
}

.article-lead {
  font-size: 20px;
  color: var(--ink-2);
  margin: 0 0 22px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding-block: 14px;
  border-block: 2px solid var(--ink);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta svg {
  width: 17px;
  height: 17px;
}

.article-thumb {
  margin: 0 0 30px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.article-thumb img {
  display: block;
  width: 100%;
}

/* station & line heads */
.transit-head {
  position: relative;
  padding: 34px 0 30px;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--ink);
}

.transit-head__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.transit-head__kicker {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-2);
}

.transit-head h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.08;
  margin: 0 0 6px;
}

.transit-head__en {
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  direction: ltr;
  text-align: end;
  display: block;
}

.transit-head__lead {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 18.5px;
  color: var(--ink-2);
}

.transit-head__line {
  height: 16px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--lc, var(--ink));
  position: relative;
}

.transit-head__line i {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--ink);
}

.transit-head__line i:first-child {
  inset-inline-start: -4px;
}

.transit-head__line i:last-child {
  inset-inline-end: -4px;
}

.transit-head__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 900;
  font-size: 17px;
}

/* neighbour diagram on station pages */
.neighbours {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
}

.neighbour {
  --lc: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
}

.neighbour__side {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
}

.neighbour__side small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
}

.neighbour__side--end {
  text-align: end;
}

.neighbour__side a {
  text-decoration: none;
}

.neighbour__rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.neighbour__rail::before {
  content: '';
  position: absolute;
  inset-inline: -40px;
  height: 10px;
  background: var(--lc);
  border-radius: 999px;
  z-index: 0;
}

.neighbour__here {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--ink);
}

.neighbour .lb {
  position: relative;
  z-index: 1;
}

/* ---------- prose ---------- */
.prose {
  font-size: 18px;
  line-height: 2;
  color: var(--ink-2);
}

.prose > * {
  margin-block: 0 1.15em;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-block: 2em 0.75em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

.prose h2::before {
  content: '';
  flex: none;
  width: 30px;
  height: 18px;
  background: var(--stripes);
}

.prose h3 {
  font-size: 22px;
  margin-block: 1.6em 0.6em;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 800;
}

.prose a {
  font-weight: 700;
}

.prose ul {
  padding-inline-start: 1.3em;
  list-style: none;
}

.prose ul > li {
  position: relative;
  margin-bottom: 0.5em;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: -1.15em;
  top: 0.78em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
}

/* ordered lists read like a metro line */
.prose ol {
  list-style: none;
  padding-inline-start: 0;
  counter-reset: step;
}

.prose ol > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 50px;
  margin-bottom: 0.85em;
  min-height: 34px;
}

.prose ol > li::before {
  content: counter(step, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  z-index: 1;
}

.prose ol > li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 34px;
  bottom: -0.85em;
  width: 8px;
  background: var(--green);
}

.prose blockquote,
.prose .wp-block-quote {
  margin-inline: 0;
  padding: 20px 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--ink);
  font-size: 17px;
}

.prose blockquote a {
  text-decoration-color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr,
.prose .wp-block-separator {
  border: 0;
  height: 2px;
  background: var(--ink);
  margin-block: 2.4em;
  opacity: 1;
}

.prose em {
  color: var(--muted);
}

.prose .wp-block-table,
.prose figure.wp-block-table {
  margin-inline: 0;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.7;
}

.prose th,
.prose td {
  padding: 12px 16px;
  text-align: start;
  border: 0;
  border-bottom: 1px solid var(--rule);
}

.prose thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:nth-child(even) td {
  background: rgba(22, 21, 19, 0.025);
}

.prose img {
  border-radius: var(--r-md);
}

.reylo-route {
  display: block;
  margin-block: 1.8em;
  min-height: 120px;
}

/* ---------- route CTA ---------- */
.route-cta {
  position: relative;
  margin-top: 52px;
  padding: 30px 30px 30px 180px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: #fff;
  overflow: hidden;
}

.route-cta h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.route-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.8;
  max-width: 44ch;
}

.route-cta p a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-cta .stripes-art {
  position: absolute;
  inset-inline-end: -10px;
  bottom: -10px;
  width: 170px;
}

@media (max-width: 640px) {
  .route-cta {
    padding: 26px 22px 120px;
  }

  .route-cta .stripes-art {
    width: 120px;
  }
}

.article-foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related {
  margin-top: 72px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section-title a {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   Transit archives
   ========================================================================== */
.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -6px 0 30px;
}

.archive-filter {
  flex: 1 1 280px;
  max-width: 420px;
}

.archive-filter input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 16px;
}

.city-block {
  margin-bottom: 64px;
}

.city-block__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.city-block__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0;
}

.city-block__head span {
  color: var(--muted);
  font-weight: 700;
}

.line-block {
  --lc: var(--ink);
  margin-bottom: 26px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.line-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--rule);
  border-inline-start: 10px solid var(--lc);
}

.line-block__head h3 {
  margin: 0;
  font-size: 19px;
}

.line-block__head h3 a {
  text-decoration: none;
}

.line-block__head small {
  margin-inline-start: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 16px 18px 18px;
  columns: 4 200px;
  column-gap: 26px;
}

.station-list li {
  break-inside: avoid;
  position: relative;
  padding: 5px 0;
  padding-inline-start: 22px;
}

.station-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--lc);
  background: var(--surface);
}

.station-list a {
  font-weight: 700;
  text-decoration: none;
  font-size: 15.5px;
}

.station-list a:hover {
  text-decoration: underline;
}

.station-list .lbs {
  margin-inline-start: 6px;
  gap: 3px;
}

.station-list .lb {
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  box-shadow: none;
}

.station-list li[hidden],
.line-block[hidden],
.city-block[hidden] {
  display: none;
}

/* line cards */
.line-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.line-card {
  --lc: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 18px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.line-card:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translate(3px, -3px);
  box-shadow: -6px 6px 0 var(--lc);
}

.line-card__rail {
  position: relative;
  height: 56px;
  background: var(--lc);
}

.line-card__rail::before {
  content: '';
  position: absolute;
  inset-inline: 28px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.65);
}

.line-card__rail .lb {
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  margin-top: -23px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--lc);
}

.line-card__body {
  padding: 0 18px;
}

.line-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.line-card__ends {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 15px;
}

.line-card__meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 18px;
  margin-top: auto;
}

/* Station report form (inc/reports.php) */
.station-report {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--yellow);
}

.station-report h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.station-report p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.9;
}

.station-report fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.station-report legend {
  font-weight: 800;
  margin-bottom: 10px;
}

.station-report__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.station-report__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.station-report__item:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-2);
}

.station-report__item input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.station-report__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 800;
}

.station-report__field small {
  color: var(--muted);
  font-weight: 600;
}

.station-report__field input,
.station-report__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
}

.station-report__field input:focus,
.station-report__field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.station-report__hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.station-report__done {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  border: 1.5px solid var(--green);
  font-weight: 700;
}

.station-report__done.is-warn {
  background: color-mix(in srgb, var(--yellow) 18%, var(--surface));
  border-color: var(--yellow);
}

@media (max-width: 600px) {
  .station-report {
    padding: 18px 16px;
    box-shadow: -4px 4px 0 var(--yellow);
  }
}

/* Schedules hub (category-schedules.php) */
.sched-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.sched-jump a {
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.sched-jump a:hover {
  background: var(--ink);
  color: var(--paper);
}

.sched-hub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

.sched-hub:hover {
  color: var(--paper);
  transform: translate(3px, -3px);
  box-shadow: -6px 6px 0 var(--red);
}

.sched-hub__clock {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
}

.sched-hub__clock svg {
  width: 26px;
  height: 26px;
}

.sched-hub__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sched-hub__body strong {
  font-size: 19px;
  line-height: 1.4;
}

.sched-hub__body span {
  color: rgba(243, 238, 228, 0.75);
  font-size: 14.5px;
  line-height: 1.7;
}

.sched-hub__go {
  margin-inline-start: auto;
  font-size: 24px;
  font-weight: 900;
}

.sched-hours {
  display: flex;
  gap: 10px;
  padding: 0 18px;
}

.sched-hours span {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.sched-hours small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.sched-hours b {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .sched-hub {
    align-items: flex-start;
  }
  .sched-hub__go {
    display: none;
  }
}

/* ==========================================================================
   Empty / 404
   ========================================================================== */
.empty {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  padding: 48px 28px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}

.empty__code {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}

.empty .search-form {
  margin-block: 24px 16px;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments {
  max-width: var(--prose);
  margin: 56px auto 0;
  padding: 28px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
}

.comments ol {
  list-style: none;
  padding: 0;
}

.comments .children {
  padding-inline-start: 24px;
}

.comment-body {
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}

.comment-meta {
  font-size: 14px;
  color: var(--muted);
}

.comment-author .avatar {
  border-radius: 50%;
  vertical-align: middle;
  margin-inline-end: 8px;
}

.comment-form label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.comment-form .submit {
  border: 2px solid var(--ink);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(243, 238, 228, 0.72);
  font-size: 15px;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  height: 14px;
  background: var(--stripes);
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px 30px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.14);
}

.footer-hero p {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: var(--paper);
}

.footer-hero .btn {
  flex: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px 40px;
  padding-block: 36px 4px;
}

.footer-grid h2 {
  color: var(--paper);
  font-size: 15px;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-about .brand {
  color: var(--paper);
  margin-bottom: 16px;
}

.footer-about .brand__mark {
  color: var(--paper);
}

.footer-about .brand__mark circle:first-of-type {
  fill: var(--ink);
}

.footer-about p {
  margin: 0;
  max-width: 380px;
  line-height: 1.95;
}

.footer-bottom {
  margin-top: 28px;
  padding-block: 18px 24px;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(243, 238, 228, 0.5);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-hero {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid nav:first-of-type {
    grid-column: 1 / -1;
  }

  .footer-grid nav:first-of-type ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Contact page (page-templates/template-contact.php)
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  margin-bottom: 64px;
}

.contact__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 2px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--surface);
}

.contact__list li {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

.contact__list li:last-child {
  border-bottom: 0;
}

.contact__k {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.contact__list a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}

.contact__shortcuts h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.contact__shortcuts ul {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 6px;
}

.contact__form {
  display: grid;
  gap: 16px;
}

.contact__form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
}

.contact__form b {
  color: var(--red);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.contact__form .btn {
  justify-self: start;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__note {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 800;
  margin: 0 0 16px;
}

.contact__note--ok {
  background: #dcefe3;
  color: var(--green-ink);
}

.contact__note--err {
  background: #f8ddd6;
  color: #8a2412;
}

@media (max-width: 800px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__main {
    order: -1;
  }
}

@media (max-width: 520px) {
  .contact__row {
    grid-template-columns: 1fr;
  }
}

/* route planner landings: popular routes + other cities */
.router-links {
  display: grid;
  gap: 28px;
}

.router-links h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list a {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.chip-list a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Block styles (inc/blocks.php) — front end
   ========================================================================== */
.is-style-reylo-tile-green,
.is-style-reylo-tile-red,
.is-style-reylo-tile-yellow,
.is-style-reylo-tile-blue {
  padding: 28px !important;
  border-radius: var(--r-sm);
  color: #fff;
}

.is-style-reylo-tile-green {
  background: var(--green);
}

.is-style-reylo-tile-red {
  background: var(--red);
}

.is-style-reylo-tile-blue {
  background: var(--blue);
}

.is-style-reylo-tile-yellow {
  background: var(--yellow);
  color: var(--ink);
}

[class*='is-style-reylo-tile'] :is(h1, h2, h3, h4, a) {
  color: inherit;
}

.is-style-reylo-paper-card {
  padding: 26px !important;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
}

.wp-block-separator.is-style-reylo-stripes {
  border: 0 !important;
  height: 22px !important;
  background: var(--stripes) !important;
  opacity: 1;
  width: 100%;
}

.wp-block-heading.is-style-reylo-display {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
}

.wp-block-heading.is-style-reylo-display::before {
  display: none;
}

.wp-block-button.is-style-reylo-ink .wp-block-button__link {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 800;
}

.wp-block-button.is-style-reylo-red .wp-block-button__link {
  background: var(--red);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 800;
}

.wp-block-quote.is-style-reylo-note {
  background: var(--surface);
  border: 2px solid var(--ink) !important;
  border-inline-start-width: 12px !important;
  border-inline-start-color: var(--red) !important;
}

.wp-block-list.is-style-reylo-stations {
  list-style: none;
  padding-inline-start: 0;
}

.wp-block-list.is-style-reylo-stations > li {
  position: relative;
  padding-inline-start: 34px;
  margin-bottom: 0.6em;
}

.wp-block-list.is-style-reylo-stations > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--paper);
}

.wp-block-list.is-style-reylo-stations > li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: 7px;
  top: calc(0.55em + 18px);
  bottom: -0.6em;
  width: 4px;
  background: var(--red);
}

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 1.2em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.2em;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.sticky .card__title::before {
  content: '★ ';
  color: var(--yellow);
}

.bypostauthor {
  display: block;
}

.site-footer .btn--light,
.site-footer .btn--light:hover {
  color: var(--ink);
}


/* ==========================================================================
   Station quick facts + downloadable timetables
   ========================================================================== */
.station-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 0 0 28px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--ink);
  overflow: hidden;
}

.station-facts__item {
  padding: 12px 16px;
  border-inline-start: 1.5px solid var(--rule);
}

.station-facts__item:first-child {
  border-inline-start: 0;
}

.station-facts dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.station-facts dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.station-facts__item.is-time {
  background: var(--ink);
  color: var(--paper);
}

.station-facts__item.is-time dt {
  color: var(--yellow);
}

.prose figure.reylo-timetable {
  margin: 1.6em 0;
}

.reylo-timetable img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--ink);
  background: var(--paper);
}

.reylo-timetable figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.reylo-timetable figcaption a[download] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 6px;
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.reylo-timetable figcaption a[download]::before {
  content: '⬇';
}

@media (max-width: 560px) {
  .station-facts {
    box-shadow: -4px 4px 0 var(--ink);
  }

  .station-facts__item {
    border-inline-start: 0;
    border-top: 1.5px solid var(--rule);
  }
}

/* ==========================================================================
   Metro news & line status (page-templates/template-news.php, inc/news.php)
   ========================================================================== */
.status-board {
  margin: 0 0 36px;
  padding: 22px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
}

.status-board h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.status-board__lines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-inline-start: 6px solid var(--lc, var(--ink));
  border-radius: var(--r-sm);
  background: var(--paper);
}

.status-line__name {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.status-line__state {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-ink);
}

.status-line.is-alert {
  background: #fdf1d6;
}

.status-line.is-alert .status-line__state {
  color: var(--red);
}

.status-line__news {
  font-size: 13px;
  color: var(--ink-2);
}

.status-board__note,
.news-sources {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.news-filter a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 4px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.news-item__kind {
  grid-row: span 2;
  align-self: start;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

.news-item.is-disruption .news-item__kind {
  background: var(--red);
  color: #fff;
}

.news-item.is-restored .news-item__kind {
  background: var(--green);
  color: #fff;
}

.news-item.is-schedule .news-item__kind {
  background: var(--yellow);
}

.news-item__title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
  text-decoration: none;
}

.news-item__title:hover {
  text-decoration: underline;
}

.news-item__meta {
  font-size: 13px;
  color: var(--muted);
}

.news-empty {
  color: var(--muted);
}

.line-alert {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-inline-start: 6px solid var(--red);
  border-radius: var(--r-sm);
  background: #fdf1d6;
  line-height: 1.8;
}

.line-alert small {
  color: var(--muted);
}

@media (max-width: 640px) {
  .status-board {
    padding: 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item__kind {
    grid-row: auto;
  }
}
