/* OPENYYC · Calgary Non-Profit Open Data Portal
   Bright civic reskin layered over CKAN 2.11 (Figma "Open YYC Design").
   White chrome · Civic Blue accent · Teal + Slate + Action Yellow.
   Archivo / IBM Plex Sans / JetBrains Mono. */

:root {
  /* Ink — warm near-black for text + footer */
  --ink: #26221d;
  --ink-2: #38322b;

  /* Surfaces */
  --page: #f7f7f7;     /* application background */
  --paper: #ffffff;    /* cards, navbar, inputs */
  --paper-2: #f0f0ec;  /* subtle fills, hovers, module headings */
  --paper-3: #d2d2cd;  /* muted fills / footer secondary text */

  /* Rules */
  --line: #cbcbcb;
  --line-strong: #b3b3ad;
  --rule: #dadada;

  /* Accent — Civic Blue. --red/--red-deep are kept as aliases so the
     existing accent rules across the stylesheets inherit blue with no
     per-line edits. Genuine errors use --danger, never the accent. */
  --accent: #0369c1;
  --accent-deep: #02559c;
  --red: var(--accent);
  --red-deep: var(--accent-deep);

  /* Secondary brand surfaces */
  --teal: #4db58b;
  --teal-deep: #3f9d78;
  --slate: #515a57;
  --slate-deep: #414945;
  --charcoal: #393e41;

  /* Action yellow — Search / Apply / Start a dataset */
  --yellow: #f0c808;
  --yellow-deep: #d9b507;
  --yellow-ink: #333333;

  /* Active navbar item */
  --nav-active: var(--yellow);
  --nav-active-ink: var(--yellow-ink);

  --danger: #C0392B;
  --danger-deep: #8E2018;

  --gold: #E4A11B;
  --sage: #6B7A4B;
  --sky: #2F4858;
  --muted: #6d6d6d;
  --green: #2f7d3a;

  /* Format-pill tints (light wash, dark text) */
  --pill-json: rgba(77, 181, 139, 0.22);
  --pill-csv:  rgba(155, 126, 222, 0.22);
  --pill-xls:  rgba(243, 182, 31, 0.25);
  --pill-api:  rgba(3, 105, 193, 0.18);
  --pill-pdf:  rgba(192, 57, 43, 0.15);

  /* Gentle geometry + soft neutral shadows */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(38, 34, 29, 0.06);
  --shadow: 0 1px 2px rgba(38, 34, 29, 0.05), 0 4px 14px rgba(38, 34, 29, 0.07);

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ─── globals ────────────────────────────────────────────────── */
html, body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
}
body {
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mono, code, kbd, pre, samp { font-family: var(--mono); }
.uppercase, .text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.muted, .text-muted { color: var(--muted) !important; }

/* ─── account masthead — folded into the single white bar ───── */
.account-masthead { display: none; }

/* ─── primary masthead / navbar (white) ─────────────────────── */
.masthead {
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.masthead .container {
  max-width: 1244px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
}
.masthead .navbar-brand,
.masthead .logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* The design's navbar wordmark is text-only — hide the square + sub-label. */
.masthead .navbar-brand .openyyc-mark,
.masthead .navbar-brand .openyyc-sub { display: none; }

/* Brand mark (used in the footer) */
.openyyc-mark {
  width: 18px;
  height: 18px;
  background: var(--sage);
  position: relative;
  display: inline-block;
  border-radius: 2px;
}
.openyyc-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--paper);
}
.openyyc-sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 4px;
}

