/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 */

@import "actiontext.css";

:root {
  --page-bg: #f7f1e6;
  --page-bg-soft: #fbf7ef;
  --surface: #0b1f3a;
  --surface-strong: #102644;
  --surface-soft: #193456;
  --card: rgba(13, 28, 50, 0.94);
  --card-strong: rgba(10, 22, 40, 0.96);
  --paper: #fffdf8;
  --paper-soft: #f0e7d7;
  --ink: #eef4ff;
  --ink-dark: #0f2340;
  --muted: #93a9c7;
  --muted-strong: #d5e2f5;
  --muted-dark: #596b82;
  --accent: #1b7b8a;
  --accent-deep: #115867;
  --accent-warm: #b08d57;
  --accent-warm-deep: #8d6e43;
  --line: rgba(148, 168, 196, 0.18);
  --line-strong: rgba(148, 168, 196, 0.32);
  --line-light: rgba(15, 35, 64, 0.1);
  --shadow: 0 26px 60px rgba(12, 24, 43, 0.22);
  --shadow-soft: 0 18px 40px rgba(12, 24, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(176, 141, 87, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(27, 123, 138, 0.1), transparent 20%),
    linear-gradient(180deg, #f8f4ec 0%, #f6efdf 38%, #efe3ce 100%);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(10, 23, 43, 0.94));
  box-shadow: 0 12px 40px rgba(8, 19, 36, 0.18);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 18px;
  z-index: 30;
}

.site-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.site-nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 6px;
}

.brand-block {
  max-width: 460px;
}

.site-brand {
  margin: 0;
}

.site-brand a {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.94;
  font-weight: 700;
  text-decoration: none;
  color: white;
  letter-spacing: -0.04em;
}

.brand-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-warm);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav__link,
.site-nav__button,
.admin-primary-link,
.admin-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover,
.site-nav__button:hover,
.post-card__title:hover,
.admin-primary-link:hover,
.admin-card__link:hover,
.spotlight-card__link:hover,
.inline-link:hover,
.tool-showcase-card__title:hover,
.mini-story-card__title:hover,
.article-rail__title:hover,
.site-footer__links a:hover {
  transform: translateY(-1px);
}

.site-nav__link--strong,
.site-nav__button,
.admin-primary-link,
.admin-card__link {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-deep));
  color: white;
  border-color: transparent;
}

.site-nav__button {
  cursor: pointer;
}

.site-nav__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.flash-stack {
  margin: 18px 0;
}

.flash {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 31, 58, 0.92);
}

.flash--alert {
  border-color: rgba(176, 141, 87, 0.45);
}

.page-content {
  margin-top: 28px;
}

.hero,
.story,
.empty-state,
.post-card,
.tool-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13, 28, 50, 0.95), rgba(10, 20, 38, 0.98));
  box-shadow: var(--shadow);
}

