/* Astaxanthin-Edu website UI kit — local styles
   Builds on colors_and_type.css from the system root. */

* { box-sizing: border-box; }

.ax-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.mono { font-family: var(--font-mono); }

/* ============ Buttons ============ */
.ax-btn {
  font: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 140ms var(--ease-standard), color 140ms var(--ease-standard), border-color 140ms var(--ease-standard), transform 140ms var(--ease-standard);
}
.ax-btn--primary { background: var(--salmon-400); color: #fff; }
.ax-btn--primary:hover { background: var(--salmon-500); }
.ax-btn--primary:active { background: var(--salmon-600); transform: translateY(1px); }
.ax-btn--ghost { background: transparent; color: var(--fg-1); }
.ax-btn--ghost:hover { background: var(--sand-100); }
.ax-btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.ax-btn--lg { padding: 14px 24px; font-size: 17px; border-radius: 10px; }

/* ============ Eyebrow ============ */
.ax-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--salmon-600); }
.ax-eyebrow--algae { color: var(--algae-600); }
.ax-eyebrow--invert { color: var(--salmon-200); }

.ax-link { color: var(--salmon-600); font-weight: 500; text-decoration: none; }
.ax-link:hover { color: var(--salmon-700); }

/* ============ Header ============ */
.ax-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(251, 248, 243, 0.85); border-bottom: 1px solid var(--border-subtle); }
.ax-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ax-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-1); }
.ax-header__mark { width: 36px; height: 36px; }
.ax-header__word { display: flex; flex-direction: column; line-height: 1; }
.ax-header__word .serif { font-size: 20px; }
.ax-header__suffix { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--algae-600); margin-top: 3px; }
.ax-header__nav { display: flex; gap: 28px; }
.ax-header__nav a { color: var(--fg-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.ax-header__nav a:hover { color: var(--salmon-600); }
.ax-header__actions { display: flex; gap: 8px; }

/* ============ Hero ============ */
.ax-hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.ax-hero__pattern { position: absolute; right: -120px; top: -80px; width: 520px; opacity: 0.18; pointer-events: none; }
.ax-hero__pattern img { width: 100%; }
.ax-hero__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; position: relative; }
.ax-hero__headline { font-family: var(--font-serif); font-size: clamp(40px, 5.5vw, 68px); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; margin: 14px 0 20px; color: var(--fg-1); }
.ax-hero__headline em { font-style: italic; color: var(--salmon-600); }
.ax-hero__lead { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.55; color: var(--fg-2); max-width: 560px; margin: 0 0 32px; }
.ax-hero__ctas { display: flex; gap: 12px; margin-bottom: 48px; }
.ax-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding-top: 32px; border-top: 1px solid var(--border-subtle); max-width: 540px; }
.ax-hero__stats > div { display: flex; flex-direction: column; }
.ax-hero__stats dt { font-family: var(--font-serif); font-size: 32px; font-weight: 500; color: var(--salmon-600); margin: 0; }
.ax-hero__stats dd { font-size: 13px; color: var(--fg-2); margin: 4px 0 0; }
.ax-hero__card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ax-hero__cardImg { height: 200px; background: radial-gradient(circle at 40% 40%, var(--salmon-300), var(--salmon-500) 60%, var(--salmon-700)); position: relative; }
.ax-hero__cardImg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 70%, rgba(255,255,255,0.4), transparent 40%); }
.ax-hero__cardBody { padding: 24px; }
.ax-hero__cardBody h3 { margin: 8px 0 12px; font-size: 24px; }
.ax-hero__cardBody p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }

/* ============ Intro topics ============ */
.ax-intro { padding: 16px 0 48px; }
.ax-intro__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ax-intro__card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; transition: border-color 200ms; }
.ax-intro__card:hover { border-color: var(--salmon-300); }
.ax-intro__card h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin: 10px 0 10px; line-height: 1.25; }
.ax-intro__card p { margin: 0 0 16px; font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.ax-intro__card a { color: var(--salmon-600); text-decoration: none; font-weight: 500; font-size: 14px; }

/* ============ Evidence badge ============ */
.ax-evidence { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; font-weight: 500; }
.ax-evidence--proven { background: var(--algae-100); color: var(--algae-700); }
.ax-evidence--suggested { background: #fdf3df; color: #8a5e10; }
.ax-evidence--speculative { background: var(--sand-100); color: var(--sand-700); }
.ax-evidence--info { background: var(--bg-accent); color: var(--salmon-700); }

/* ============ Section grid ============ */
.ax-grid-wrap { padding: 80px 0; background: var(--sand-100); }
.ax-grid-wrap__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ax-grid-wrap__head h2 { font-size: 44px; margin: 12px 0 14px; line-height: 1.1; }
.ax-grid-wrap__head p { color: var(--fg-2); margin: 0; }
.ax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ax-sec { background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; cursor: pointer; transition: box-shadow 200ms, border-color 200ms; display: flex; flex-direction: column; }
.ax-sec:hover { box-shadow: var(--shadow-sm); border-color: var(--salmon-300); }
.ax-sec__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ax-sec__num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--fg-3); letter-spacing: 0.08em; }
.ax-sec h3 { font-size: 22px; margin: 0 0 8px; line-height: 1.2; }
.ax-sec__lead { color: var(--fg-2); font-size: 14px; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.ax-sec__pro { background: var(--algae-50); border-left: 3px solid var(--algae-400); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-bottom: 14px; }
.ax-sec__pro p { font-size: 13px; color: var(--algae-700); margin: 4px 0 0; line-height: 1.5; }
.ax-sec__cta { font-size: 13px; color: var(--salmon-600); font-weight: 500; }

/* ============ Dose ============ */
.ax-dose { padding: 80px 0; }
.ax-dose__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.ax-dose__intro h2 { font-size: 38px; margin: 12px 0 16px; line-height: 1.15; }
.ax-dose__intro p { color: var(--fg-2); margin: 0 0 16px; }
.ax-dose__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.ax-dose__table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); padding: 14px 16px; background: var(--sand-50); border-bottom: 1px solid var(--border-subtle); }
.ax-dose__table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.ax-dose__table tr:last-child td { border-bottom: 0; }
.ax-dose__table td.mono { color: var(--salmon-700); font-weight: 500; }
.ax-dose__note { color: var(--fg-3); font-size: 13px; }