.masthead .navigation { display: flex; margin-right: auto; }
.masthead .nav.nav-pills { display: flex; gap: 38px; align-items: center; }
.masthead .nav > li { position: relative; }
.masthead .nav > li > a,
.masthead .navigation a {
  color: #757575;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-decoration: none;
  padding: 18px 8px;
  background: transparent;
}
.masthead .nav > li > a:hover { background: transparent; color: var(--accent); }
.masthead .nav > li.active > a,
.masthead .nav > li.active > a:hover {
  background: var(--nav-active);
  color: var(--nav-active-ink);
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* Header actions — Sign in (outline blue) + Contribute (filled blue) */
.masthead .header-actions { display: flex; align-items: center; gap: 10px; }
.masthead .header-actions .btn { border-radius: 20px; box-shadow: none; }
.masthead .header-actions .btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.masthead .header-actions .btn-ghost:hover {
  background: rgba(3, 105, 193, 0.08);
  color: var(--accent-deep);
}

/* Navbar collapses on narrow screens: brand + actions on top, nav wraps below */
@media (max-width: 720px) {
  .masthead .container {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 0;
    align-items: center;
  }
  .masthead .header-actions { margin-left: auto; }
  .masthead .header-actions .btn-sm { padding: 6px 9px; font-size: 11px; }
  .masthead .navigation { order: 3; width: 100%; }
  .masthead .nav.nav-pills { flex-wrap: wrap; gap: 2px 4px; }
  .masthead .nav > li > a,
  .masthead .navigation a { padding: 6px 8px; font-size: 14px; }
  .masthead .nav > li.active > a::after { bottom: 2px; }
}

/* ─── buttons ────────────────────────────────────────────────── */
.btn,
button.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-shadow: none;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: background 120ms ease, box-shadow 120ms ease;
}
.btn:hover { background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary,
.btn.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red-deep);
}
.btn-primary:hover { background: var(--red-deep); color: var(--paper); }
.btn-default { background: var(--paper); color: var(--ink); }
.btn.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm, .btn.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg, .btn.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-ghost { background: transparent; }
/* Action yellow — the portal's call-to-action buttons */
.btn-cta, .btn.btn-cta {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--yellow-deep);
  font-weight: 600;
}
.btn-cta:hover, .btn.btn-cta:hover { background: var(--yellow-deep); color: var(--yellow-ink); }

/* ─── inputs / forms ─────────────────────────────────────────── */
.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.form-control:focus { border-color: var(--red); outline: none; box-shadow: none; }

/* CKAN's big search bar on the homepage */
.search-form .search-input,
.search-giant {
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-form .search-input input,
.search-giant input {
  border: 0;
  flex: 1;
  font-size: 16px;
  padding: 16px 18px;
  background: transparent;
}
.search-form .search-input button,
.search-giant button {
  border: 0;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 600;
}

/* ─── eyebrow / kicker ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--red);
}

/* ─── badges (format pills) ─────────────────────────────────── */
.label, .badge, .format-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* CKAN core main.css uses text-indent:-900em on .format-label to swap in
     a sprite icon and hide the label text; we show the text, so reset it. */
  text-indent: 0;
  min-width: 0;
  width: auto;
  height: auto;
  background-image: none;
}
/* Core sizes and scales .format-label for its icon sprite, per format;
   undo that so the pill text renders at full size. */
.format-label,
.format-label[data-format] {
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
}
/* Core gives each format badge a dark fill meant for white text. */
.badge[data-format] { background-color: var(--paper-2); }
/* Light-wash format pills with dark text (Figma "Open YYC Design") */
.format-label[data-format="csv"],
.format-label[data-format="tsv"]      { background: var(--pill-csv); color: var(--ink); }
.format-label[data-format="json"]     { background: var(--pill-json); color: var(--ink); }
.format-label[data-format="geojson"]  { background: var(--pill-json); color: var(--ink); }
.format-label[data-format="xls"],
.format-label[data-format="xlsx"]     { background: var(--pill-xls); color: var(--ink); }
.format-label[data-format="api"]      { background: var(--pill-api); color: var(--ink); }
.format-label[data-format="pdf"]      { background: var(--pill-pdf); color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
}
.chip.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── modules / sidebar boxes ───────────────────────────────── */
.module, .module-narrow {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.module-heading, .module h1, .module h2 {
  background: var(--paper-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  margin: 0;
}
.module-content { padding: 14px; }

/* ─── tables ─────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: transparent;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--paper-3);
}
.table th {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}
.table tbody tr:hover { background: var(--paper-2); }

/* ─── dataset list (CKAN's stock dataset listing) ───────────── */
.dataset-list { list-style: none; padding: 0; margin: 0; }
.dataset-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-3);
}
.dataset-item .dataset-heading,
.dataset-item h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.dataset-item .dataset-heading a { text-decoration: none; }
.dataset-item .dataset-content > p {
  color: var(--muted);
  max-width: 720px;
}
.dataset-item .dataset-resources { margin-top: 12px; }

