
:root {
  --ink: #102a2b;
  --muted: #637879;
  --soft: #edf7f4;
  --surface: #ffffff;
  --surface-2: #f7fbfa;
  --line: #dcebe7;
  --teal-900: #103d3a;
  --teal-800: #12554d;
  --teal-700: #167267;
  --teal-500: #2fa996;
  --mint: #d9f4ec;
  --amber: #e5a83e;
  --shadow: 0 18px 50px rgba(22, 76, 70, .11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(16,45,42,0.06);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-900); font-weight: 800; letter-spacing: -.04em; font-size: 21px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--teal-800); color: white; font-size: 18px; box-shadow: 0 7px 18px rgba(18,85,77,.22); }
.nav-links { display: flex; align-items: center; gap: 30px; color: #466665; font-size: 14px; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.btn { border: 0; border-radius: 999px; padding: 12px 19px; font-weight: 750; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--teal-800); box-shadow: 0 9px 22px rgba(18,85,77,.18); }
.btn-light { color: var(--teal-800); background: white; border: 1px solid var(--line); position: relative; }
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.nav-action-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 12px;
  background: rgba(19, 92, 84, 0.04);
  border-color: rgba(18, 85, 77, 0.10);
  box-shadow: inset 0 0 0 1px rgba(18, 85, 77, 0.02);
  overflow: visible;
}
.nav-action-link:hover {
  background: rgba(19, 92, 84, 0.08);
  border-color: rgba(18, 85, 77, 0.14);
}
.nav-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: var(--teal-800);
}
.nav-action-link[href*="/notifications/"] .nav-action-icon,
.mobile-nav-links a[href*="/notifications/"] .nav-action-label span[aria-hidden="true"] {
  color: #12554d;
  filter: sepia(1) saturate(3) hue-rotate(120deg) brightness(0.8);
}
.nav-action-text,
.nav-action-label {
  display: none;
}
.btn-ghost { background: transparent; color: var(--teal-800); }
.header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.24);
}
.nav-actions > .btn:not(.nav-action-link) {
  padding: 10px 14px;
}
.mobile-nav-links { display: none; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 25px; color: var(--teal-900); }

