/* Mideel institutional site: tokens, base, nav, buttons, footer, legal pages.
   Landing sections live in landing.css. Tokens follow docs/design-site-landing-v2.md. */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-italic-600.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf7f2; --bg-alt: #eef5f8; --ink: #0f1b2d; --ink-soft: #44536a;
  --lagoa: #0c6a91; --lagoa-ink: #084a66; --rose: #c4432f;
  --peach: #f7c9b0; --sage: #cfe3d4; --sky: #bfe0ee; --gold: #c99a3b;
  --card: #fff; --ring: #0c6a91; --line: #e3e8ee;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(15 27 45 / .06), 0 24px 48px -12px rgb(15 27 45 / .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1, h2 { line-height: 1.08; }
p { margin: 0; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 64px, 1160px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Links: never underlined, in any state. Distinguished by colour, weight and arrow. */
a, a:hover, a:focus, a:active, a:visited, a:focus-visible { text-decoration: none !important; }
a { color: var(--lagoa); font-weight: 600; }
a:hover { color: var(--lagoa-ink); }
a:visited { color: var(--lagoa); }
.tl::after, .doc a::after { content: "\00a0→"; content: "\00a0→" / ""; display: inline-block; transition: transform .15s; }
.tl:hover::after, .doc a:hover::after { transform: translateX(3px); }
.doc a[href^="mailto"]::after { content: "\00a0↗"; content: "\00a0↗" / ""; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 50; background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { top: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgb(251 247 242 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: opacity .2s; }
.js .nav:not(.is-scrolled)::before { opacity: 0; }
.nav-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { font: 600 1.6rem/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.brand:hover, .brand:visited { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links .nl { display: none; color: var(--ink); min-height: 44px; padding-inline: 14px; align-items: center; border-radius: 999px; }
.nav-links .nl:hover { color: var(--lagoa); background: rgb(12 106 145 / .08); }
@media (min-width: 768px) { .nav-links .nl { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 600 1rem/1.25 var(--font-body); text-align: center; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.btn-primary, .btn-primary:visited { background: var(--lagoa); color: #fff; box-shadow: 0 10px 24px -10px rgb(12 106 145 / .7); }
.btn-primary:hover { background: var(--lagoa-ink); color: #fff; }
.btn-ghost, .btn-ghost:visited { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light, .btn-light:visited { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9rem; }
.btn .arr { display: inline-block; transition: transform .15s; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .btn .arr, .btn:active, .tl::after { transition: none; transform: none !important; } }

/* Footer (institutional data, real HTML text) */
.footer { background: var(--ink); color: #e6ecf3; font-size: .9375rem; padding-block: 48px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.footer address { font-style: normal; display: grid; gap: 4px; }
.footer strong { color: #fff; }
.footer a, .footer a:visited { color: #fff; }
.footer a:hover { color: var(--sky); }
.footer a:not(.brand)::after { content: "\00a0→"; content: "\00a0→" / ""; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer nav a, .footer address a { display: inline-flex; align-items: center; min-height: 44px; }
.footer address a { min-height: 32px; }
.footer .brand { color: #fff; margin-bottom: 8px; }
.footer .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14); color: #b6c3d3; font-size: .875rem; }

/* Legal pages */
.doc { padding-block: 48px 72px; }
.doc .doc-in { max-width: 70ch; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 8px; }
.doc p { margin-bottom: 12px; }
.doc .updated { color: var(--ink-soft); font-size: .9rem; }
