/* Mydeas brand overrides.
 *
 * Loaded in base.html AFTER Tailwind so these win cascade ties. Keep this
 * file small: most styling lives in Tailwind utility classes. This file
 * holds cross-cutting brand rules and component shorthands that are
 * easier to read as real CSS than as utility chains.
 */

/* Brand tokens. These are defined twice on purpose — here, and as Tailwind
 * theme values in theme/static_src/tailwind.config.js. Change both together.
 *
 * Contrast, measured against the cream page (#FDFBF7):
 *   --ink-600 body text      8.0:1   AA + AAA
 *   --ink-500 small meta     5.6:1   AA
 *   --ink-400                3.0:1   borders/icons ONLY, never copy
 *   --accent  honey          2.6:1   fills/borders/tiles ONLY, never text
 *   --accent-ink             5.7:1   the text-safe honey
 *   --brand-deep             7.1:1   links and eyebrows
 *   --brand-blue             3.4:1   large text and fills only
 */
:root {
  --brand-blue: #1A8FE3;
  /* White-text-safe blue: 4.7:1. --brand-blue is 3.45:1 and must never
   * sit behind white copy below 24px. */
  --brand-blue-strong: #1477C9;
  --brand-sky: #7CC4F5;
  --brand-deep: #0052B4;
  --brand-navy: #1A2744;
  --brand-ink:  #0F1B30;
  --brand-mist: #EAF1F8;

  /* Cream page behind white cards. */
  --page: #FDFBF7;

  /* Honey accent — warmth on the content, never on the actions. */
  --accent:      #D98B33;
  --accent-ink:  #8F5814;
  --accent-soft: #FBF0DE;

  /* Warm neutral ramp. */
  --ink-50:  #FAF7F1;
  --ink-100: #F1ECE3;
  --ink-200: #E3DBCE;
  --ink-300: #CFC5B4;
  --ink-400: #9C9284;
  --ink-500: #6F6759;
  --ink-600: #574F45;
  --ink-700: #423C34;
}

body { background: var(--page); }

html {
  font-family: "Nunito", "Quicksand", "Segoe UI", system-ui, sans-serif;
  color: var(--brand-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4) {
  font-family: "Nunito", "Poppins", sans-serif;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}

:where(a) { color: var(--brand-deep); }
:where(a:hover) { color: var(--brand-blue); }

::selection {
  background: var(--brand-mist);
  color: var(--brand-navy);
}

/* Component shorthands (also defined in Tailwind components layer). */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-strong) 0%, var(--brand-deep) 100%);
  box-shadow: 0 10px 30px -12px rgba(0, 82, 180, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -12px rgba(0, 82, 180, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--ink-200);
  transition: border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--brand-mist);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(40,30,18,0.04), 0 4px 12px rgba(40,30,18,0.06);
  border: 1px solid var(--ink-100);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
/* Hover only where a hover exists. On touch screens a tap leaves :hover
 * stuck, so cards would sit lifted after being touched — which reads as the
 * page resizing itself. No transform at all on touch. */
@media (hover: hover) {
  .card:hover {
    box-shadow: 0 10px 30px -12px rgba(0,82,180,0.25);
    border-color: var(--brand-mist);
    transform: translateY(-2px);
  }
}

/* Image-first cards (Launch 1.3 W-B). The media block bleeds to the card's
 * edges by cancelling the card padding, so the picture reads as the card's
 * face rather than a thumbnail inside it. `overflow: hidden` on the host
 * clips the image to the card's radius. Fixed aspect so a grid of mixed
 * photos and placeholders stays even. */
.card-media-host { overflow: hidden; }
.card-media {
  position: relative;
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 4 / 3;
  /* Flex items default to min-height:auto, which lets a loaded image's
   * natural height push the box past its aspect ratio — in Safari every
   * lazy-loaded card grew as its picture arrived while scrolling. Pin the
   * box and take the image out of flow so its size can never contribute. */
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}
/* One column on a phone, so a 4:3 tile was most of the screen per card.
 * A shorter band keeps the picture and gets the title above the fold. */
@media (max-width: 639px) {
  .card-media { aspect-ratio: 16 / 9; }
  .card-media-mark { font-size: 2.25rem; }
}
/* No zoom on hover: the picture changing size under the cursor read as the
 * card resizing itself. The image is static; only the shadow responds. */
.card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.7), transparent 60%),
    var(--accent-soft);
}
.card-media-mark { font-size: 3rem; line-height: 1; opacity: 0.85; }
/* Card host: a positioning context for the staff-only edit pencil. Flex so
 * the card keeps filling the grid cell exactly as it did unwrapped. */