.hero { position: relative; overflow: hidden; padding: 150px 0 90px; background: linear-gradient(135deg, #eaf8f4 0%, #f8fcfb 61%, #fff6df 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero::before { width: 430px; height: 430px; right: -140px; top: -120px; background: rgba(122, 211, 190, .2); }
.hero::after { width: 260px; height: 260px; left: -100px; bottom: -120px; background: rgba(229, 168, 62, .11); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; color: var(--teal-800); background: rgba(255,255,255,.72); border: 1px solid rgba(47,169,150,.2); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(47,169,150,.14); }
h1 { max-width: 600px; margin: 20px 0 18px; font-size: clamp(43px, 6vw, 74px); line-height: .98; letter-spacing: -.065em; color: var(--teal-900); }
.hero-copy { max-width: 500px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #6d8180; font-size: 12px; }
.avatars { display: flex; padding-left: 7px; }
.avatars span { width: 26px; height: 26px; margin-left: -7px; border: 2px solid #eaf8f4; border-radius: 50%; background: linear-gradient(145deg, #d48d72, #73493b); }
.avatars span:nth-child(2) { background: linear-gradient(145deg, #f0c6a2, #7b927d); }
.avatars span:nth-child(3) { background: linear-gradient(145deg, #8eaca7, #2d5d59); }
.avatars span:nth-child(4) { background: linear-gradient(145deg, #f4b89d, #744b49); }

.hero-visual { position: relative; min-height: 480px; }
.profile-panel { position: absolute; inset: 20px 30px 20px 20px; padding: 18px; border: 1px solid rgba(255,255,255,.85); border-radius: 30px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); backdrop-filter: blur(14px); transform: rotate(2deg); }
.profile-cover { height: 142px; border-radius: 21px; background: linear-gradient(135deg, #86c9bb, #e9d8ad 52%, #e8b491); }
.profile-head { display: flex; align-items: end; gap: 15px; margin: -36px 17px 0; }
.profile-avatar { width: 82px; height: 82px; border: 5px solid white; border-radius: 50%; background: radial-gradient(circle at 62% 28%, #f0c9aa 0 14%, transparent 15%), radial-gradient(circle at 50% 38%, #573c34 0 29%, transparent 30%), linear-gradient(145deg, #efb994, #6b8473); }
.profile-name { padding-bottom: 8px; }
.profile-name strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.profile-name small { color: var(--muted); }
.profile-bio { margin: 18px 17px; color: #536b69; font-size: 13px; }
.tags, .kindred-story-seo-tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.kindred-story-seo-tag,
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; color: #25504b; background: rgba(47,169,150,.16); font-size: 12px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.kindred-story-seo-tag:hover,
.tag:hover { background: rgba(47,169,150,.28); color: #12423b; transform: translateY(-1px); }
.kindred-story-seo-tags { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(18,61,58,.08); }
.kindred-story-seo-tags h2 { margin-bottom: 12px; font-size: 18px; letter-spacing: -.02em; color: var(--teal-900); }
.panel-footer { display: flex; align-items: center; justify-content: space-between; margin: 0 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.online { color: #4e7770; font-size: 12px; }
.online i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #55bf83; }
.small-button { padding: 9px 14px; border: 0; border-radius: 999px; color: white; background: var(--teal-800); font-size: 11px; font-weight: 750; }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid white; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 13px 35px rgba(22,76,70,.13); font-size: 12px; }
.floating-card strong { display: block; font-size: 13px; }
.floating-card span { color: var(--muted); }
.floating-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: var(--teal-800); background: var(--mint); font-size: 18px; }
.float-one { top: 45px; right: -10px; }
.float-two { left: -10px; bottom: 58px; }

section { padding: 92px 0; }
.section-head { max-width: 610px; margin: 0 auto 42px; text-align: center; }
.section-kicker { color: var(--teal-700); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 10px 0 12px; color: var(--teal-900); font-size: clamp(30px, 4vw, 45px); line-height: 1.05; letter-spacing: -.055em; }
.section-head p { margin: 0; color: var(--muted); }
.features { background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 22px; border-radius: 14px; color: var(--teal-800); background: var(--mint); font-size: 21px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-500); }

.stories-showcase {
  background: #f7fbfa;
}

.story-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.story-showcase-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-500);
  box-shadow: var(--shadow);
}

.story-showcase-media {
  position: relative;
  min-height: 150px;
  background: linear-gradient(135deg, #86c9bb, #e9d8ad 52%, #e8b491);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.story-showcase-media--placeholder {
  background: linear-gradient(135deg, #d9f4ec, #e5a83e 52%, #103d3a);
}

.story-showcase-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(16, 61, 58, 0.8);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-showcase-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 18px;
}

.story-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.story-showcase-author {
  color: var(--teal-700);
}

.story-showcase-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.story-showcase-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.story-showcase-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.story-showcase-link::after {
  content: "→";
  margin-left: 6px;
}

/* Story showcase actions with like badge and read link */
.story-showcase-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 85, 77, 0.06);
}

.story-showcase-actions .kindred-story-like-badge {
  flex-shrink: 0;
}

.story-showcase-actions .story-showcase-link {
  margin-top: 0;
}

.story-showcase-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .story-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .story-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .story-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.community { background: var(--teal-900); color: white; }
.community-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.community h2 { color: white; }
.community-copy p { color: #b6d3cd; }
.community-list { display: grid; gap: 14px; margin-top: 27px; }
.community-item { display: flex; gap: 12px; align-items: start; color: #d9ebe7; font-size: 14px; }
.check { display: grid; flex: 0 0 auto; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--teal-900); background: #9ce0cb; font-size: 12px; font-weight: 900; }
.community-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.community-stat-row div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
.community-stat-row strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
  color: white;
}
.community-stat-row span {
  color: #c8e0db;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.feed-preview { padding: 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.08); }
.feed-top { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 16px; color: #c1d9d4; font-size: 13px; }
.feed-post { padding: 18px; border-radius: 16px; background: white; color: var(--ink); }
.post-user { display: flex; align-items: center; gap: 10px; }
.mini-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #e9c1a8, #597a72); }
.post-user strong { display: block; font-size: 13px; }
.post-user small { color: var(--muted); font-size: 11px; }
.post-pill {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(47,169,150,.12);
  color: var(--teal-800);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-text { margin: 17px 0; color: #4b6562; font-size: 14px; }
.post-image {
  position: relative;
  height: 125px;
  border-radius: 12px;
  background: linear-gradient(130deg, #badbd2, #e7c590 53%, #8cbcb2);
  overflow: hidden;
}
.post-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,61,58,0.15), rgba(16,61,58,0.42));
}
.post-photo-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
}
.post-photo-overlay span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.post-photo-overlay strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.post-actions { display: flex; gap: 22px; padding-top: 15px; color: #718482; font-size: 12px; }

.steps { background: #f8fcfb; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 24px; border-top: 2px solid var(--teal-500); }
.step-number { color: var(--teal-700); font-size: 12px; font-weight: 850; }
.step h3 { margin: 11px 0 7px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { padding: 76px 0; background: linear-gradient(135deg, #d9f4ec, #fff2d7); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin-bottom: 0; }
.cta p { margin: 9px 0 0; color: var(--muted); }
footer { padding: 29px 0; background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 20px; }

.page-main-template { padding: 150px 0 90px; background: linear-gradient(135deg, #eaf8f4 0%, #f8fcfb 61%, #fff6df 100%); min-height: 70vh; }
.page-main-template .page-content-wrap { display: grid; grid-template-columns: 1fr 0.88fr; align-items: center; gap: 56px; }
.page-main-template .page-intro { max-width: 640px; }
.page-main-template .page-intro h1 { max-width: 640px; font-size: clamp(40px, 5.4vw, 68px); margin-bottom: 18px; }
.page-main-template .page-intro .hero-copy { max-width: 620px; margin-top: 0; }
.page-card-feature { background: white; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.page-card-feature .page-card-image { min-height: 260px; background: linear-gradient(135deg, #86c9bb, #e9d8ad 52%, #e8b491); border-bottom: 1px solid var(--line); }
.page-card-feature .page-card-image-alt { background: linear-gradient(110deg, #103d3a, #2fa996 62%, #d9f4ec); }
.page-card-feature .page-card-image-privacy { background: linear-gradient(135deg, #d9f4ec, #167267); }
.page-card-feature .page-card-image-contact { background: linear-gradient(135deg, #fff2d7, #e5a83e 52%, #103d3a); }
.page-card-content { padding: 30px; }
.page-card-content h2 { font-size: 30px; margin-bottom: 12px; }
.page-card-content p { margin: 0; color: var(--muted); }
.page-main-template .page-intro .community-list { color: var(--ink); }
.page-main-template .page-intro .community-list .community-item { color: var(--ink); }

.info-page {
  padding: 150px 0 90px;
  background: linear-gradient(135deg, #edf7f4 0%, #f7fbfa 52%, #fff9ea 100%);
  min-height: 70vh;
}

.info-page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.info-page-header {
  margin-bottom: 28px;
}

.info-page-header .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 169, 150, 0.12);
  border: 1px solid rgba(47, 169, 150, 0.18);
}

.info-page-header h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -.06em;
  color: var(--teal-900);
}

.info-page-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.info-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.info-page-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 12px 32px rgba(16, 45, 42, 0.04);
}

.info-page-card h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -.04em;
  color: var(--teal-900);
}

.info-page-card p,
.info-page-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-page-card ul {
  margin: 0;
  padding-left: 18px;
}

.info-page-card li + li {
  margin-top: 8px;
}

.info-page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.info-page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 169, 150, 0.12);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 700;
}

.info-page-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-aside-box {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.info-aside-box h3 {
  margin: 0 0 12px;
  color: var(--teal-900);
  font-size: 18px;
}

.info-aside-box p,
.info-aside-box li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.info-aside-box ul {
  margin: 0;
  padding-left: 18px;
}

.info-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-form {
  display: grid;
  gap: 16px;
}

.info-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-field {
  display: grid;
  gap: 8px;
}

.info-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-900);
}

.info-field input,
.info-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
}

.info-field input:focus,
.info-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(47, 169, 150, 0.08);
}

.info-field textarea {
  min-height: 140px;
  resize: vertical;
}

.info-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-800);
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(18, 85, 77, 0.18);
}

.entry-title { font-size: clamp(34px, 4.4vw, 58px); color: var(--teal-900); line-height: 1.03; margin-bottom: 30px; }
.page-content,
.single-content,
.error-page { padding-top: 120px; min-height: 58vh; }
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding-bottom: 120px;
}
.error-card {
  width: min(720px, 100%);
  padding: 52px 42px;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.error-card .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(47,169,150,.14);
  color: var(--teal-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.error-card h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  color: var(--teal-900);
}
.error-card p {
  margin: 0 auto 30px;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.error-card .btn {
  padding: 14px 24px;
}

/* Story page specific layout helpers */
.kindred-story-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.kindred-story-actions .btn { padding: 10px 14px; font-size: 14px; }
.kindred-story-action-button { min-width: 46px; width: 46px; padding: 10px 0; text-align: center; position: relative; }
.kindred-story-like-button { min-width: auto; padding: 10px 12px; display: inline-flex; align-items: center; gap: 6px; }
.kindred-story-like-button span[aria-hidden="true"] { font-size: 18px; line-height: 1; }
.kindred-story-like-button.is-liked { background: var(--teal-800); color: white; border-color: rgba(23, 101, 90, 0.55); }
.kindred-story-like-button.is-liked span[aria-hidden="true"] { color: white; }
.kindred-story-like-count { font-weight: 700; color: var(--teal-900); font-size: 14px; }

/* Circular like button - perfect circle with centered content */
.kindred-story-like-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 0;
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--teal-700);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 45, 42, 0.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border .12s ease;
}
.kindred-story-like-button span[aria-hidden="true"] { font-size: 24px; line-height: 1; display: block; color: var(--teal-500); }
.kindred-story-like-button .kindred-story-like-count { font-weight: 800; color: var(--teal-800); font-size: 14px; line-height: 1; display: block; }
.kindred-story-like-button:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow);
  background: var(--mint);
  border-color: var(--teal-500);
}

/* Smaller circular variant for cards */
.kindred-most-liked-meta .kindred-story-like-button,
.kindred-story-meta .kindred-story-like-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.kindred-most-liked-meta .kindred-story-like-button span[aria-hidden="true"],
.kindred-story-meta .kindred-story-like-button span[aria-hidden="true"] { font-size: 20px; }

/* Like button positioned at top-right on feed/showcase cards */
.kindred-card-like-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 48px !important;
  height: 48px !important;
  font-size: 9px !important;
}

.kindred-card-like-button span[aria-hidden="true"] {
  font-size: 14px !important;
}

.kindred-card-like-button .kindred-story-like-count {
  font-size: 9px !important;
}

/* Feed cards positioning context */
.kindred-feed-card {
  position: relative;
}

/* Story showcase cards positioning context */
.story-showcase-card {
  position: relative;
}
.kindred-most-liked-meta .kindred-story-like-button .kindred-story-like-count,
.kindred-story-meta .kindred-story-like-button .kindred-story-like-count { font-size: 12px; }

/* When likes are zero, make the button very subtle */
.kindred-story-like-button[data-like-count="0"] { 
  background: var(--surface); 
  border-color: var(--line); 
  color: var(--muted); 
  box-shadow: 0 2px 6px rgba(16, 45, 42, 0.02);
}
.kindred-story-like-button[data-like-count="0"] span[aria-hidden="true"] { color: var(--muted); }

/* Liked state - filled with teal */
.kindred-story-like-button.is-liked {
  background: var(--teal-500);
  border-color: var(--teal-700);
  color: white;
  box-shadow: 0 6px 16px rgba(47, 169, 150, 0.22);
}
.kindred-story-like-button.is-liked span[aria-hidden="true"] { color: white; }
.kindred-story-like-button.is-liked .kindred-story-like-count { color: white; }
.kindred-story-like-button.is-liked:hover { 
  background: var(--teal-700);
  border-color: var(--teal-800);
  box-shadow: 0 8px 20px rgba(47, 169, 150, 0.28);
}

/* Static like badge for non-logged-in users */
.kindred-story-like-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 0;
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--teal-700);
  font-weight: 700;
}
.kindred-story-like-badge span[aria-hidden="true"] { font-size: 24px; line-height: 1; display: block; color: var(--teal-500); }
.kindred-story-like-badge .kindred-story-like-count { font-weight: 800; color: var(--teal-800); font-size: 14px; line-height: 1; display: block; }

/* Small card variants for like badge */
.kindred-most-liked-meta .kindred-story-like-badge,
.kindred-story-meta .kindred-story-like-badge {
  width: 60px;
  height: 60px;
}
.kindred-most-liked-meta .kindred-story-like-badge span[aria-hidden="true"],
.kindred-story-meta .kindred-story-like-badge span[aria-hidden="true"] { font-size: 20px; }
.kindred-most-liked-meta .kindred-story-like-badge .kindred-story-like-count,
.kindred-story-meta .kindred-story-like-badge .kindred-story-like-count { font-size: 12px; }

.kindred-story-action-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(0);
  background: rgba(0, 0, 0, 0.88);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}
.kindred-story-action-button::before {
  content: '';
  position: absolute;
  left: 50%;

.kindred-page-header-row { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.kindred-story-action-button:hover::after,
.kindred-story-action-button:focus::after,
.kindred-story-action-button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
.kindred-story-action-button:hover::before,
.kindred-story-action-button:focus::before,
.kindred-story-action-button:focus-visible::before {
  opacity: 1;
}
.kindred-sr-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kindred-related-stories { margin-top: 36px; }
.kindred-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kindred-related-story-card { padding: 14px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.kindred-related-story-card h3 { margin: 0 0 8px; font-size: 16px; }
.kindred-related-story-card p { margin: 0; color: var(--muted); font-size: 13px; }
.kindred-story-author-card { margin-top: 30px; padding: 18px; border-radius: 12px; background: white; border: 1px solid var(--line); }

.kindred-story-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.kindred-story-header-row .kindred-story-byline {
  margin-bottom: 0;
}

.kindred-story-author-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.kindred-story-delete-form {
  margin: 0;
}

.kindred-story-delete-button {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: #b91c1c;
}

.kindred-story-edit-shell {
  margin-top: 20px;
  margin-bottom: 20px;
}

.kindred-story-edit-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 26px rgba(16, 45, 42, 0.04);
}

/* Most liked stories on archive */
.kindred-most-liked { margin: 18px 0 28px; }
.kindred-most-liked h2 { margin: 0 0 12px; font-size: 18px; }
.kindred-most-liked-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kindred-most-liked-card { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.kindred-most-liked-card a { font-weight: 700; color: var(--teal-900); text-decoration: none; }
.kindred-most-liked-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.kindred-most-liked-meta .kindred-read-link { font-size: 12px; color: var(--teal-800); font-weight: 600; }
.kindred-most-liked-meta .kindred-story-like-button { padding: 6px 10px; font-size: 12px; min-width: auto; }
.kindred-most-liked-meta .kindred-story-like-button span[aria-hidden="true"] { font-size: 14px; }

/* Archive story card like button placement */
.kindred-story-meta { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.kindred-story-meta .kindred-story-like-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; }
.kindred-author-content { display: flex; gap: 18px; align-items: flex-start; }
.kindred-author-summary { min-width: 220px; }
.kindred-author-bio { flex: 1; color: #2f6a63; }
.kindred-story-comments { margin-top: 28px; }

/* Make sure large absolutely positioned visuals don't overlap header */
.hero, .page-main-template, .section { padding-top: 92px; }

/* Two-column story layout */
.kindred-story-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.kindred-story-main { background: transparent; }
.kindred-story-aside { position: relative; top: 0; }

.kindred-story-hero-meta {
  width: 100%;
  padding: 34px 0 18px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}

.kindred-story-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tighter title and readable line lengths */
.entry-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.kindred-story-byline { display: flex; gap: 12px; align-items: center; color: var(--muted); margin-bottom: 18px; }
.kindred-story-hero-meta .kindred-story-byline {
  margin-bottom: 0;
}

/* Make entry content visually clean and consistent */
.entry-content {
    font-size: 16px;
  color: #000000;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 18px 0;
}
.kindred-story-image img { width: 100%; height: auto; border-radius: 12px; margin: 12px 0 20px; }

@media (max-width: 920px) {
  .kindred-story-layout { grid-template-columns: 1fr; }
  .kindred-story-aside { order: 2; }
  .kindred-story-main { order: 1; }
}

/* Pro-style comments section with borders compatible with theme */
.kindred-comments-section {
  margin-top: 36px;
  padding: 28px;
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 45, 42, 0.04);
}

.kindred-comments-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-900);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 12px;
}

.kindred-comments-closed {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 20px;
}

/* Comment list styles */
.kindred-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.kindred-comment {
  margin-bottom: 16px;
  list-style: none;
}

.kindred-comment.thread-even { background: transparent; }
.kindred-comment.thread-odd { background: transparent; }

/* Individual comment body */
.kindred-comment-body {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: all .18s ease;
}

.kindred-comment-body:hover {
  background: white;
  border-color: var(--teal-500);
  box-shadow: 0 4px 12px rgba(47, 169, 150, 0.08);
}

/* Comment header with avatar and author info */
.kindred-comment-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.kindred-comment-avatar-wrap {
  flex-shrink: 0;
}

.kindred-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: block;
}

.kindred-comment-header {
  flex: 1;
}

.kindred-comment-author-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.kindred-comment-author {
  font-weight: 800;
  color: var(--teal-900);
  font-size: 15px;
}

.kindred-comment-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.kindred-comment-awaiting {
  margin: 6px 0 0;
  padding: 8px 12px;
  background: rgba(229, 168, 62, 0.08);
  border-left: 3px solid var(--amber);
  color: rgba(229, 168, 62, 0.8);
  font-size: 12px;
  border-radius: 4px;
}

/* Comment content */
.kindred-comment-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
  word-wrap: break-word;
}

.kindred-comment-content p {
  margin: 0 0 10px;
}

.kindred-comment-content p:last-child {
  margin-bottom: 0;
}

/* Comment footer with reply/edit actions */
.kindred-comment-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 85, 77, 0.04);
}

.kindred-comment-reply-link,
.kindred-comment-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-700);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all .12s ease;
  text-decoration: none;
}

.kindred-comment-reply-link:hover,
.kindred-comment-footer a:hover {
  color: white;
  background: var(--teal-700);
}

/* Nested replies */
.kindred-comment .kindred-comment-list {
  margin-top: 16px;
  padding-left: 24px;
  border-left: 2px solid var(--mint);
}

/* Pingbacks/trackbacks styling */
.kindred-comment-pingback {
  padding: 12px;
  border-left: 3px solid var(--muted);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  font-size: 13px;
}

/* Comment form wrapper and styling */
.kindred-comment-form-wrapper {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--mint);
}

.kindred-comment-form {
  display: block;
}

/* Form groups and inputs */
.kindred-form-group {
  margin-bottom: 16px;
}

.kindred-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.kindred-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-900);
}

.kindred-form-group .required {
  color: var(--teal-500);
}

.kindred-form-input,
.kindred-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  background: white;
  color: var(--ink);
  font-family: inherit;
  transition: all .12s ease;
}

.kindred-form-input:focus,
.kindred-form-textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(47, 169, 150, 0.08);
}

.kindred-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Comment submit button */
.kindred-comment-submit {
  padding: 12px 24px !important;
  background: var(--teal-800) !important;
  color: white !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(18, 85, 77, 0.18) !important;
  transition: all .12s ease !important;
}

.kindred-comment-submit:hover {
  background: var(--teal-700) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 85, 77, 0.22) !important;
}

