/* =========================================================================
   Fokus Surabaya — Global Stylesheet
   Editorial sports-news aesthetic. Mobile-first, fully responsive (H5).
   ========================================================================= */

:root {
  --ink: #0b1622;
  --ink-soft: #2c3a4a;
  --muted: #6b7a8d;
  --line: #e4e8ee;
  --line-strong: #cfd6e0;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-deep: #0b1622;
  --accent: #0f4c81;
  --accent-hover: #0a3a63;
  --hot: #d2202f;
  --gold: #c99a2e;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 34, .06), 0 2px 8px rgba(11, 22, 34, .05);
  --shadow-md: 0 4px 14px rgba(11, 22, 34, .09);
  --shadow-lg: 0 18px 40px rgba(11, 22, 34, .16);
  --maxw: 1240px;
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  background: var(--bg-deep);
  color: #cdd7e3;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-date { text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: #93a3b5; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: #cdd7e3; transition: color .18s; }
.topbar-links a:hover { color: #fff; }
.topbar-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 0 0 rgba(210, 32, 47, .7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210,32,47,.65); }
  70% { box-shadow: 0 0 0 8px rgba(210,32,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(210,32,47,0); }
}

/* ---------------------------------------------------------------- header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(11,22,34,.03);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #12335a);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.brand-sub {
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 3px;
}

.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 10px 12px; border-radius: var(--radius);
  transition: color .18s, background .18s; white-space: nowrap;
}
.mainnav a:hover { color: var(--accent); background: var(--bg-soft); }
.mainnav a.is-active { color: var(--accent); }
.mainnav a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--accent); border-radius: 2px;
}

.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  cursor: pointer; color: var(--ink-soft); transition: .18s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }
.burger { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.burger::before { top: -6px; } .burger::after { top: 6px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
}
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(11,22,34,.5);
  opacity: 0; transition: opacity .25s;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 300px; max-width: 84%;
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); padding: 20px; overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-title { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .05em;
}
.drawer-nav a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- ticker */
.ticker {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 13px; overflow: hidden;
}
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker-label {
  flex-shrink: 0; background: var(--hot); color: #fff; font-weight: 700;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.ticker-track { display: flex; gap: 34px; white-space: nowrap; animation: tickerMove 38s linear infinite; }
.ticker-track a { color: var(--ink-soft); font-weight: 500; }
.ticker-track a:hover { color: var(--accent); }
.ticker-track a::before { content: "•"; color: var(--accent); margin-right: 10px; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- search */
.searchbar { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.searchbar.is-open { display: block; }
.searchbar .wrap { padding-top: 16px; padding-bottom: 16px; }
.search-field {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; font-family: var(--font-body); color: var(--ink);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.search-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,76,129,.12); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 28px 0 8px; }
.hero-grid {
  display: grid; grid-template-columns: 1.62fr 1fr; gap: 24px;
}
.hero-lead {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 440px; display: flex; align-items: flex-end;
  background: #0b1622; box-shadow: var(--shadow-md);
}
.hero-lead img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,0,.2,1);
}
.hero-lead:hover img { transform: scale(1.045); }
.hero-lead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,34,0) 30%, rgba(11,22,34,.55) 62%, rgba(11,22,34,.94) 100%);
}
.hero-lead-body { position: relative; z-index: 2; padding: 30px; color: #fff; }
.hero-lead h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin: 10px 0 12px; }
.hero-lead p { color: #d8e0ea; font-size: 15px; max-width: 620px; margin: 0 0 16px; }
.hero-lead .meta { color: #a9b6c6; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.hero-mini {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 200px; display: flex; align-items: flex-end; background: #0b1622;
  box-shadow: var(--shadow-sm);
}
.hero-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.hero-mini:hover img { transform: scale(1.05); }
.hero-mini::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,34,0) 35%, rgba(11,22,34,.9) 100%);
}
.hero-mini-body { position: relative; z-index: 2; padding: 20px; color: #fff; }
.hero-mini h3 { color: #fff; font-size: 21px; margin-top: 8px; }

.meta {
  font-size: 12px; letter-spacing: .05em; color: var(--muted);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500;
}
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.kicker {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(15,76,129,.08); padding: 4px 9px; border-radius: 3px;
}
.kicker.on-dark { color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.kicker.hot { color: #fff; background: var(--hot); }

/* ---------------------------------------------------------------- section head */
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-size: 28px; text-transform: uppercase; letter-spacing: .04em;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ""; width: 5px; height: 26px; background: var(--accent); border-radius: 2px;
}
.section-sub { color: var(--muted); font-size: 14px; }
.link-more {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- filters */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px;
}
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: 9px 15px;
  border-radius: 40px; cursor: pointer; transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- cards */
.layout-main { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 40px; align-items: start; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,0,.2,1); }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,22,34,.86); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card .meta { margin-top: auto; }

/* ---------------------------------------------------------------- sidebar */
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 30px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.panel-title {
  font-family: var(--font-display); font-size: 19px; text-transform: uppercase;
  letter-spacing: .05em; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 9px;
}
.panel-title .num { color: var(--accent); }

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-num {
  font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--line-strong);
  font-weight: 700; min-width: 34px;
}
.rank-item h4 { font-size: 15.5px; line-height: 1.32; font-family: var(--font-body); font-weight: 700; }
.rank-item h4 a:hover { color: var(--accent); }
.rank-item .meta { font-size: 11px; margin-top: 5px; }