.card-host { position: relative; display: flex; }
.card-host > .card { flex: 1 1 auto; min-width: 0; }
.card-edit {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-deep);
  border: 1px solid var(--ink-100);
  box-shadow: 0 1px 3px rgba(40,30,18,0.12);
  transition: background .15s ease, color .15s ease;
}
.card-edit svg { width: 1rem; height: 1rem; }
.card-edit:hover { background: var(--brand-deep); color: #fff; }

.card-length {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-500);
  white-space: nowrap;
}

/* The evidence line under an idea's hook. */
.idea-provenance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-600);
}
.idea-provenance svg { flex: 0 0 auto; margin-top: 0.2rem; }
.idea-provenance strong { color: var(--brand-navy); font-weight: 700; }

/* A quick idea's whole body: lead size, a little more air. */
.idea-quick { margin-top: 0.5rem; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-deep);
}

.section-eyebrow-invert { color: var(--brand-sky); }

.brand-gradient-text {
  background: linear-gradient(135deg, var(--brand-blue-strong) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header "Categories" disclosure. CSS-only <details> menu — six categories
 * don't fit as flat nav links, and this needs no JS. */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.nav-menu[open] > summary::after { transform: translateY(-2px) rotate(180deg); }

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  min-width: 15rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  box-shadow: 0 12px 40px -12px rgba(40, 30, 18, 0.22);
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu-item:hover {
  background: var(--brand-mist);
  color: var(--brand-deep);
}

/* Mobile menu. The panel is absolutely positioned against the sticky header
 * (position:sticky is a positioned ancestor), so it spans the full width
 * rather than hanging off the button. */
.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target. */
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border-radius: 0.75rem;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile[open] > summary { background: var(--brand-mist); color: var(--brand-deep); }

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  padding: 0.75rem 1.5rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 20px 40px -20px rgba(40, 30, 18, 0.26);
}

.nav-mobile-item {
  display: flex;
  align-items: center;
  /* Comfortable tap target, per WCAG 2.5.8. */
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-50);
}
.nav-mobile-item:hover { color: var(--brand-deep); }

.nav-mobile-heading {
  margin-top: 0.875rem;
  padding: 0.5rem 0.25rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-400);
}

/* "+N more" tag disclosure on the library page. */
.tag-more { display: inline-block; }
.tag-more > summary {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px dashed var(--ink-300);
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.tag-more > summary::-webkit-details-marker { display: none; }
.tag-more > summary:hover { border-color: var(--brand-blue); color: var(--brand-deep); }
.tag-more[open] > summary { background: var(--brand-mist); border-style: solid; color: var(--brand-deep); }

.tag-more-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
}

/* Category card mark — the emoji tile on category cards. */
.cat-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--accent-soft);
  font-size: 1.375rem;
  line-height: 1;
}

/* ── Idea body ────────────────────────────────────────────────────────
 * The authoring format guarantees Scenario / Tools / Steps / Outcome, so each
 * slot gets a treatment that matches what it is for: the scenario reads like a
 * scene, tools like a shopping list, steps like something you follow with a
 * thumb, the outcome like a result. Written as plain CSS rather than utility
 * chains because the inner HTML comes from Markdown and can't carry classes.
 */
.idea-prose {
  color: var(--ink-600);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.idea-prose > * + * { margin-top: 1rem; }
.idea-prose strong { color: var(--brand-navy); font-weight: 700; }
.idea-prose a { text-decoration: underline; text-underline-offset: 2px; }
.idea-prose em { color: var(--ink-600); }

.idea-prose-lead { font-size: 1.1875rem; line-height: 1.7; color: var(--ink-700); }

.idea-slot { margin-top: 2.5rem; }

.idea-slot-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.idea-slot-label {
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-ink);
}

/* Scenario — the moment of friction. Set apart, not shouted. */
.idea-scenario {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(251, 240, 222, 0.2) 100%);
}

/* Tools — a list you can shop from. */
.idea-tools .idea-prose ul { list-style: none; padding: 0; margin: 0; }
.idea-tools .idea-prose ul li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.75rem;
  border-bottom: 1px solid var(--ink-100);
}
.idea-tools .idea-prose ul li:last-child { border-bottom: 0; }
.idea-tools .idea-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.375rem;
  top: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

/* Steps — numbered discs you can follow with a thumb. */
.idea-steps .idea-prose ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.idea-steps .idea-prose ol > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 1.125rem 2.75rem;
}
.idea-steps .idea-prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 9999px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
}
.idea-steps .idea-prose ol > li:last-child { padding-bottom: 0; }

/* Outcome — the payoff. */
.idea-outcome {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
}

/* Credit / source line after the trailing rule. */
.idea-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-100);
  font-size: 0.9375rem;
  color: var(--ink-500);
}
.idea-note em { font-style: italic; }

/* ── Studio ───────────────────────────────────────────────────────────
 * Staff workspace. Plain CSS because these style Django-rendered form
 * widgets, which can't carry Tailwind classes without a form library.
 */