.kindred-comment-submit:active {
  transform: translateY(0);
}

/* Pagination for comments */
.kindred-comment-nav {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.comment-pagination a,
.comment-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  margin: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all .12s ease;
}

.comment-pagination a:hover {
  background: var(--teal-800);
  color: white;
  border-color: var(--teal-800);
}

.comment-pagination .current {
  background: var(--teal-800);
  color: white;
  border-color: var(--teal-800);
}

@media (max-width: 680px) {
  .kindred-comment-list-wrapper { max-height: 320px; }
}

/* Comment form styling to match site buttons and compact design */
.kindred-comment-form textarea#comment,
.kindred-comment-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  background: white;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(16,45,42,0.02);
}
.kindred-comment-form textarea:focus {
  outline: 2px solid rgba(47,169,150,0.18);
  outline-offset: 2px;
}
.kindred-comment-form .form-submit { margin-top: 12px; display: flex; justify-content: flex-end; }
.kindred-comment-form input.submit,
.kindred-comment-form button.submit {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--teal-800);
  color: white;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(18,85,77,.18);
}
.kindred-comment-form input.submit:hover,
.kindred-comment-form button.submit:hover { transform: translateY(-2px); }



/* Site-level entry header (shows the story title under the main header) */
.site-entry-header {
  width: 100%;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(4px);
  padding: 6px 0; /* compact header */
}
.site-entry-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-entry-header .entry-title { font-size: 18px; margin: 0; color: var(--teal-900); font-weight: 700; }
.site-entry-header .kindred-story-byline { margin: 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.site-entry-header .site-entry-left { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.site-entry-header .site-entry-right { display: flex; align-items: center; gap: 10px; }

/* smaller avatar in header and tighter author meta */
.site-entry-header .kindred-story-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.site-entry-header .kindred-author-name { font-size: 13px; margin: 0; }
.site-entry-header .kindred-author-meta { font-size: 12px; margin: 0; color: var(--muted); }

/* Position the story card to sit visually at the bottom of the site entry header on single story pages */
body.post-type-havenly_story .site-entry-header {
  position: relative;
  padding-bottom: 28px;
}

body.post-type-havenly_story .kindred-story-card {
  margin-top: -22px;
  position: relative;
  z-index: 80;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: white;
  overflow: visible;
}


@media (max-width: 600px) {
  .site-entry-header .container { flex-direction: column; align-items: flex-start; }
  .site-entry-header .entry-title { font-size: 18px; }
}

button:focus,
a:focus,
.nav-links a:focus,
.btn:focus { outline: 2px solid var(--teal-500); outline-offset: 3px; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .nav-actions > a {
    display: none;
  }
  .nav-actions .nav-action-link {
    display: inline-flex;
  }
  .nav-action-link {
    width: auto;
    height: auto;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f7fbfa;
    border: 1px solid rgba(15, 118, 110, 0.12);
  }
  .nav-action-icon {
    font-size: 15px;
  }
  .nav-action-text,
  .nav-action-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav-actions { gap: 0; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    right: 24px;
    top: 76px;
    background: white;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 18px;
    padding: 18px 20px;
    width: min(240px, calc(100% - 48px));
    box-shadow: 0 18px 45px rgba(25, 84, 78, 0.12);
    z-index: 20;
  }
  .nav-links.is-open a {
    display: block;
    padding: 8px 0;
  }
  .mobile-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 16px 18px;
    background: white;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(25, 84, 78, 0.12);
    z-index: 20;
  }
  .mobile-nav-links.is-open {
    display: flex;
  }
  .mobile-nav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #153c37;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5fbfa;
    border: 1px solid rgba(15, 118, 110, 0.12);
    font-weight: 700;
    font-size: 0.93rem;
  }
  .mobile-nav-links a:hover {
    background: #e5f6f0;
  }
  .mobile-nav-links a:last-child {
    border-bottom: none;
  }
  .mobile-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    border-radius: 7px;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0 5px;
    margin-left: 10px;
  }
  .mobile-menu { display: block; }
  .hero { padding-top: 125px; }
  .hero-grid, .community-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-visual { min-height: 440px; max-width: 580px; width: 100%; margin: auto; }
  .feature-grid, .step-grid { grid-template-columns: 1fr; }
  .cta-box { display: block; }
  .cta .btn { margin-top: 22px; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-actions .btn-light { display: none; }
  h1 { font-size: 49px; }
  .hero-copy { font-size: 16px; }
  .hero-visual { min-height: 390px; transform: scale(.9); transform-origin: top center; margin-bottom: -35px; }
  section { padding: 68px 0; }
  .profile-panel { inset: 10px 13px 10px 13px; }
  .float-one { right: -2px; }
  .float-two { left: -2px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 13px; }
}

