/* Resurse FNFM — paleta „Câmp” (aceeași ca pe fnf.md) */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700;1,8..60,400&display=swap");

:root {
  --fnfm-paper: #F6F1E6;
  --fnfm-paper-2: #FBF8F0;
  --fnfm-ink: #17241B;
  --fnfm-muted: #55645A;
  --fnfm-green: #2D5A3D;
  --fnfm-green-dark: #1E3D2A;
  --fnfm-gold: #E0A93B;
  --fnfm-line: #D8D0BD;
  --fnfm-tint: #EDF3EA;

  --md-primary-fg-color: var(--fnfm-green);
  --md-primary-fg-color--light: #4E7A5D;
  --md-primary-fg-color--dark: var(--fnfm-green-dark);
  --md-accent-fg-color: #B07D16;
  --md-typeset-a-color: var(--fnfm-green);
  --md-default-bg-color: var(--fnfm-paper);
  --md-default-fg-color: var(--fnfm-ink);
  --md-footer-bg-color: var(--fnfm-ink);
  --md-footer-bg-color--dark: #0F1912;
}

/* Typography */
.md-typeset { font-size: .9rem; line-height: 1.7; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--fnfm-ink);
  font-weight: 700;
  letter-spacing: 0;
}
.md-typeset h1 { font-size: 2.6em; line-height: 1.05; margin-bottom: .3em; }
.md-typeset h2 { font-size: 1.55em; margin-top: 2em; }
.md-typeset h3 { font-size: 1.2em; }
.md-typeset h1 + p em { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15em; color: var(--fnfm-muted); }
.md-header__topic:first-child { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; }
.md-header, .md-tabs { background-color: var(--fnfm-green-dark); }
.md-tabs__link--active, .md-tabs__link:hover { color: var(--fnfm-gold); }

