/* [v-care-fe-ui-2] Triumvirate Care - shared styles.
   A LIGHT version of the Triumvirate Group identity (see the books app's
   chrome.css): warm editorial palette, Cormorant Garamond + DM Sans, mono
   uppercase eyebrows, the diamond wordmark, sharp 2px accents. Centered on the
   Care tier's sage-green accent. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Warm light palette (the inverse of the Group's dark identity) */
  --bg:        #f7f4ec;
  --surface:   #fffdf8;
  --surface2:  #f1ece0;
  --line:      #e7e0d1;
  --line2:     #d9d0bd;
  --ink:       #1f1c16;
  --muted:     #6f6757;
  --muted2:    #9a9282;

  /* Care tier accent = sage green (#7fb0a6 is the Group's Care color).
     Deeper sage for actions/text so it stays legible on light surfaces;
     the lighter sage is used for hairlines, the diamond, and eyebrows. */
  --accent:        #2f6f62;
  --accent-strong: #245549;
  --accent-soft:   #e9f1ee;
  --accent-rim:    rgba(47,111,98,0.28);
  --sage:          #7fb0a6;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'Courier New', monospace;

  --radius: 6px;
  --sharp:  2px;
  --shadow: 0 1px 2px rgba(31,28,22,.04), 0 12px 32px rgba(31,28,22,.05);

  /* status colors (warm-friendly) */
  --warn: #9a6a1c;
  --bad:  #a23b2c;
  --good: #2f6358;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Mono uppercase eyebrow, the Group's signature label treatment */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}

/* ── Header / brand lockup ──────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--accent);   /* the tier "tells you where you are" line */
  position: sticky; top: 0; z-index: 60;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .diamond { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.brand .word {
  font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); line-height: 1;
}
.brand .divider { width: 1px; height: 20px; background: var(--line2); }
.brand .tier {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px;
  color: var(--accent); line-height: 1;
}
.topbar nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar nav a {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .15s;
}
.topbar nav a:hover { color: var(--accent); }
/* Buttons living in the nav must keep their own colors -- the nav-link rule
   above is more specific than .btn and would otherwise tint the text. */
.topbar nav a.btn { color: #ffffff; }
.topbar nav a.btn:hover { color: #ffffff; }
.topbar nav a.btn.ghost { color: var(--accent); }
.topbar nav a.btn.ghost:hover { color: var(--accent-strong); }
@media (max-width: 560px) {
  .brand .word { font-size: 18px; letter-spacing: .12em; }
  .brand .tier { font-size: 16px; }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 940px; margin: 0 auto; padding: 34px 24px 90px; }
.narrow { max-width: 440px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-bottom: 20px;
}
.card h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 4px; color: var(--ink); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.card .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
label {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 16px 0 6px;
}
input, textarea, select {
  width: 100%; padding: 11px 13px; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line2); border-radius: var(--sharp);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: var(--muted2); margin-top: 5px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 12px 22px; border-radius: var(--sharp);
  border: 1px solid var(--accent); background: var(--accent); color: #ffffff;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn.small { padding: 8px 14px; font-size: 11px; }
.btn.danger { background: transparent; color: var(--bad); border-color: #e0bdb6; }
.btn.danger:hover { background: #fbeeeb; border-color: #d99a8f; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Pills / status chips ───────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--sharp); border: 1px solid var(--accent-rim);
  background: var(--accent-soft); color: var(--accent-strong);
}
.pill.warn { background: #fbf2e0; color: var(--warn); border-color: #ecd6a8; }
.pill.bad  { background: #fbeeeb; color: var(--bad);  border-color: #e8c3bb; }
.pill.good { background: var(--accent-soft); color: var(--good); border-color: var(--accent-rim); }
.pill.muted{ background: var(--surface2); color: var(--muted); border-color: var(--line2); }

/* ── Lists ──────────────────────────────────────────────────────────────── */
.list { list-style: none; padding: 0; margin: 0; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item .meta { font-size: 13px; color: var(--muted); }

/* ── Banners ────────────────────────────────────────────────────────────── */
.banner {
  padding: 13px 15px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px;
  border: 1px solid var(--line); background: var(--surface);
}
.banner.info { background: var(--accent-soft); border-color: var(--accent-rim); color: var(--accent-strong); }
.banner.bad  { background: #fbeeeb; border-color: #e8c3bb; color: var(--bad); }
.banner.good { background: var(--accent-soft); border-color: var(--accent-rim); color: var(--good); }

/* ── Misc ───────────────────────────────────────────────────────────────── */
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fffdf8; padding: 11px 18px; border-radius: var(--sharp);
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 80;
}
.toast.show { opacity: 1; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ── Shared Group footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface2); border-top: 1px solid var(--line);
  margin-top: 40px; padding: 48px 26px 30px;
}
.foot-inner { max-width: 1040px; margin: 0 auto; }
.foot-pillars {
  display: flex; align-items: center; justify-content: center; gap: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 36px;
}
.foot-pillars a { text-decoration: none; padding: 0 16px; transition: opacity .15s; }
.foot-pillars a:hover { opacity: .75; }
.foot-pillars a[data-pillar="books"]   { color: #9a7b2f; }
.foot-pillars a[data-pillar="care"]    { color: var(--accent); }
.foot-pillars a[data-pillar="connect"] { color: #b06440; }
.foot-sep { color: var(--line2); font-size: 8px; }

.foot-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 440px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-word { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot-promise { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; max-width: 320px; }
.foot-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 400; }
.foot-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 9px; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-note { font-size: 12px; color: var(--muted2); font-style: italic; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted2);
}
.foot-bottom a { color: var(--muted2); text-decoration: none; }
.foot-bottom a:hover { color: var(--accent); }