.studio-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-600);
  text-decoration: none;
}
.studio-tab:hover { background: var(--ink-50); color: var(--brand-deep); }
.studio-tab.is-active { background: var(--brand-navy); color: #fff; }

.studio-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-navy);
}
.studio-help { margin-top: 0.375rem; font-size: 0.75rem; color: var(--ink-500); }
.studio-error { margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: #B3261E; }

/* Every Django-rendered input, styled once. */
.studio-label + input[type="text"],
.studio-label + input[type="password"],
.studio-label + input[type="email"],
.studio-label + input[type="url"],
.studio-label + textarea,
.studio-label + select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ink-200);
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--brand-ink);
}
.studio-label + textarea { line-height: 1.6; resize: vertical; }
.studio-label + textarea.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
}
.studio-label + input:focus,
.studio-label + textarea:focus,
.studio-label + select:focus {
  outline: 0;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-mist);
}

.studio-flash {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.studio-flash-success { background: #ECFDF3; border-color: #ABEFC6; color: #14663B; }
.studio-flash-warning { background: var(--accent-soft); border-color: #F0D9B0; color: var(--accent-ink); }
.studio-flash-error   { background: #FEF3F2; border-color: #FECDC9; color: #B3261E; }
.studio-flash-info    { background: var(--brand-mist); border-color: #CFE2F5; color: var(--brand-deep); }

.studio-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.studio-pill-draft     { background: var(--ink-100); color: var(--ink-600); }
.studio-pill-published { background: #ECFDF3; color: #14663B; }
.studio-pill-archived  { background: var(--accent-soft); color: var(--accent-ink); }

button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Big search field used on the homepage hero and the search page. */
.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--ink-200);
  box-shadow: 0 10px 40px -18px rgba(40, 30, 18, 0.3);
}
.search-field:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 10px 40px -14px rgba(0, 82, 180, 0.4);
}
.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  padding: 0.5rem 0;
  color: var(--brand-ink);
}
.search-field input::placeholder { color: var(--ink-400); }

/* Numbered step markers on the "how it works" strip. */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;   /* must not shrink when it sits next to flowing text */
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
}

.mesh-bg {
  background-image:
    radial-gradient(1200px 600px at 10% -10%, var(--brand-mist) 0%, transparent 62%),
    radial-gradient(900px 520px at 100% 0%, var(--accent-soft) 0%, transparent 58%);
}

/* Studio image rows on the idea edit page. */
.studio-image-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 0.75rem;
}
.studio-image-thumb {
  width: 6rem;
  height: 6rem;
  flex: none;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--ink-200);
}
.studio-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Public gallery on an idea page. A figure per image so the caption is
   associated with it for assistive tech, not just placed underneath. */
.idea-gallery {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .idea-gallery-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.idea-gallery figure { margin: 0; }
.idea-gallery img {
  /* width/height attributes from IdeaImage reserve the space before the
   * file arrives, so a lazy-loaded second photo does not shove the text. */
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.idea-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}

/* Where-to-get-it links, shown inside the "What you need" slot. */
.idea-links { margin-top: 1.25rem; }
.idea-links-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.625rem;
}
.idea-links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.idea-link {
  display: block;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--ink-600);
}
.idea-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.idea-link-label {
  display: block;
  font-weight: 700;
  color: var(--brand-deep);
}
.idea-link-host {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--ink-500);
}
.idea-link-note { display: block; margin-top: 0.25rem; font-size: 0.875rem; }
.idea-link-paid {
  margin-left: 0.375rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.idea-links-disclosure {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* Side-by-side panes on the redraft review page. */
.redraft-pane {
  white-space: pre-wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-600);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 0.625rem;
  padding: 0.875rem;
  max-height: 28rem;
  overflow: auto;
}
.redraft-pane-new { background: var(--accent-soft); border-color: #F0D9B0; }

/* Curated idea-to-idea connections on an idea page. */
.idea-connection {
  display: block;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--accent);
  border-radius: 0.75rem;
  text-decoration: none;
}
.idea-connection:hover { border-color: var(--accent); background: var(--accent-soft); }
.idea-connection-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-500);
}
.idea-connection-title {
  display: block;
  margin-top: 0.125rem;
  font-weight: 800;
  color: var(--brand-navy);
}
.idea-connection-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-600);
}

/* Legal pages — markdown body from apps/pages/content/*.md. Headings need
 * explicit size because brand.css :where(h1,h2,h3,h4) sets color only. */
.legal-prose {
  color: var(--ink-600);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.legal-prose > * + * { margin-top: 1rem; }
.legal-prose h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose strong { color: var(--brand-navy); font-weight: 700; }
.legal-prose a { text-decoration: underline; text-underline-offset: 2px; }
.legal-prose ul,
.legal-prose ol {
  padding-left: 1.5rem;
}
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li { margin-top: 0.4rem; }
