@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

/* ──────────────────────────────────────────────────────
   danielsogbey.com — academic research portfolio
   Calm, content-first, no glow / blur / gradients.
   ────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #171714;
  --text-secondary: #3e413f;
  --text-muted: #6a6d6a;
  --border: #dad6ce;
  --border-strong: #b7b2a8;
  --accent: #8a2a2a; /* muted, restrained */
  --max-width: 760px;
  --max-width-wide: 960px;
  --font-sans:
    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'kern', 'liga', 'calt';
  background:
    radial-gradient(circle at 8% -2%, #ece8df 0%, transparent 48%),
    radial-gradient(circle at 100% 8%, #f0ece3 0%, transparent 42%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
}

p a,
.legal__body a,
.research-section__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p a:hover,
.legal__body a:hover,
.research-section__body a:hover {
  color: #5e1c1c;
}

/* ── Layout ───────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ── Header ───────────────────────────────────────── */

.header {
  background: color-mix(in srgb, var(--bg) 92%, #ffffff 8%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.header__nav a:hover {
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  padding: 92px 0 56px;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.hero__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text);
  max-width: 640px;
}

.hero__sub,
.hero__statement {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: #2c2c2c;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--text);
}

/* ── Section ─────────────────────────────────────── */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section__head {
  margin-bottom: 28px;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--text);
}

.section__sub {
  margin-top: 8px;
  color: var(--text-secondary);
  max-width: 580px;
  font-size: 0.9375rem;
}

/* legacy small label used on some pages */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Research list (lab-page style) ──────────────── */

.research-list {
  display: flex;
  flex-direction: column;
}

.research-item {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.research-item:first-child {
  padding-top: 0;
}

.research-item:last-child {
  border-bottom: none;
}

.research-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.research-item__status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
}

.research-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.35;
}

.research-item:hover .research-item__title {
  color: var(--accent);
}

.research-item__question {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.research-item__summary {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.research-item__tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--surface) 80%, var(--bg) 20%);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  letter-spacing: 0.01em;
}

/* ── Filters ─────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filters__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-chip {
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}

@media (hover: hover) {
  .filter-chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
  }
}

.filter-chip:focus {
  outline: none;
}

.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-chip--active {
  color: var(--text);
  background: transparent;
  border-color: var(--text);
  font-weight: 600;
}

.research-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Research detail page ────────────────────────── */

.research-detail {
  padding: 48px 0 96px;
}

.research-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.research-detail__back:hover {
  color: var(--text);
}