.kindred-contact-page {
  position: relative;
  overflow: hidden;
  padding: 88px 0 104px;
  min-height: 70vh;
  background:
    radial-gradient(circle at 80% 5%, rgba(47,169,150,.12) 0, transparent 16%),
    radial-gradient(circle at 15% 98%, rgba(229,168,62,.13) 0, transparent 21%),
    linear-gradient(135deg, #eefaf8 0%, #fffdfb 55%, #fff8ec 100%);
}
.kindred-contact-page::before,
.kindred-contact-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(105px);
  z-index: 0;
}
.kindred-contact-page::before {
  left: -180px;
  top: -80px;
  background: rgba(47,169,150,.26);
}
.kindred-contact-page::after {
  right: -180px;
  bottom: -170px;
  background: rgba(229,168,62,.23);
}
.kindred-contact-page .kindred-contact-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.kindred-contact-header {
  width: min(100%, 830px);
  text-align: left;
  margin-bottom: 28px;
}
.kindred-contact-header .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.kindred-contact-header .section-kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal-500);
  border: 2px solid #d7fff4;
}
.kindred-contact-header h1 {
  font-size: clamp(54px, 8.8vw, 105px);
  line-height: .88;
  margin: 0 0 22px;
  letter-spacing: -.075em;
  color: var(--teal-900);
}
.kindred-contact-subtitle {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  color: var(--muted);
  margin: 0 0 20px;
}
.kindred-contact-copy {
  font-size: clamp(18px, 2.5vw, 29px);
  line-height: 1.58;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 800px;
}
.kindred-contact-card {
  width: min(100%, 680px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(22, 76, 70, .12), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 32px;
}
.kindred-contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kindred-contact-form .kindred-form-field {
  display: flex;
  flex-direction: column;
}
.kindred-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--teal-900);
  margin-bottom: 8px;
}
.kindred-contact-form input,
.kindred-contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  min-height: 52px;
  padding: 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.kindred-contact-form input:hover,