.hero {
  padding: 38px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero h1,
.story__title,
.home-hero__copy h1,
.landing-section h2,
.section-heading h2,
.show-card h3,
.spotlight-card h2,
.spotlight-card h3,
.tool-showcase-card h3,
.mini-story-card h3,
.article-rail__title,
.stat-card strong {
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1,
.story__title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__summary,
.story__summary,
.home-hero__summary,
.section-heading__summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.hero__aside--dark {
  background: linear-gradient(160deg, rgba(27, 54, 95, 0.84), rgba(9, 18, 34, 0.96));
}

.hero__stat {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.hero__stat strong {
  display: block;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.home-hero {
  position: relative;
  margin-bottom: 30px;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 15%, rgba(176, 141, 87, 0.18), transparent 24%),
    radial-gradient(circle at 15% 88%, rgba(27, 123, 138, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(10, 24, 44, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.home-hero__copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.8rem, 5.2vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-hero__summary {
  color: rgba(238, 244, 255, 0.76);
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 34px;
}

.home-hero__button {
  padding: 13px 22px;
}

.home-hero__button--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.22);
}

.platform-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.platform-row__label {
  color: rgba(238, 244, 255, 0.55);
  font-size: 0.82rem;
  margin-right: 4px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.76rem;
}

.home-hero__spotlight {
  display: grid;
  gap: 16px;
}

.spotlight-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.spotlight-card--tool {
  background: linear-gradient(180deg, rgba(176, 141, 87, 0.14), rgba(255, 255, 255, 0.04));
}

.spotlight-card__eyebrow,
.tool-showcase-card__eyebrow,
.show-card__cadence {
  margin: 0 0 10px;
  color: var(--accent-warm);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotlight-card h2,
.spotlight-card h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 1.8rem;
  line-height: 1.1;
}

.spotlight-card p {
  color: rgba(238, 244, 255, 0.72);
  line-height: 1.65;
}

.spotlight-card__link,
.inline-link {
  color: var(--accent-warm);
  font-weight: 700;
  text-decoration: none;
}

.spotlight-card__media .story-thumb {
  margin: 0 0 14px;
}

.spotlight-card__media .story-thumb__image,
.spotlight-card__media .story-thumb--placeholder {
  border-radius: 18px;
}

.spotlight-card__title {
  text-decoration: none;
}

.spotlight-card__meta {
  margin: 0;
  font-size: 0.95rem;
}

.landing-section {
  margin-bottom: 28px;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(10, 20, 38, 0.98));
  box-shadow: var(--shadow);
}

.landing-section--light {
  color: var(--ink-dark);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 239, 223, 0.98));
  border-color: var(--line-light);
  box-shadow: var(--shadow-soft);
}

.landing-section--light .eyebrow,
.landing-section--light .inline-link,
.landing-section--light .tool-showcase-card__eyebrow,
.landing-section--light .show-card__cadence {
  color: var(--accent-warm);
}

.landing-section--light .section-heading__summary,
.landing-section--light .show-card__body p,
.landing-section--light .article-rail__date,
.landing-section--light .tool-showcase-card__summary,
.landing-section--light .tool-showcase-card__detail,
.landing-section--light .mini-story-card__body,
.landing-section--light .stat-card span {
  color: var(--muted-dark);
}

.landing-section--light h2,
.landing-section--light h3,
.landing-section--light .article-rail__title,
.landing-section--light .show-card__host {
  color: var(--ink-dark);
}

.landing-section--enterprise {
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(19, 39, 70, 0.98));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.post-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.tool-showcase-grid,
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.post-card,
.tool-card,
.empty-state,
.story {
  padding: 24px;
}

.post-card,
.tool-card {
  min-height: 320px;
  overflow: hidden;
}

.tool-card {
  background: linear-gradient(180deg, rgba(17, 35, 67, 0.95), rgba(12, 24, 44, 0.96));
}

.post-card__meta,
.story__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card__title {
  display: inline-block;
  margin: 12px 0;
  color: white;
  font-size: 1.65rem;
  line-height: 1.08;
  text-decoration: none;
}

.post-card__summary,
.post-card__video,
.tool-card__detail,
.story__body {
  color: var(--muted-strong);
  line-height: 1.75;
}

.post-card__video {
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-card__status {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-showcase-card,
.show-card,
.mini-story-card,
.article-rail__item,
.stat-card {
  border-radius: 24px;
}

.tool-showcase-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.tool-showcase-card__title {
  display: inline-block;
  margin: 0 0 10px;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1.12;
}

.tool-showcase-card__summary,
.tool-showcase-card__detail {
  line-height: 1.65;
}

.tool-showcase-card__detail {
  color: var(--muted);
  font-size: 0.92rem;
}

.show-card {
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: white;
}

.show-card__banner {
  padding: 24px;
}

.show-card__banner h3 {
  margin: 0;
  color: white;
  font-size: 1.55rem;
  line-height: 1.1;
}

.show-card__body {
  padding: 24px;
}

.show-card__host {
  margin-top: 0;
  color: var(--accent-warm-deep);
  font-weight: 700;
}

.show-card--teal .show-card__banner {
  background: linear-gradient(135deg, #1b7b8a, #114f5b);
}

.show-card--gold .show-card__banner {
  background: linear-gradient(135deg, #b08d57, #7e6135);
}

.show-card--navy .show-card__banner {
  background: linear-gradient(135deg, #0b1f3a, #1b365f);
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-story-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.mini-story-card__thumb,
.mini-story-card .story-thumb {
  margin: 0;
}

.mini-story-card__thumb .story-thumb__image,
.mini-story-card__thumb .story-thumb--placeholder {
  border-radius: 24px 24px 0 0;
}

.mini-story-card__body {
  padding: 18px;
}

.mini-story-card__title {
  display: inline-block;
  margin-top: 8px;
  color: white;
  font-size: 1.2rem;
  line-height: 1.25;
  text-decoration: none;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-rail__item {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.article-rail__topline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.article-rail__topline .chip-row {
  margin: 0;
}

.article-rail__date {
  font-size: 0.82rem;
}

.article-rail__title {
  display: inline-block;
  color: white;
  font-size: 1.12rem;
  text-decoration: none;
  line-height: 1.35;
}

.enterprise-band {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
}

.enterprise-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--ink-dark);
  font-size: 2.3rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

.story-thumb {
  margin: -24px -24px 20px;
}

.story-thumb__link {
  display: block;
  text-decoration: none;
}

.story-thumb__image,
.story-thumb--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px 30px 0 0;
}

.story-thumb__image {
  object-fit: cover;
  background: #17304f;
}

.story-thumb--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(27, 123, 138, 0.95), rgba(8, 19, 36, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: white;
}

.story-thumb__badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.story-thumb__title {
  font-size: 1.2rem;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-thumb__meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(27, 123, 138, 0.12);
  border: 1px solid rgba(27, 123, 138, 0.22);
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.landing-section--light .chip {
  color: var(--ink-dark);
  background: rgba(176, 141, 87, 0.12);
  border-color: rgba(176, 141, 87, 0.2);
}

.story {
  padding: 30px;
}

.story__header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.story__header--stacked {
  grid-template-columns: 1fr;
}

.story__copy {
  min-width: 0;
}

.story__media .story-thumb {
  margin: 0;
}

.story__player {
  margin: 28px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.story__video {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-warm);
  background: rgba(176, 141, 87, 0.12);
  color: var(--muted-strong);
}

.story__body--longform {
  max-width: 820px;
}

.story__body p,
.story__body li {
  color: var(--muted-strong);
}

.story__body h2,
.story__body h3,
.story__body h4 {
  color: white;
  line-height: 1.12;
  margin-top: 1.7em;
}

.tool-story {
  background: linear-gradient(180deg, rgba(17, 35, 67, 0.96), rgba(10, 20, 39, 0.98));
}

.tool-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.tool-meta__card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-meta__card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted-strong);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 24px 28px 12px;
  border-top: 1px solid rgba(11, 31, 58, 0.12);
}

.site-footer__brand {
  max-width: 620px;
  margin: 0;
  color: var(--muted-dark);
}

.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--ink-dark);
  text-decoration: none;
}

.flowplayer-embed script {
  width: 100%;
}

.admin-hero,
.admin-card,
.admin-listing-header,
.admin-filter-bar,
.editor-shell,
.admin-form-errors {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.94), rgba(9, 18, 34, 0.96));
  box-shadow: var(--shadow);
}

.admin-hero,
.admin-listing-header,
.admin-filter-bar,
.admin-form-errors {
  padding: 24px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.admin-card {
  padding: 22px;
}

.admin-card--article {
  background: linear-gradient(180deg, rgba(17, 35, 67, 0.95), rgba(11, 23, 42, 0.95));
}

.admin-card--video {
  background: linear-gradient(180deg, rgba(11, 47, 79, 0.95), rgba(9, 23, 42, 0.95));
}

.admin-card--ops {
  background: linear-gradient(180deg, rgba(34, 29, 74, 0.94), rgba(10, 21, 40, 0.95));
}

.admin-card--taxonomy {
  background: linear-gradient(180deg, rgba(15, 62, 62, 0.94), rgba(9, 23, 42, 0.95));
}

.admin-card--expert {
  background: linear-gradient(180deg, rgba(49, 58, 109, 0.94), rgba(11, 23, 42, 0.95));
}

.admin-meta {
  color: var(--muted);
}

.admin-listing-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-listing-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-listing-header__actions .button_to {
  margin: 0;
}

.admin-listing-header__actions .button_to button {
  font: inherit;
  cursor: pointer;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-filter-bar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-table-shell {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.94), rgba(9, 18, 34, 0.96));
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
}

.admin-table a {
  color: white;
  text-decoration: none;
}

.admin-table a:hover {
  color: var(--accent-warm);
}

.admin-table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table tbody td {
  color: var(--muted-strong);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.editor-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.editor-sidebar {
  padding-right: 8px;
}

.editor-sidebar__field,
.editor-main__field {
  margin-bottom: 16px;
}

.editor-sidebar__label {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.editor-shell h2,
.admin-hero h1 {
  margin-top: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
}

.editor-shell p,
.editor-shell li,
.editor-shell label,
.admin-hero p,
.admin-page-actions {
  color: var(--muted-strong);
}

.editor-shell label {
  font-size: 0.92rem;
  font-weight: 700;
}

.editor-copy {
  line-height: 1.75;
}

.editor-main__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.taxonomy-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(218, 174, 92, 0.14);
  color: #f7e3b4;
  font-size: 0.86rem;
  line-height: 1.2;
}

.taxonomy-chip--expert {
  background: rgba(112, 173, 255, 0.14);
  color: #d8e8ff;
}

.taxonomy-chip--link {
  text-decoration: none;
}

.taxonomy-chip--link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
}

.taxonomy-chip--empty {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.admin-page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-page-actions .button_to {
  margin: 0;
}

.admin-page-actions .button_to button {
  font: inherit;
  cursor: pointer;
}

.editor-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted-strong);
}

input,
textarea,
select {
  width: 100%;
  max-width: 640px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #162236;
}

trix-editor {
  min-height: 260px;
  max-width: 760px;
  background: white;
}

@media (max-width: 900px) {
  .hero__content,
  .story__header,
  .home-hero__grid,
  .content-split,
  .about-grid,
  .enterprise-band {
    grid-template-columns: 1fr;
  }

  .tool-showcase-grid,
  .show-grid,
  .mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .site-header {
    padding: 20px;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav-wrap {
    display: none;
  }

  .site-nav-wrap.site-nav--open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-listing-header,
  .editor-shell {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero,
  .home-hero,
  .landing-section,
  .story,
  .post-card,
  .tool-card {
    padding: 20px;
  }

  .story-thumb {
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
  }

  .tool-showcase-grid,
  .show-grid,
  .mini-card-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__actions,
  .enterprise-band__actions {
    width: 100%;
  }
}

/* =====================
   Site Search (nav)
   ===================== */

.site-search {
  margin-top: 0;
}

.site-search__input {
  width: 100%;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 0.88rem;
}

.site-search__input::placeholder {
  color: var(--muted);
}

.site-search__input:focus {
  outline: none;
  border-color: var(--accent-warm);
  background: rgba(255, 255, 255, 0.1);
}

/* =====================
   Search Hero
   ===================== */

.search-hero {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 32px;
  margin-bottom: 32px;
}

.search-hero__form {
  max-width: 860px;
  margin: 0 auto;
}

.search-hero__input-row {
  display: flex;
  gap: 10px;
}

.search-hero__heading {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 0 0 20px;
  font-weight: normal;
}

.search-hero__input {
  flex: 1;
  width: 0; /* override global input max-width by letting flex control sizing */
  max-width: 100%;
  padding: 16px 22px;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.search-hero__input::placeholder {
  color: var(--muted);
}

.search-hero__input:focus {
  outline: none;
  border-color: var(--accent-warm);
  background: rgba(255, 255, 255, 0.1);
}

.search-hero__submit {
  flex-shrink: 0;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-deep));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-hero__submit:hover {
  opacity: 0.9;
}

/* =====================
   Search Results
   ===================== */

.search-results {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--ink-dark);
}

.search-results .chip {
  color: var(--ink-dark);
  background: rgba(176, 141, 87, 0.12);
  border-color: rgba(176, 141, 87, 0.2);
}

.search-results__hint {
  color: var(--muted-dark);
  font-size: 1rem;
}

.search-results__summary {
  color: var(--ink-dark);
  margin-bottom: 32px;
}

.search-results__group {
  margin-bottom: 48px;
}

.search-results__group-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--paper-soft);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.search-results__group-header h2 {
  margin: 0;
  color: var(--ink-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.search-results__group-count {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
}

.search-result-card .story-thumb {
  margin: 0;
}

.search-result-card__body .eyebrow {
  color: var(--accent-warm-deep);
}

.search-result-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-dark);
  text-decoration: none;
  margin-top: 4px;
}

.search-result-card__title:hover {
  color: var(--accent-warm-deep);
}

.search-result-card__summary {
  color: var(--muted-dark);
  font-size: 0.9rem;
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .search-result-card {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Auth pages
   ===================== */

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-card__heading {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin: 6px 0 28px;
}

.auth-form__field {
  margin-bottom: 18px;
}

.auth-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-strong);
  margin-bottom: 6px;
}

.auth-form__input {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--ink);
  font-size: 1rem;
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--accent-warm);
}