/* ─── faceted filters (sidebar) ─────────────────────────────── */
.filters .module-heading { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.filters .nav-facet > li > a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.filters .nav-facet > li > a:hover { color: var(--red); }
.filters .nav-facet .count { color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* ─── footer ─────────────────────────────────────────────────── */
.site-footer,
.footer {
  background: var(--ink);
  color: var(--paper-3);
  padding: 36px 0 28px;
  font-size: 13px;
  border-top: 0;
}
.site-footer .container { max-width: 1400px; }
.site-footer h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--paper);
}
.site-footer a {
  color: var(--paper-3);
  text-decoration: none;
  display: block;
  padding: 3px 0;
}
.site-footer a:hover { color: var(--paper); }
.site-footer .openyyc-meta a { text-decoration: underline; }
.openyyc-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .openyyc-meta {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(245,239,227,0.15);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
}
@media (max-width: 860px) {
  .openyyc-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .openyyc-foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══ HOME (Figma "Open YYC Design") ══════════════════════════════ */
.oy-home { background: var(--page); }
.oy-home .oy-wrap,
.oy-searchband .oy-wrap { max-width: 1268px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.oy-hero { background: var(--page); padding: 34px 0; }
.oy-hero .oy-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; }
.oy-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #1f2a1a;
  margin: 0;
}
.oy-hero__lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.125;
  color: rgba(31, 42, 26, 0.75);
  margin: 0;
  max-width: 426px;
  padding-left: 30px;
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 720px) {
  .oy-hero__lede { padding-left: 0; border-left: 0; }
}