/* Tables */
.md-typeset table:not([class]) { font-size: .85em; border: 1px solid var(--fnfm-line); background: #fff; }
.md-typeset table:not([class]) th { background: var(--fnfm-tint); color: var(--fnfm-green-dark); }
.md-typeset table:not([class]) td:first-child strong { color: var(--fnfm-green-dark); }

/* Quotes and "De reținut" */
.md-typeset blockquote { border-left-color: var(--fnfm-gold); color: var(--fnfm-ink); background: var(--fnfm-paper-2); padding: .6em 1em; }
.md-typeset .admonition.tip, .md-typeset details.tip { border-color: var(--fnfm-green); }
.md-typeset .tip > .admonition-title { background-color: var(--fnfm-tint); }
.md-typeset .tip > .admonition-title::before { background-color: var(--fnfm-green); }

/* Images */
.md-typeset img { border-radius: 10px; }

/* Material page info bar */
.fnfm-info { background: #fff; border: 1px solid var(--fnfm-line); border-top: 5px solid var(--fnfm-gold); border-radius: 12px; padding: 1em 1.2em; margin: 1.2em 0 2em; }
.fnfm-info__tags { display: flex; flex-wrap: wrap; gap: .4em; }
.fnfm-info__meta { color: var(--fnfm-muted); font-size: .85em; margin: .6em 0 .8em; }
.fnfm-tag { background: var(--fnfm-tint); color: var(--fnfm-green-dark); border-radius: 6px; padding: .15em .6em; font-size: .78em; font-weight: 600; }
.fnfm-tag--tip { background: var(--fnfm-green); color: #FBF8F0; text-transform: uppercase; letter-spacing: .04em; }
.md-typeset .md-button { border-radius: 8px; margin: .2em .3em .2em 0; font-size: .8em; padding: .55em 1.1em; }

/* Home: hero */
.fnfm-hero { background: var(--fnfm-green-dark); color: #E7EFE4; }
.fnfm-hero__inner { display: flex; flex-wrap: wrap; gap: 2.4rem; align-items: center; padding: 3.2rem .8rem 3.6rem; }
.fnfm-hero__text { flex: 999 1 26rem; min-width: 0; }
.fnfm-hero__eyebrow { color: var(--fnfm-gold); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.fnfm-hero h1 { font-family: "Source Serif 4", Georgia, serif; font-size: 2.6rem; line-height: 1.05; color: #FBF8F0; margin: 0 0 1rem; font-weight: 700; }
.fnfm-hero__lead { font-size: .95rem; line-height: 1.6; color: #C9D4CB; max-width: 34rem; margin: 0 0 1.4rem; }
.fnfm-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 38rem; }
.fnfm-hero__search { flex: 1 1 18rem; display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--fnfm-muted); border-radius: 10px; padding: 0 1rem; min-height: 2.8rem; font-size: .85rem; cursor: text; }
.fnfm-hero__search .twemoji svg { fill: var(--fnfm-green); width: 1.1rem; }
.fnfm-hero__ask { display: flex; align-items: center; background: var(--fnfm-gold); color: var(--fnfm-ink) !important; font-weight: 600; border-radius: 10px; padding: 0 1.2rem; min-height: 2.8rem; font-size: .85rem; }
.fnfm-hero__chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1.2rem 0 0; font-size: .75rem; color: #B7C4B9; }
.fnfm-hero__chips a { color: #E7EFE4; border: 1px solid #4E6B57; border-radius: 999px; padding: .45rem .8rem; }
.fnfm-hero__chips a:hover { border-color: var(--fnfm-gold); color: var(--fnfm-gold); }
.fnfm-hero__demo { flex: 1 1 16rem; min-width: 0; background: var(--fnfm-paper-2); color: var(--fnfm-ink); border-radius: 16px; padding: 1.2rem; box-shadow: 0 1.2rem 2.4rem rgba(0,0,0,.25); }
.fnfm-hero__demo-head { font-weight: 600; margin: 0 0 .8rem; display: flex; }
.fnfm-hero__demo-head span { margin-left: auto; font-weight: 400; font-size: .75em; color: var(--fnfm-muted); }

/* Chat bubbles (home demo + assistant page) */
.fnfm-bubble { margin: 0 0 .7rem; font-size: .85rem; line-height: 1.55; }
.fnfm-bubble--q { background: var(--fnfm-tint); border-radius: 12px 12px 2px 12px; padding: .6rem .9rem; margin-left: 15%; }
.fnfm-hero__src { font-size: .75rem; color: var(--fnfm-muted); border-top: 1px solid var(--fnfm-line); padding-top: .6rem; margin: .4rem 0 0; }
.fnfm-chat { background: #fff; border: 1px solid var(--fnfm-line); border-radius: 16px; padding: 1.4rem; margin: 1.4rem 0; }
.fnfm-chat__form { display: flex; gap: .5rem; margin-top: 1.2rem; }
.fnfm-chat__form input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--fnfm-line); border-radius: 10px; padding: .7rem .9rem; font: inherit; background: var(--fnfm-paper-2); }

/* Home: cards (a Markdown list styled as cards) and steps */
.md-typeset .fnfm-cards ul { list-style: none; margin: 1rem 0 2rem !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.md-typeset .fnfm-cards li { margin: 0 !important; padding: 0; }
.md-typeset .fnfm-cards li::marker { content: none; }
.md-typeset .fnfm-cards li a { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid var(--fnfm-line); border-top: 5px solid var(--fnfm-green); border-radius: 12px; padding: 1rem; color: var(--fnfm-ink); transition: transform .15s, box-shadow .15s; }
.md-typeset .fnfm-cards li a:hover { transform: translateY(-2px); box-shadow: 0 .6rem 1.2rem rgba(23,36,27,.12); color: var(--fnfm-ink); }
.fnfm-card__tip { font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fnfm-green); }
.fnfm-card__titlu { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.fnfm-card__latin { font-family: "Source Serif 4", Georgia, serif; font-style: italic; color: var(--fnfm-muted); font-size: .8rem; }
.fnfm-card__rol { font-size: .75rem; line-height: 1.45; }
.fnfm-card__meta { margin-top: auto; padding-top: .6rem; border-top: 1px solid #EDE6D6; font-size: .7rem; color: var(--fnfm-muted); }
.md-typeset .fnfm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.2rem; margin: 1rem 0 1.6rem; }
.md-typeset .fnfm-steps > div { background: var(--fnfm-paper-2); border: 1px solid var(--fnfm-line); border-radius: 12px; padding: 1rem 1.1rem; }

@media screen and (max-width: 44.9375em) {
  .fnfm-hero h1 { font-size: 1.9rem; }
  .md-typeset h1 { font-size: 2em; }
}