.kindred-contact-form textarea:hover {
  border-color: #a8b6c6;
}
.kindred-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}
.kindred-contact-form input::placeholder,
.kindred-contact-form textarea::placeholder {
  color: #94a3b8;
}
.kindred-contact-form input:focus,
.kindred-contact-form textarea:focus {
  border-color: var(--primary, var(--teal-700));
  box-shadow: 0 0 0 4px rgba(47, 169, 150, .12);
  outline: none;
  background: #ffffff;
}
.kindred-contact-form .kindred-submit {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 0;
  color: white;
  background: var(--teal-800);
  font-weight: 900;
}
.kindred-contact-form .kindred-submit:hover {
  transform: translateY(-2px);
  background: var(--teal-900);
}
.kindred-contact-form .kindred-submit:active {
  transform: translateY(0);
}
.kindred-contact-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 14px;
  background: #eefcf7;
  border: 1px solid #bfead9;
  color: var(--teal-900);
}
.kindred-contact-success .success-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--teal-800);
  color: white;
  font-weight: 900;
}
.kindred-contact-success p {
  margin: 0;
  line-height: 1.58;
}
.kindred-contact-error {
  color: #9b2c2c;
  margin-bottom: 16px;
  font-weight: 700;
}
.kindred-contact-admin .wrap {
  background: white;
}
.kindred-contact-admin .kindred-contact-admin-actions {
  margin: 20px 0;
}
.kindred-contact-admin table th {
  font-weight: 800;
}
.kindred-contact-row {
  cursor: pointer;
}
.kindred-contact-row:hover td {
  background: #eefaf9;
}
.kindred-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal-500);
}
.kindred-status-dot.unread {
  background: #3b82f6;
}
.kindred-status-dot.read {
  background: #94a3b8;
}
.kindred-contact-detail-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.kindred-contact-detail-card p {
  margin: 0 0 12px;
}
.kindred-contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}
.kindred-auth-page {
  padding: 110px 0 96px;
  background: linear-gradient(135deg, #effaf9 0%, #fdfaf4 100%);
}
.kindred-auth-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}
.kindred-auth-card {
  width: min(100%, 620px);
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.kindred-auth-card-wide {
  width: min(100%, 760px);
}
.kindred-auth-title {
  margin-bottom: 26px;
}
.kindred-auth-title h1 {
  margin: 12px 0 12px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: .96;
  color: var(--teal-900);
  letter-spacing: -.055em;
}
.kindred-auth-title p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.kindred-auth-card .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.kindred-auth-card .section-kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
}
.kindred-auth-errors {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fff7ed;
  color: #991b1b;
}
.kindred-auth-success {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.kindred-auth-success p {
  margin: 0;
  font-weight: 600;
}
.kindred-auth-errors ul {
  margin: 0;
  padding-left: 22px;
}
.kindred-auth-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kindred-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kindred-form-field label {
  font-size: 13px;
  font-weight: 900;
  color: var(--teal-900);
}
.kindred-form-field input,
.kindred-form-field textarea,
.kindred-form-field select,
.kindred-auth-card input,
.kindred-auth-card textarea,
.kindred-auth-card select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #ccd9dd;
  background: white;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
.kindred-form-field input:focus,
.kindred-form-field textarea:focus,
.kindred-form-field select:focus {
  border-color: var(--teal-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(47,169,150,.10);
}
.kindred-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kindred-form-section-heading {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--teal-700);
}
.kindred-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
}
.kindred-date-selects {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 8px;
  width: min(100%, 260px);
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(233,245,247,.95));
  border: 1px solid rgba(20, 121, 112, 0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 22px rgba(18, 52, 61, 0.06);
  overflow: hidden;
}
.kindred-date-selects select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  padding: 12px 24px 12px 8px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(20, 121, 112, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,249,250,.98));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .02em;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal-700) 50%), linear-gradient(135deg, var(--teal-700) 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.kindred-date-selects select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(47,169,150,.10), inset 0 1px 0 rgba(255,255,255,.9);
  outline: none;
}
.kindred-date-selects::before,
.kindred-date-selects::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 16px;
  pointer-events: none;
  border-radius: 10px;
}
.kindred-date-selects::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
}
.kindred-date-selects::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255,255,255,.95), rgba(255,255,255,0));
}
.kindred-check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
.kindred-check-row input {
  width: auto;
  min-height: auto;
}
.kindred-form-actions {
  margin-top: 8px;
}
.kindred-auth-link {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.kindred-auth-link a {
  color: var(--teal-700);
  font-weight: 700;
}
.kindred-image-crop-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kindred-crop-preview {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #dfeef0, #f7f0e4);
  box-shadow: inset 0 0 0 1px rgba(16, 61, 58, 0.04);
}
.kindred-crop-preview img,
.kindred-crop-preview .kindred-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kindred-photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 800;
  color: #3b1c5a;
  background: linear-gradient(135deg, #f0e4ff, #dfeef0);
}
.kindred-crop-box {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 0 0 9999px rgba(8, 17, 22, 0.38);
  pointer-events: auto;
  cursor: grab;
}
.kindred-crop-box:active {
  cursor: grabbing;
}
.kindred-crop-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kindred-hidden-file-input {
  display: none;
}
.kindred-form-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.kindred-auth-link {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.kindred-auth-link a {
  color: var(--teal-700);
  font-weight: 900;
}
.kindred-loggedin-home {
  --kindred-loggedin-home-backdrop-image: linear-gradient(135deg, #fffaf8 0%, #ecf9f4 38%, #fff5ea 100%);
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background-color: #fffaf8;
  /* Removed the strong white overlay so backdrop appears more gently */
  background-image: var(--kindred-loggedin-home-backdrop-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.kindred-loggedin-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Subtle overlay to keep text readable but not overpower the backdrop */
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06));
}

.kindred-loggedin-home .container { position: relative; z-index: 1; }

.kindred-loggedin-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}
.kindred-home-panel,
.kindred-home-mini-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kindred-home-panel {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  border: 1px solid rgba(16, 45, 42, 0.08);
  padding: 54px;
  box-shadow: 0 18px 44px rgba(18, 85, 77, 0.10);
  backdrop-filter: blur(10px);
}
.kindred-home-panel h1 {
  font-size: clamp(44px, 5vw, 74px);
  line-height: .94;
  margin: 12px 0 20px;
  letter-spacing: -.065em;
  color: var(--teal-900);
}
.kindred-home-panel .hero-copy {
  font-size: 22px;
  color: var(--muted);
  line-height: 1.55;
}
.kindred-home-mini-card {
  background: rgba(16, 61, 58, 0.72);
  color: white;
  border-radius: 28px;
  padding: 54px;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(18, 45, 42, 0.16);
  backdrop-filter: blur(10px);
}
.kindred-home-mini-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  color: white;
}
.kindred-home-mini-card p {
  margin: 0 0 22px;
  line-height: 1.7;
  color: #bfd8d4;
}
.kindred-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.kindred-mini-list li {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}
.kindred-mini-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.kindred-mini-list a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.kindred-mini-list li::before {
  content: none;
  display: none;
}