/* ── Blue search band ─────────────────────────────────────────── */
.oy-searchband { background: var(--accent); color: #fff; padding: 26px 0; }
.oy-searchband .oy-wrap {
  display: flex;
  gap: 24px 42px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.oy-searchband__group { display: flex; flex-direction: column; gap: 8px; }
.oy-searchband__group--search {
  flex: 1 1 413px;
  padding-right: 42px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
}
@media (max-width: 1240px) {
  .oy-searchband__group--search { padding-right: 0; border-right: 0; }
}
.oy-searchband__label {
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.01em;
}
.oy-searchband__row { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
input.oy-searchband__input {
  flex: 1 1 240px;
  border: 0;
  background: #fff url("/openyyc/icons/search.svg") no-repeat 12px center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.04em;
  height: 40px;
  padding: 0 14px 0 48px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  min-width: 0;
}
.oy-searchband__input::placeholder { color: #757575; font-style: italic; }
.oy-searchband__input:focus { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 1px; }
.oy-searchband__btn {
  height: 40px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
  border: 0;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.oy-searchband__btn:hover { background: var(--yellow-deep); }
.oy-searchband__filters { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.oy-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 0;
  color: #333;
  font-size: 15px;
  padding: 10px 34px 10px 12px;
  border-radius: var(--radius-sm);
  width: 139px;
  min-width: 139px;
  text-overflow: ellipsis;
  height: 40px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.oy-select:focus { outline: 2px solid rgba(255,255,255,0.6); }
.oy-searchband__cta { display: flex; gap: 21px; margin-left: 5px; }
.oy-searchband__apply {
  height: 40px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
  border: 0;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.oy-searchband__apply:hover { background: var(--yellow-deep); }
.oy-searchband__reset {
  height: 40px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
  background: var(--page);
  color: #333;
  border: 1px solid var(--rule);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.oy-searchband__reset:hover { background: #fff; color: #333; }

/* ── Section scaffolding ──────────────────────────────────────── */
.oy-section { padding: 40px 0 0; }
.oy-section:last-child { padding-bottom: 56px; }
.oy-section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

/* ── Top datasets table ───────────────────────────────────────── */
.oy-table { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.oy-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.oy-table thead th {
  background: var(--slate);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
  padding: 11px 24px;
  border: 0;
}
.oy-table tbody td {
  background: #fff;
  border: 0.5px solid var(--line);
  padding: 10px 24px;
  color: var(--ink);
  white-space: nowrap;
}
.oy-table tbody tr:hover td { background: #fbfbfa; }
.oy-table__name a { font-weight: 500; text-decoration: none; color: var(--ink); }
.oy-table__name a:hover { color: var(--accent); }
.oy-table__org, .oy-table__updated, .oy-table__downloads { color: var(--ink); }
.oy-table__formats { display: flex; gap: 6px; align-items: center; }
.oy-table__view { color: var(--accent); text-decoration: none; }
.oy-table__view:hover { text-decoration: underline; }
.oy-table__empty td { text-align: center; color: var(--muted); font-family: var(--mono); padding: 28px; }

/* ── Latest datasets cards ────────────────────────────────────── */
.oy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.oy-hcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.oy-hcard__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 46px 8px 0;
  max-width: 340px;
}
.oy-hcard__org { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.oy-hcard__open {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.oy-hcard__open:hover { background: var(--accent); color: #fff; }
/* Decorative bar motif — a visual nod to the dataset, not real data */
.oy-hcard__bars { margin-top: auto; display: flex; align-items: flex-end; gap: 14px; height: 130px; }
.oy-hcard__bars .bar {
  flex: 1;
  background: var(--slate);
  border-radius: 2px 2px 0 0;
  min-width: 22px;
}
.oy-hcard:nth-child(odd) .bar { background: linear-gradient(180deg, #fb6dd4, #c04ad2); }
.oy-hcard:nth-child(even) .bar { background: linear-gradient(180deg, #39a4af, #228893); }

/* ── Two CTA panels ───────────────────────────────────────────── */
.oy-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.oy-cta { padding: 64px 24px 32px; color: #fff; position: relative; min-width: 0; }
.oy-cta--publish { background: var(--accent); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.oy-cta--build { background: var(--charcoal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.oy-cta__eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 40px;
  color: #fff;
}
.oy-cta__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  max-width: 350px;
  margin: 0 0 24px;
  color: #fff;
}
.oy-cta__body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.92);
}
.oy-cta--build .oy-cta__body { color: var(--paper-3); }
.oy-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.oy-cta__btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 0;
}
.oy-cta__btn--yellow { background: var(--yellow); color: var(--yellow-ink); }
.oy-cta__btn--yellow:hover { background: var(--yellow-deep); }
.oy-cta__btn--white { background: #fff; color: #333; }
.oy-cta__btn--white:hover { background: var(--paper-2); }
.oy-cta__code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper);
  border: 1px solid rgba(250,250,246,0.18);
  color: #565656;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 28px;
  overflow-x: auto;
}
.oy-cta__code .verb { color: #8a5a00; }

@media (max-width: 860px) {
  .oy-cards, .oy-ctas { grid-template-columns: 1fr; }
  .oy-cta--publish, .oy-cta--build { border-radius: var(--radius-sm); }
  .oy-table { overflow-x: auto; }
  .oy-searchband .oy-wrap { flex-direction: column; align-items: stretch; }
  .oy-searchband__group--search { flex: 0 0 auto; }
}

/* striped placeholder for missing imagery */
.ph-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    var(--paper-2) 0 12px,
    var(--paper-3) 12px 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px dashed var(--ink);
}

/* CKAN page wrapper tweaks */
.wrapper { background: var(--page); }
.toolbar .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-3);
}
.toolbar .breadcrumb a { color: var(--muted); text-decoration: none; }
.toolbar .breadcrumb .active { color: var(--ink); }

/* alerts */
.alert {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}
.alert-success { border-color: var(--green); background: #e6f1e8; }
.alert-danger, .alert-error { border-color: var(--danger); background: #f6e4e1; color: var(--ink); }

/* small utility */
.rule-top    { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