.newsletter {
  background: linear-gradient(150deg, #0b1622, #123a5f); color: #fff;
  border: 0; padding: 26px 22px;
}
.newsletter .panel-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); }
.newsletter p { color: #c3cfdd; font-size: 13.5px; margin: 0 0 16px; }
.newsletter input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-body); font-size: 14px; margin-bottom: 10px;
  outline: none;
}
.newsletter input::placeholder { color: #9fb0c4; }
.newsletter input:focus { border-color: #fff; }
.newsletter .hint { font-size: 11.5px; color: #93a6bd; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; padding: 13px 20px;
  border-radius: var(--radius); border: 0; cursor: pointer; transition: .18s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 42px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: .18s;
  font-family: var(--font-body);
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--accent); color: var(--accent); }
.page-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-info { font-size: 13px; color: var(--muted); margin-left: 6px; }

/* ---------------------------------------------------------------- article */
.breadcrumb {
  font-size: 12.5px; color: var(--muted); padding: 20px 0 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

.article-header { padding: 22px 0 0; max-width: 860px; }
.article-header h1 { font-size: clamp(30px, 4.6vw, 54px); margin: 14px 0 18px; }
.article-standfirst { font-size: 18px; color: var(--ink-soft); line-height: 1.62; margin: 0 0 22px; }
.article-byline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline-author { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 17px; font-weight: 700;
  letter-spacing: .03em;
}
.byline-name { font-weight: 700; font-size: 14px; }
.byline-role { font-size: 12px; color: var(--muted); }

.article-hero {
  margin: 26px 0 30px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--bg-soft);
}
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption { font-size: 12.5px; color: var(--muted); padding: 12px 4px 0; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 52px; align-items: start; }

.article-body { font-size: 18px; line-height: 1.78; color: var(--ink-soft); max-width: 760px; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 62px; line-height: .86;
  padding: 6px 12px 0 0; color: var(--accent); font-weight: 700;
}
.article-body p { margin: 0 0 24px; }
.article-body h2 {
  font-size: 30px; color: var(--ink); margin: 40px 0 16px; padding-top: 8px;
  text-transform: none; letter-spacing: 0;
}
.article-body h2::before {
  content: ""; display: block; width: 46px; height: 3px; background: var(--accent); margin-bottom: 14px;
}
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 32px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--accent);
  font-family: var(--font-serif); font-size: 22px; line-height: 1.5; color: var(--ink); font-style: italic;
}
.article-body ul { margin: 0 0 26px; padding: 0; list-style: none; }
.article-body ul li {
  position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 17px;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 6px; top: 12px; width: 8px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 40px;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.author-box {
  display: flex; gap: 18px; align-items: flex-start; margin: 36px 0 0; padding: 24px;
  background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.author-box .avatar { width: 58px; height: 58px; font-size: 22px; flex-shrink: 0; }
.author-box h4 { font-size: 17px; margin-bottom: 4px; }
.author-box .role { font-size: 12.5px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.author-box p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.share-row { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; flex-wrap: wrap; }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; background: #fff; cursor: pointer; color: var(--ink-soft); transition: .18s;
}
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------------------------------------------------------------- static pages */
.page-hero {
  background: linear-gradient(150deg, #0b1622, #143a5f);
  color: #fff; padding: 54px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p { color: #c3cfdd; font-size: 16px; max-width: 680px; margin: 0; }
.page-hero .breadcrumb { color: #93a6bd; padding-top: 0; margin-bottom: 14px; }
.page-hero .breadcrumb a:hover { color: #fff; }

.page-body { padding: 48px 0 64px; }
.prose { max-width: 820px; font-size: 17px; line-height: 1.78; color: var(--ink-soft); }
.prose h2 { font-size: 27px; margin: 40px 0 14px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose ul li { margin-bottom: 9px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose .updated { font-size: 13.5px; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 30px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.contact-card h3 { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }
.contact-card strong { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; color: var(--ink); outline: none; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,76,129,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.form-status.is-ok { display: block; background: #e8f5ee; color: #1c6b43; border: 1px solid #bfe3cf; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--bg-deep); color: #9fb0c4; margin-top: 20px; }
.footer-top { padding: 54px 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #7f92a8; }
.footer-about p { font-size: 14px; line-height: 1.7; margin: 16px 0 0; max-width: 320px; }
.footer h4 {
  color: #fff; font-family: var(--font-display); font-size: 16px; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: #9fb0c4; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #cdd7e3; transition: .18s;
}
.footer-social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7f92a8;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------------- back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; transform: translateY(10px); z-index: 70;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ---------------------------------------------------------------- states */
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #e2e7ee 37%, #eef1f5 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .layout-main { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
  .article-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mainnav { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { min-height: 340px; }
  .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .topbar-links .topbar-extra { display: none; }
  .brand-name { font-size: 22px; }
  .hero-side { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
  .section-title { font-size: 22px; }
  .hero-lead-body { padding: 20px; }
  .article-body { font-size: 17px; }
  .article-body > p:first-of-type::first-letter { font-size: 50px; }
  .article-body h2 { font-size: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-byline { gap: 12px; }
}