/* ============ Studies ============ */
.ax-studies { padding: 80px 0; background: var(--algae-700); color: var(--sand-50); }
.ax-studies__head { margin-bottom: 32px; }
.ax-studies__head .ax-eyebrow { color: var(--salmon-300); }
.ax-studies__head h2 { font-size: 38px; margin: 12px 0 0; color: #fff; }
.ax-studies__list { list-style: none; padding: 0; margin: 0; }
.ax-study { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ax-study:last-child { border-bottom: 0; }
.ax-study__year { color: var(--salmon-300); font-size: 14px; }
.ax-study__body h4 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: #fff; }
.ax-study__meta { font-size: 13px; color: rgba(255,255,255,0.6); }
.ax-study__link { color: var(--salmon-300); text-decoration: none; font-size: 13px; font-weight: 500; }
.ax-study .ax-evidence--proven { background: rgba(95, 147, 89, 0.3); color: var(--algae-200); }
.ax-study .ax-evidence--suggested { background: rgba(201, 138, 26, 0.25); color: #f5d490; }

/* ============ Materials ============ */
.ax-mat { padding: 80px 0; }
.ax-mat__head { margin-bottom: 32px; }
.ax-mat__head h2 { font-size: 38px; margin: 12px 0 0; }
.ax-mat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ax-mat__card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; text-decoration: none; color: var(--fg-1); transition: box-shadow 200ms, border-color 200ms; }
.ax-mat__card:hover { box-shadow: var(--shadow-sm); border-color: var(--salmon-300); }
.ax-mat__card h4 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; }
.ax-mat__meta { font-size: 12px; color: var(--fg-3); flex: 1; }
.ax-mat__cta { font-size: 13px; color: var(--salmon-600); font-weight: 500; }

/* ============ Footer ============ */
.ax-footer { background: var(--ink); color: var(--sand-200); padding: 80px 0 32px; }
.ax-footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 96px; }
.ax-footer__newsletter h3 { font-size: 32px; color: #fff; margin: 12px 0 14px; line-height: 1.15; }
.ax-footer__newsletter p { color: var(--sand-300); max-width: 380px; }
.ax-footer__form { display: flex; gap: 8px; margin-top: 16px; max-width: 420px; }
.ax-footer__form input { flex: 1; padding: 12px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font: inherit; font-size: 15px; }
.ax-footer__form input:focus { outline: none; border-color: var(--salmon-400); }
.ax-footer__done { color: var(--algae-200); font-style: italic; margin-top: 16px; }
.ax-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ax-footer__cols h5 { color: #fff; margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.ax-footer__cols a { display: block; color: var(--sand-300); text-decoration: none; font-size: 14px; padding: 4px 0; cursor: pointer; }
.ax-footer__cols a:hover { color: var(--salmon-300); }
.ax-footer__bottom { display: flex; justify-content: space-between; padding-top: 32px; margin-top: 64px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: var(--sand-400); }

/* ============ Article overlay (stub) ============ */
.ax-article { position: fixed; inset: 0; background: rgba(26,24,18,0.55); backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 64px 24px; overflow-y: auto; }
.ax-article__panel { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; padding: 48px; box-shadow: var(--shadow-lg); }
.ax-article__close { float: right; background: none; border: 0; cursor: pointer; font-size: 24px; color: var(--fg-3); }
.ax-article h1 { font-size: 44px; margin: 16px 0 16px; }
.ax-article p { color: var(--fg-2); line-height: 1.7; }

/* ============ Minimal Section Card (pro overview gridy) ============ */
.ax-sec--minimal {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 200ms, border-color 200ms, transform 200ms;
}
.ax-sec--minimal:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--salmon-300);
  transform: translateY(-2px);
}
.ax-sec--minimal .ax-sec__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--salmon-300), var(--algae-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ax-sec--minimal .ax-sec__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ax-sec--minimal .ax-sec__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.ax-sec--minimal h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
  flex: 1;
}
.ax-sec--minimal .ax-sec__cta {
  font-size: 13px;
  color: var(--salmon-600);
  font-weight: 500;
}
.ax-sec--minimal:hover .ax-sec__cta {
  color: var(--salmon-700);
}

/* Refactor B: <p> uvnitř flex group má default margin → reset */
.wp-block-group.is-layout-flex > .ax-sec__num,
.wp-block-group.is-layout-flex > .ax-evidence,
.wp-block-group.is-layout-flex > .ax-eyebrow {
  margin: 0;
}