@media (max-width: 1100px) {
  .kindred-mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .kindred-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kindred-contact-page {
    padding-top: 80px;
  }
  .kindred-contact-page .kindred-contact-wrap {
    align-items: center;
  }
  .kindred-contact-header {
    text-align: center;
  }
  .kindred-loggedin-home-grid {
    grid-template-columns: 1fr;
  }
  .kindred-home-panel,
  .kindred-home-mini-card {
    min-height: 360px;
    height: 100%;
    padding: 40px;
  }
  .kindred-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .kindred-contact-page {
    padding: 58px 0 72px;
  }
  .kindred-contact-header {
    width: 100%;
    text-align: center;
  }
  .kindred-contact-header h1 {
    font-size: clamp(40px, 14vw, 72px);
  }
  .kindred-contact-subtitle {
    font-size: 28px;
  }
  .kindred-contact-copy {
    font-size: 20px;
    line-height: 1.52;
  }
  .kindred-contact-card {
    padding: 24px;
  }
  .kindred-loggedin-home {
    padding-top: 96px;
  }
  .kindred-home-panel {
    padding: 30px;
  }
  .kindred-auth-card {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .kindred-contact-card {
    width: 100%;
    border-radius: 16px;
    padding: 20px;
  }
  .kindred-contact-form {
    gap: 20px;
  }
  .kindred-contact-form input,
  .kindred-contact-form textarea {
    min-height: 48px;
    font-size: 14px;
  }
  .kindred-loggedin-home-grid {
    grid-template-columns: 1fr;
  }
}

.kindred-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.kindred-metric-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(18, 85, 77, 0.08);
  background: rgba(217, 244, 236, 0.45);
}
.kindred-metric-row strong {
  font-size: 24px;
  letter-spacing: -.05em;
  color: var(--teal-900);
}
.kindred-metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kindred-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
}
.kindred-mini-list li {
  margin: 0;
  flex: 0 0 auto;
}
.kindred-mini-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #dfeef0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  min-height: 38px;
}
.kindred-mini-list li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,.14);
}
@media (max-width: 1024px) {
  .kindred-mini-list {
    gap: 5px;
  }
  .kindred-mini-list li a {
    font-size: 13px;
    padding: 11px 12px;
  }
}
@media (max-width: 860px) {
  .kindred-mini-list {
    gap: 4px;
  }
  .kindred-mini-list li {
    flex: 1 1 48%;
    min-width: 0;
  }
  .kindred-mini-list li a {
    white-space: normal;
    padding: 10px 10px;
  }
}
@media (max-width: 640px) {
  .kindred-mini-list {
    gap: 4px;
    justify-content: space-between;
  }
  .kindred-mini-list li {
    flex: 1 1 48%;
    min-width: 0;
  }
  .kindred-mini-list li a {
    font-size: 12px;
    padding: 10px 10px;
  }
}
@media (max-width: 460px) {
  .kindred-mini-list li {
    flex: 1 1 48%;
  }
}
.kindred-feed-wrap {
  padding: 24px 0 96px;
  background: #f8fcfb;
}
.kindred-section-heading {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.kindred-section-heading h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.7vw, 52px);
}
.kindred-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.kindred-feed-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(22, 76, 70, 0.06);
}
.kindred-feed-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kindred-feed-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: white;
  font-weight: 800;
}
.kindred-feed-card-header strong {
  display: block;
  font-size: 14px;
  color: var(--teal-900);
}
.kindred-feed-card-header small {
  color: var(--muted);
  font-size: 11px;
}
.kindred-feed-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--teal-900);
}
.kindred-feed-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.kindred-feed-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #edf7f4;
}
.kindred-feed-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.kindred-show-more-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.kindred-show-more-row .btn {
  min-width: 220px;
}
.kindred-feed-actions a {
  color: var(--teal-800);
  font-size: 13px;
  font-weight: 800;
}
.kindred-empty-card {
  grid-column: 1 / -1;
  padding: 34px 20px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed rgba(18, 85, 77, 0.35);
  background: rgba(217, 244, 236, 0.26);
  color: var(--teal-900);
  font-weight: 700;
}
@media (max-width: 900px) {
  .kindred-feed-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.kindred-page-shell {
  padding: 130px 0 90px;
  background: linear-gradient(135deg, #eefaf8 0%, #fffefb 60%, #fffaf0 100%);
}
.kindred-page-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.kindred-page-header-row h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -.06em;
  color: var(--teal-900);
}
.kindred-inline-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(22, 76, 70, 0.04);
}
.kindred-inline-search input {
  min-width: 260px;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.kindred-inline-search input:focus {
  outline: none;
}
.kindred-archive-form {
  width: min(100%, 720px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kindred-archive-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  min-width: 140px;
}
.kindred-archive-select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(47, 169, 150, 0.1);
}
.kindred-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--teal-700);
  font-size: 18px;
  line-height: 1;
  opacity: 0.8;
  margin-left: 8px;
}
.kindred-archive-search {
  width: min(100%, 440px);
}
.kindred-archive-search input {
  min-width: 0;
  flex: 1;
}
.kindred-discover-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 85, 77, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(22, 76, 70, 0.06);
}
.kindred-pagination {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}
.kindred-pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.kindred-pagination li {
  display: inline-flex;
}
.kindred-pagination a,
.kindred-pagination span {
  display: inline-flex;
  min-width: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 85, 77, 0.12);
  background: white;
  color: var(--teal-900);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.kindred-pagination a:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}