.auth-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form__check input[type="checkbox"] {
  width: auto;
  max-width: none;
}

.auth-form__submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-deep));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.auth-form__submit:hover {
  opacity: 0.9;
}

.auth-card__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card__links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-card__links a:hover {
  color: var(--accent-warm);
}

.auth-form__oauth {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted-strong);
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.auth-form__oauth:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-form__hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0 6px;
}

.auth-card__danger {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-form__danger-btn {
  background: rgba(180, 40, 40, 0.18);
  border: 1px solid rgba(220, 60, 60, 0.3);
  border-radius: 8px;
  color: #f4a4a4;
  padding: 9px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 6px;
}

.auth-form__danger-btn:hover {
  background: rgba(180, 40, 40, 0.3);
}

#error_explanation {
  background: rgba(180, 40, 40, 0.14);
  border: 1px solid rgba(220, 60, 60, 0.28);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #f4a4a4;
  font-size: 0.9rem;
}

#error_explanation h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #f4a4a4;
}

#error_explanation ul {
  margin: 0;
  padding-left: 18px;
}

.sort-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-link:hover {
  color: var(--muted-strong);
}

.sort-link--active {
  color: var(--accent-warm);
}

.admin-table__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-table__actions .button_to {
  margin: 0;
}

.admin-table__delete-btn {
  background: none;
  border: none;
  color: #f4a4a4;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.admin-table__delete-btn:hover {
  color: #ff6b6b;
}