.research-detail__header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.research-detail__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.research-detail__title {
  font-size: clamp(1.625rem, 3.4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.research-detail__question {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.research-detail__meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-detail__links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border: none;
  background: none;
  padding: 0;
}

.link-btn:hover {
  color: #5e1c1c;
}

/* Detail body sections — paper-like */

.research-section {
  margin-bottom: 36px;
}

.research-section__heading {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
}

.research-section__body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.research-section__body p {
  margin-bottom: 12px;
}

.research-section__body p:last-child {
  margin-bottom: 0;
}

.research-section__body ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.research-section__body li {
  margin-bottom: 6px;
}

.research-section__body strong {
  color: var(--text);
  font-weight: 600;
}

.results-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
  color: var(--text-secondary);
}

.results-list li {
  margin-bottom: 8px;
  line-height: 1.65;
  font-size: 1rem;
}

.results-list li strong {
  color: var(--text);
  font-weight: 600;
}

.research-principles {
  display: grid;
  gap: 18px;
}

.research-principle {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.6vw, 1.64rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.research-principle:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.diagram-block {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
}

.media-note {
  margin-top: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Research canvas (wall-hung framed image) ───── */

/* The article container becomes a positioning context so the canvas
   can float in the empty margin to the right of the text column. */
.research-detail > .container {
  position: relative;
}

.research-canvas {
  position: absolute;
  top: 56px;
  /* Sit just outside the right edge of the readable column,
     in the empty page margin. */
  left: calc(100% + 32px);
  width: clamp(220px, 22vw, 300px);
  margin: 0;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.research-canvas__hang {
  position: relative;
  display: inline-block;
  transform: rotate(-2.4deg);
  transform-origin: 50% 0%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22))
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
  will-change: transform;
}

.research-canvas__hang:hover {
  transform: rotate(0deg);
}

.research-canvas__nail {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 28%,
    #d6d6d6 0%,
    #6e6e6e 55%,
    #1a1a1a 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.research-canvas__wire {
  position: absolute;
  top: -22px;
  left: 8%;
  right: 8%;
  width: 84%;
  height: 26px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.research-canvas__frame {
  background: #1a1a1a;
  padding: 6px;
  border-radius: 2px;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.research-canvas__inner {
  background: #fafaf7;
  padding: 12px 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.research-canvas__img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

.research-canvas__caption {
  text-align: center;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
  max-width: 100%;
  line-height: 1.5;
}

/* Hide entirely on viewports too narrow to fit it in the right margin
   without overlapping content (e.g. small laptops). */
@media (max-width: 1280px) {
  .research-canvas {
    display: none;
  }
}

/* On mobile, show it at the bottom of the article instead. */
@media (max-width: 720px) {
  .research-detail > .container {
    display: flex;
    flex-direction: column;
  }
  .research-canvas {
    display: flex;
    position: static;
    width: min(320px, 78vw);
    margin: 16px auto 32px;
    padding-top: 28px;
    order: 99; /* push to the very end regardless of source order */
  }
  .research-canvas__hang {
    transform: rotate(-1.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-canvas__hang {
    transform: none;
    transition: none;
  }
}

/* ── About page / section ───────────────────────── */

.about {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.about__name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.about__role {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.about__desc {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.75;
}

.about__contact {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.about__contact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Projects page / cards (de-emphasized) ──────── */

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.project-row:first-child {
  padding-top: 0;
}

.project-row:last-child {
  border-bottom: none;
}

.project-row__name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.project-row__desc {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.project-row__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

.project-row__links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-row__links a:hover {
  color: var(--accent);
}

/* Backwards-compatible product-card (legal pages) */

.products {
  padding: 56px 0;
}

.product-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}

.product-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.product-card__desc {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.product-card__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-card__links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product-card__links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ── Footer ───────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Legal pages ─────────────────────────────────── */

.legal {
  padding: 56px 0 80px;
}

.legal__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--text);
}

.legal__body {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
}

.legal__body h2 {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal__body p {
  margin-bottom: 14px;
}

.legal__body ul {
  margin-bottom: 14px;
  padding-left: 22px;
}

.legal__body li {
  margin-bottom: 6px;
}

/* ── Delete account form (basic) ─────────────────── */

.delete-form {
  margin-top: 32px;
  max-width: 420px;
}

.delete-form__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}

.delete-form__input::placeholder {
  color: var(--text-muted);
}

.delete-form__input:focus {
  border-color: var(--text);
}

.delete-form__btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.delete-form__btn:hover {
  background: #5e1c1c;
}

.delete-form__message {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* ── Marketing pages (basic) ─────────────────────── */

.marketing-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketing-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.marketing-section--cta {
  text-align: center;
}

.marketing-section--cta .marketing-cta {
  justify-content: center;
}

.marketing-cta__heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

.marketing-bullets {
  list-style: disc;
  padding-left: 22px;
}

.marketing-bullets li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.marketing-example {
  margin-top: 18px;
}

.marketing-example__flow {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.marketing-example__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.marketing-example__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.marketing-example__text {
  font-size: 0.9375rem;
  color: var(--text);
}

/* ── WeDoo pages keep their own scoped theme ─────── */

.wedoo-page {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #f7faf9;
  color: #10211d;
}

.wedoo-page .container {
  max-width: 800px;
}

.wedoo-page .header {
  background: #f7faf9;
  border-bottom: 1px solid #dbe7e3;
}

.wedoo-page .header__logo,
.wedoo-page .legal__body h2,
.wedoo-page .legal__body strong {
  color: #10211d;
}

.wedoo-page .header__nav a,
.wedoo-page .legal__body,
.wedoo-page .footer__text,
.wedoo-page .footer__links a,
.wedoo-page .delete-form__hint,
.wedoo-page .delete-form__note,
.wedoo-page .delete-form__helper,
.wedoo-page .delete-form__counter {
  color: #4b635d;
}

.wedoo-page .header__nav a:hover,
.wedoo-page .footer__links a:hover,
.wedoo-page .legal__body a,
.wedoo-page .delete-form__message,
.wedoo-page .delete-form__counter--limit {
  color: #10a37f;
}

.wedoo-page .legal {
  padding: 64px 0 56px;
}

.wedoo-page .legal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 163, 127, 0.08);
  color: #0b7a5d;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wedoo-page .legal__title {
  margin-bottom: 18px;
  color: #10211d;
  line-height: 1.1;
}

.wedoo-page .legal__lede {
  margin-bottom: 24px;
  font-size: 1.0625rem;
  color: #36504a;
  line-height: 1.7;
  max-width: 680px;
}

.wedoo-page .legal__card,
.wedoo-page .delete-form {
  background: #ffffff;
  border: 1px solid #dbe7e3;
  border-radius: 8px;
}

.wedoo-page .legal__card {
  padding: 24px;
}

.wedoo-page .legal__body {
  max-width: none;
}

.wedoo-page .legal__body h2 {
  margin-top: 26px;
  margin-bottom: 8px;
}

.wedoo-page .legal__body h2:first-child {
  margin-top: 0;
}

.wedoo-page .legal__body ul {
  padding-left: 22px;
}

.wedoo-page .legal__body li {
  margin-bottom: 8px;
}

.wedoo-page .wedoo-highlight {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.wedoo-page .wedoo-highlight__item {
  padding: 16px 18px;
  border-radius: 8px;
  background: #ecf6f3;
  border: 1px solid #cbe1da;
}

.wedoo-page .wedoo-highlight__item h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #10211d;
}

.wedoo-page .wedoo-highlight__item p {
  margin: 0;
  color: #45605a;
}

.wedoo-page .delete-form {
  max-width: 100%;
  margin-top: 24px;
  padding: 24px;
}

.wedoo-page .delete-form--warning {
  border-color: #f0c7c4;
  background: #fff8f8;
}

.wedoo-page .delete-form__grid {
  display: grid;
  gap: 14px;
}

.wedoo-page .delete-form__field {
  display: grid;
  gap: 6px;
}

.wedoo-page .delete-form__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wedoo-page .delete-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #10211d;
}

.wedoo-page .delete-form__counter {
  font-size: 0.78rem;
  font-weight: 500;
}

.wedoo-page .delete-form__input,
.wedoo-page .delete-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #10211d;
  background: #ffffff;
  border: 1px solid #cddbd6;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.wedoo-page .delete-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.wedoo-page .delete-form__input::placeholder,
.wedoo-page .delete-form__textarea::placeholder {
  color: #79908a;
}

.wedoo-page .delete-form__input:focus,
.wedoo-page .delete-form__textarea:focus {
  border-color: #10a37f;
}

.wedoo-page .delete-form__helper {
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wedoo-page .delete-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.wedoo-page .delete-form__chip {
  padding: 5px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #31524a;
  background: #ecf6f3;
  border: 1px solid #cbe1da;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.wedoo-page .delete-form__chip:hover,
.wedoo-page .delete-form__chip:focus-visible {
  border-color: #10a37f;
  color: #0b7a5d;
  outline: none;
}

.wedoo-page .delete-form__chip--active {
  background: #d9efe7;
  border-color: #a9d3c6;
  color: #0b7a5d;
}

.wedoo-page .delete-form__hint,
.wedoo-page .delete-form__note {
  font-size: 0.875rem;
}

.wedoo-page .delete-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: #10a37f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.wedoo-page .delete-form__btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.wedoo-page .delete-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: wedoo-spin 0.8s linear infinite;
}

.wedoo-page .delete-form__message {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.wedoo-page .footer {
  border-top: 1px solid #dbe7e3;
  padding: 28px 0 40px;
  text-align: center;
}

@keyframes wedoo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 720px) {
  .header .container {
    min-height: 56px;
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .header__nav a {
    font-size: 0.8125rem;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__photo {
    width: 132px;
    height: 132px;
    order: -1;
  }

  .section,
  .about,
  .marketing-section,
  .products {
    padding: 40px 0;
  }

  .research-detail {
    padding: 32px 0 64px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-grid__photo {
    max-width: 200px;
  }

  .product-card {
    padding: 20px;
  }

  .product-card__actions {
    flex-direction: column;
  }

  .product-card__actions .btn,
  .marketing-cta .btn {
    width: 100%;
    text-align: center;
  }
}