.kindred-pagination .current {
  background: var(--teal-900);
  color: white;
  border-color: var(--teal-900);
}
.kindred-pagination .prev,
.kindred-pagination .next {
  min-width: auto;
  padding: 10px 16px;
}
.kindred-discover-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 52px;
  overflow: hidden;
}
.kindred-discover-search input,
.kindred-discover-filters select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.kindred-discover-search input {
  border: 0;
}
.kindred-discover-search input:focus,
.kindred-discover-filters select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(47, 169, 150, 0.1);
}
.kindred-discover-filters .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.kindred-profile-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.kindred-profile-cover {
  height: 210px;
  background: linear-gradient(135deg, #86c9bb, #e9d8ad 52%, #e8b491);
}
.kindred-profile-header-meta {
  display: flex;
  align-items: end;
  gap: 24px;
  padding: 0 28px 28px;
  margin-top: -52px;
}
.kindred-profile-avatar {
  flex-shrink: 0;
}
.kindred-profile-avatar .avatar {
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(22, 76, 70, 0.12);
}
.kindred-profile-meta-copy {
  flex: 1;
}
.kindred-profile-meta-copy h1 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.05em;
}
.kindred-profile-meta-copy p {
  margin: 0;
  color: var(--muted);
}
.kindred-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kindred-profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.kindred-side-panel,
.kindred-content-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kindred-panel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 26px rgba(22, 76, 70, 0.04);
}
.kindred-panel-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.1;
  color: var(--teal-900);
}
.kindred-panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.kindred-profile-section-card {
  border: 1px solid rgba(18, 85, 77, 0.08);
  box-shadow: 0 12px 28px rgba(22, 76, 70, 0.03);
}
.kindred-profile-empty-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(217, 244, 236, 0.28), rgba(255,255,255,0.9));
  box-shadow: 0 10px 22px rgba(22, 76, 70, 0.04);
}
.kindred-fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kindred-fact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.kindred-fact-list li strong {
  color: var(--teal-900);
}
.kindred-social-layout {
  display: grid;
  gap: 24px;
}
.kindred-social-shell {
  display: block;
}
.kindred-social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.kindred-social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  box-shadow: 0 10px 22px rgba(22, 76, 70, 0.04);
}
.kindred-social-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.kindred-social-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(22, 76, 70, 0.08);
}
.kindred-social-avatar .avatar,
.kindred-social-avatar img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.kindred-social-person h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--teal-900);
}
.kindred-social-person p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.kindred-social-card .kindred-profile-actions {
  margin-left: auto;
}
.kindred-social-card .btn {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .kindred-social-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .kindred-social-card .kindred-profile-actions {
    width: 100%;
    margin-left: 0;
  }
  .kindred-social-card .kindred-profile-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
.kindred-story-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kindred-profile-story-list {
  gap: 20px;
}
.kindred-story-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 12px 22px rgba(22, 76, 70, 0.04);
}
.kindred-profile-story-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  border: 1px solid rgba(18, 85, 77, 0.08);
  box-shadow: 0 12px 28px rgba(22, 76, 70, 0.05);
}
.kindred-story-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.kindred-story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-900);
  background: rgba(47, 169, 150, 0.12);
}
.kindred-story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.kindred-story-head strong {
  display: block;
  color: var(--teal-900);
}
.kindred-story-head small {
  color: var(--muted);
}
.kindred-story-card h4 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--teal-900);
}
.kindred-story-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}
.kindred-story-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.kindred-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.kindred-story-meta a {
  color: var(--teal-800);
  font-weight: 800;
}
.kindred-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.kindred-person-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,250,249,0.96) 100%);
  border: 1px solid rgba(16, 61, 58, 0.08);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(16, 61, 58, 0.06), 0 2px 7px rgba(16, 61, 58, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.kindred-person-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 169, 150, 0.34);
  box-shadow: 0 24px 42px rgba(16, 61, 58, 0.12), 0 10px 16px rgba(16, 61, 58, 0.08);
}
.kindred-person-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 61, 58, 0.08);
}
.kindred-person-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  background: #f5f7f6;
}
.kindred-person-top h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--teal-900);
}
.kindred-person-top span {
  color: var(--muted);
  font-size: 12px;
}
.kindred-person-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}
.kindred-person-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.kindred-person-card ul li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kindred-person-card ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-800));
  box-shadow: 0 0 0 4px rgba(47, 169, 150, 0.12);
}
.kindred-person-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.kindred-person-actions .btn {
  flex: 1 1 0;
  min-height: 42px;
  white-space: nowrap;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
}
.kindred-register-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  background: linear-gradient(135deg, #103d3a 0%, #12554d 48%, #167267 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  box-shadow: 0 22px 45px rgba(16, 61, 58, 0.18), 0 8px 18px rgba(16, 61, 58, 0.12);
}
.kindred-register-cta .section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.82);
}
.kindred-register-cta h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.05em;
  color: #ffffff;
}
.kindred-register-cta .btn {
  min-width: 170px;
  justify-content: center;
  background: linear-gradient(135deg, #f8d08a 0%, #e7b65d 100%);
  color: #103d3a;
  box-shadow: 0 16px 28px rgba(231, 182, 93, 0.3);
  border: 1px solid rgba(255,255,255,0.38);
}
.kindred-compose-wrap {
  display: flex;
  justify-content: center;
}
.kindred-compose-card {
  width: min(100%, 760px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.kindred-compose-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: .96;
  color: var(--teal-900);
}
.kindred-compose-card p {
  margin: 0 0 24px;
  color: var(--muted);
}
.kindred-post-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kindred-message-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.kindred-message-list .kindred-panel-card,
.kindred-chat-card {
  max-height: calc(100vh - 220px);
  overflow: hidden;
}
.kindred-message-list .kindred-panel-card {
  padding: 16px;
}
.kindred-message-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding-right: 4px;
}
.kindred-message-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
}
.kindred-message-item.active a,
.kindred-message-item a:hover {
  background: #edf7f4;
  border-color: var(--line);
}
.kindred-message-item strong,
.kindred-message-item small {
  display: block;
}
.kindred-message-item small {
  color: var(--muted);
}
.kindred-avatar-stack {
  position: relative;
  display: inline-flex;
}
.kindred-online-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid white;
}
.kindred-message-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kindred-message-preview strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kindred-chat-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: min(72vh, 760px);
  overflow: hidden;
}
.kindred-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.kindred-chat-header h2 {
  margin: 8px 0 0;
  font-size: 24px;
  color: var(--teal-900);
}
.kindred-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 2px 14px;
  margin-bottom: 8px;
  scroll-behavior: smooth;
}
.kindred-message-bubble {
  max-width: 66%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.kindred-message-bubble.theirs {
  align-self: flex-start;
  background: #f5f8fb;
  color: #24303f;
  border: 1px solid rgba(36, 48, 63, 0.12);
  border-top-left-radius: 6px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
}
.kindred-message-bubble.mine {
  align-self: flex-end;
  background: #0f766e;
  color: #ffffff;
  border-top-right-radius: 6px;
  border-top-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
}
.kindred-chat-status {
  min-height: 22px;
  color: #16a34a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.kindred-chat-form {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-shrink: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  background: white;
}
.kindred-chat-form input {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
}
.kindred-notification-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kindred-notification-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 22px rgba(22, 76, 70, 0.03);
}
.kindred-notification-item strong {
  display: block;
  color: var(--teal-900);
}
.kindred-notification-item p {
  margin: 4px 0 0;
  color: var(--muted);
}
.kindred-notification-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .kindred-profile-layout,
  .kindred-message-layout,
  .kindred-people-grid {
    grid-template-columns: 1fr;
  }
  .kindred-page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .kindred-inline-search {
    width: 100%;
  }
  .kindred-inline-search input {
    min-width: 0;
    width: 100%;
  }
  .kindred-register-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .kindred-register-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .kindred-metric-row {
    grid-template-columns: 1fr;
  }
  .kindred-feed-grid,
  .kindred-people-grid {
    grid-template-columns: 1fr;
  }
  .kindred-profile-header-meta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -30px;
  }
  .kindred-profile-actions {
    width: 100%;
  }
  .kindred-profile-actions .btn {
    flex: 1 1 auto;
  }
  .kindred-compose-card,
  .kindred-panel-card {
    padding: 22px;
  }
  .kindred-chat-form {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