.admin-table__combine-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.admin-table__combine-btn:hover {
  color: var(--muted-strong);
}

.combine-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  color: var(--ink);
  padding: 0;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.combine-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.combine-dialog__inner {
  padding: 32px;
}

.combine-dialog__heading {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.combine-dialog__desc {
  color: var(--muted-strong);
  margin-bottom: 20px;
}

.combine-dialog__select {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.combine-dialog__warning {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 12px 0 20px;
}

.combine-dialog__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.combine-dialog__submit {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-deep));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.combine-dialog__cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}

.combine-dialog__cancel:hover {
  color: var(--muted-strong);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-stat strong {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.admin-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================
   Skeleton Loaders
   ===================== */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-block,
.skeleton-line {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    rgba(255, 255, 255, 0.07) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-block--thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 14px;
}

.skeleton-line {
  height: 11px;
  margin-bottom: 10px;
}

.skeleton-line--short  { width: 35%; }
.skeleton-line--med    { width: 55%; height: 9px; }
.skeleton-line--title  { width: 90%; height: 18px; margin-bottom: 12px; }
.skeleton-line--long   { width: 75%; }

/* =====================
   Investor Profile / Type Cards
   ===================== */

.auth-card--wide {
  max-width: 680px;
}

.auth-card__subheading {
  color: var(--muted);
  margin: -8px 0 24px;
  font-size: 0.98rem;
}

.profile-section {
  margin-bottom: 28px;
}

.profile-section__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
  font-weight: 700;
  margin: 0 0 12px;
}

.type-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-card-grid--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.type-card {
  position: relative;
  display: flex;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.type-card:has(.type-card__input:checked) {
  border-color: var(--accent-warm);
  background: rgba(249, 168, 37, 0.08);
}

.type-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.type-card__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-card__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-card__title {
  font-weight: 600;
  font-size: 0.98rem;
  color: white;
}

.type-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.profile-skip {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* ── Field hint ───────────────────────────────────── */
.field-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(249, 168, 37, 0.07);
  border: 1px solid rgba(249, 168, 37, 0.2);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.field-hint__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent-warm);
}

/* ── Form errors ──────────────────────────────────── */
.form-errors {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.form-errors__heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fca5a5;
  margin: 0 0 8px;
}

.form-errors__list {
  margin: 0;
  padding-left: 18px;
  color: #fca5a5;
  font-size: 0.88rem;
}

.form-errors__list li + li {
  margin-top: 4px;
}

/* ── Profile page ─────────────────────────────────── */
.profile-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

.profile-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.profile-page__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--ink-dark);
  margin: 4px 0 6px;
}

.profile-page__email {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

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

.profile-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
}

.profile-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
  font-weight: 700;
  margin: 0 0 8px;
}

.profile-card__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.profile-card__hint {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.profile-card__empty {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-style: italic;
}

.profile-card__cta {
  font-size: 0.88rem;
  color: var(--accent-warm);
  text-decoration: none;
  font-weight: 600;
}

.profile-card__cta:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

@media (max-width: 720px) {
  .type-card-grid,
  .type-card-grid--three {
    grid-template-columns: 1fr;
  }

  .profile-page__header {
    flex-direction: column;
    gap: 16px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}
