/* IFIS public site: plain system typography. */
:root { --paper: #f6f3ec; --paper-2: #efeadf; --card: #fffdf8; --ink: #15171d; --ink-2: #15171d; --ink-3: #15171d; --rule: #d9d3c4; --rule-strong: #b9b19c; --accent: #b5121b; --accent-ink: #8f0e15; --accent-soft: #f0dcd9; --night: #12141a; --night-2: #1b1e26; --ok: #2f6b4a; --warn: #a8641a; --serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --maxw: 1200px; --gutter: clamp(16px, 3vw, 28px); --radius: 3px; --ease: cubic-bezier(.2, .7, .2, 1); }*, *::before, *::after { box-sizing: border-box; }html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }img, svg, video { max-width: 100%; display: block; }a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }a:hover { color: var(--accent); text-decoration-color: currentColor; }:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }::selection { background: var(--accent); color: #fff; }.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }.skip:focus { left: 8px; }h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }h3 { font-size: 1.45rem; }h4 { font-size: 1.15rem; }p { margin: 0 0 1em; text-wrap: pretty; }.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--ink-2); max-width: 38em; }.eyebrow { font: 500 .74rem/1 var(--mono); color: var(--accent); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }.mono { font-family: var(--mono); }.muted { color: var(--ink-3); }.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }.wrap.narrow { max-width: 820px; }section { position: relative; }.sec { padding: clamp(38px, 5.4vw, 72px) 0; }.sec.tight { padding: clamp(24px, 3.6vw, 43px) 0; }.sec.alt { background: var(--paper-2); }.sec.dark { background: var(--night); color: #f6f3ec; }.sec.dark h1, .sec.dark h2, .sec.dark h3, .sec.dark h4 { color: #f6f3ec; }.sec.dark .lede, .sec.dark p { color: #f6f3ec; }.sec.dark .eyebrow { color: #d98b91; }.sec.dark a { text-decoration-color: #555; }.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: clamp(19px, 3.0vw, 34px); }.sec-head h2 { margin: 0; max-width: 18em; }.sec-head .more { font: 500 .9rem var(--sans); white-space: nowrap; }/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 .95rem/1 var(--sans); padding: 15px 14px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; }.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }.btn.accent { background: var(--accent); border-color: var(--accent); }.btn.accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }.btn.ghost { background: transparent; color: var(--ink); }.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }.dark .btn.ghost { color: #f6f3ec; border-color: #5b5e66; }.dark .btn.ghost:hover { background: #f6f3ec; color: var(--ink); border-color: #f6f3ec; }.btn.sm { padding: 11px 16px; font-size: .85rem; }.btn.block { width: 100%; justify-content: center; }.btn[disabled] { opacity: .5; pointer-events: none; }.arrow { display: inline-block; }.link-arrow { font-weight: 500; text-decoration: none; padding-bottom: 2px; }.link-arrow:hover { border-color: var(--accent); }/* ---------- header */
.topbar { background: var(--night); color: #f6f3ec; font-size: .78rem; }.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; }.topbar a { text-decoration: none; color: #f6f3ec; }.topbar a:hover { color: #fff; }.topbar .l, .topbar .r { display: flex; gap: 13px; flex-wrap: wrap; }.topbar b { color: #fff; font-weight: 500; }.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .94); backdrop-filter: saturate(1.2) blur(10px); }.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 14px; }.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }.mark { width: 40px; height: 40px; flex: none; }.brand .name { display: flex; flex-direction: column; line-height: 1; }.brand .name b { font: 600 1.5rem/1 var(--serif); }.brand .name small { font: 500 .62rem/1.2 var(--mono); color: var(--ink-3); margin-top: 5px; }.nav { display: flex; align-items: center; gap: 4px; }.nav a { text-decoration: none; padding: 10px 14px; font-size: .93rem; font-weight: 500; color: var(--ink-2); position: relative; }.nav a:hover, .nav a[aria-current] { color: var(--ink); }.header .actions { display: flex; gap: 10px; align-items: center; }.header .login { font-size: .93rem; font-weight: 500; text-decoration: none; padding: 10px 6px; }.menu-btn { display: none; background: none; border: 1px solid var(--rule-strong); padding: 10px 12px; border-radius: var(--radius); cursor: pointer; color: var(--ink); }.userchip { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .9rem; font-weight: 500; }.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 500 .8rem var(--sans); flex: none; overflow: hidden; }.avatar img { width: 100%; height: 100%; object-fit: cover; }/* ---------- hero */
.hero { padding: clamp(34px, 4.8vw, 67px) 0 clamp(29px, 4.2vw, 53px); overflow: hidden; }.hero .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(19px, 3.6vw, 53px); align-items: end; }.hero h1 { margin-bottom: 17px; }.hero h1 em { color: var(--accent); font-weight: 400; }.hero .lede { margin-bottom: 22px; }.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }.hero-meta { display: flex; gap: clamp(12px, 2.4vw, 29px); margin-top: 34px; padding-top: 16px; flex-wrap: wrap; }.hero-meta div b { display: block; font: 500 2rem/1 var(--serif); }.hero-meta div span { font-size: .8rem; color: var(--ink-3); }/* evidence tag, forensic motif */
.tagcard { position: relative; background: var(--card); padding: 17px 17px 14px; box-shadow: 0 1px 0 var(--rule), 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--rule); }.tagcard::before { content: ''; position: absolute; top: 18px; right: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }.tagcard .ex { font: 500 .7rem/1 var(--mono); color: var(--ink-3); }.tagcard .ex b { color: var(--accent); font-weight: 500; }.tagcard h3 { margin: 18px 0 6px; font-size: 1.7rem; }.tagcard dl { margin: 18px 0 13px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9rem; padding-top: 16px; }.tagcard dt { color: var(--ink-3); font: 500 .72rem/1.9 var(--mono); }.tagcard dd { margin: 0; font-weight: 500; }.index-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 150px 40px; gap: 14px; align-items: center; padding: 17px 0; text-decoration: none; color: inherit; }.index-row .no { font: 500 .8rem var(--mono); color: var(--ink-3); }.index-row h3 { margin: 0 0 6px; font-size: 1.5rem; }.index-row p { margin: 0; font-size: .92rem; color: var(--ink-3); }.index-row .facts { font-size: .88rem; color: var(--ink-2); display: grid; gap: 3px; }.index-row .facts span::before { content: '-  '; color: var(--rule-strong); }.index-row .price { font: 500 1.35rem var(--serif); text-align: right; }.index-row .price small { display: block; font: 400 .72rem var(--sans); color: var(--ink-3); }.index-row .go { font-size: 1.3rem; color: var(--ink-3); text-align: right; }/* ---------- ruled columns */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); }.cols.three { grid-template-columns: repeat(3, 1fr); }.cols > div { padding: 17px 17px 8px 0; }.cols > div + div { padding-left: 17px; }.cols > div:last-child { border-right: 0; }.cols .n { font: 500 .78rem var(--mono); color: var(--accent); margin-bottom: 14px; display: block; }.cols h3 { font-size: 1.3rem; margin-bottom: 10px; }.cols p { font-size: .93rem; color: var(--ink-2); }.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(19px, 3.6vw, 58px); align-items: start; }.split.even { grid-template-columns: 1fr 1fr; }.prose { font-size: 1.05rem; color: var(--ink-2); }.prose h2, .prose h3 { margin-top: 1.6em; }.prose p, .prose li { max-width: 68ch; }.prose img { margin: 1.6em 0; }.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); font: italic 1.3rem/1.5 var(--serif); color: var(--ink); }.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; }.prose th { font-weight: 600; background: var(--paper-2); }.prose a { color: var(--accent); }.prose ul, .prose ol { padding-left: 1.3em; }.prose li { margin-bottom: .4em; }.prose iframe, .prose video { width: 100%; aspect-ratio: 16/9; border: 0; }.prose pre { background: var(--night); color: #f6f3ec; padding: 18px; overflow: auto; border-radius: var(--radius); font-size: .88rem; }.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 2px 5px; border-radius: 2px; }.prose pre code { background: none; padding: 0; }/* ---------- conference band */
.band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(19px, 3.6vw, 58px); align-items: center; }.datebox { display: grid; grid-template-columns: auto 1fr; gap: 0 17px; align-items: center; padding: 19px; background: var(--night-2); }.datebox .d { font: 500 5.5rem/0.9 var(--serif); color: #f6f3ec; }.datebox .m { font: 500 .78rem/1.6 var(--mono); color: #d98b91; }.datebox .v { color: #f6f3ec; font-size: .95rem; }/* ---------- cards: events, posts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding-top: 18px; }.post-card .thumb { aspect-ratio: 3/2; background: var(--paper-2); overflow: hidden; margin-bottom: 18px; }.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }.post-card .meta { font: 500 .72rem var(--mono); color: var(--ink-3); margin-bottom: 10px; }.post-card h3 { font-size: 1.3rem; margin-bottom: 10px; }.post-card p { font-size: .93rem; color: var(--ink-3); margin: 0; }.ph { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--paper) 10px 20px); color: var(--ink-3); font: 500 .7rem var(--mono); }.event-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 16px 0; text-decoration: none; color: inherit; }.event-row .when { text-align: center; padding: 10px 6px; line-height: 1; }.event-row .when b { display: block; font: 500 2.2rem/1 var(--serif); }.event-row .when span { font: 500 .68rem var(--mono); color: var(--ink-3); }.event-row h3 { margin: 0 0 4px; font-size: 1.4rem; }.event-row .sub { font-size: .9rem; color: var(--ink-3); }.pill { display: inline-block; font: 500 .68rem/1 var(--mono); padding: 6px 9px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink-2); }.pill.acc { background: var(--accent); border-color: var(--accent); color: #fff; }.pill.ok { color: var(--ok); border-color: var(--ok); }.pill.warn { color: var(--warn); border-color: var(--warn); }/* ---------- testimonials */
.quote { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.4 var(--serif); max-width: 30em; }.quote::before { content: '“'; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 10px; }.quote-by { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }.quote-by b { color: var(--ink); font-weight: 600; display: block; }/* ---------- page header */
.page-head { padding: clamp(29px, 4.2vw, 53px) 0 clamp(19px, 3.0vw, 34px); }.page-head h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 4.6vw, 4rem); }.crumbs { font: 500 .74rem var(--mono); color: var(--ink-3); margin-bottom: 13px; }.crumbs a { text-decoration: none; }.crumbs span { margin: 0 8px; color: var(--rule-strong); }/* ---------- forms */
.field { margin-bottom: 12px; }.field label { display: block; font: 500 .84rem var(--sans); margin-bottom: 7px; color: var(--ink); }.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }.field .err { font-size: .82rem; color: var(--accent); margin-top: 6px; }.input, select.input, textarea.input { width: 100%; font: 400 1rem var(--sans); padding: 13px 14px; background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--ink); appearance: none; }select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315171d' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 23px; }textarea.input { min-height: 140px; resize: vertical; }.input:focus { outline: none; border-color: var(--ink);  }.input.invalid { border-color: var(--accent); }.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }.check input { margin-top: 4px; accent-color: var(--accent); }.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }.alert { padding: 14px 18px; border: 1px solid var(--rule-strong); border-left-width: 3px; background: var(--card); margin-bottom: 14px; font-size: .94rem; }.alert.error { border-left-color: var(--accent); background: #fbefed; }.alert.success { border-left-color: var(--ok); background: #eef6f1; }.alert.info { border-left-color: var(--ink); }.panel { background: var(--card); padding: clamp(14px, 1.8vw, 22px); }.authwrap { min-height: 60vh; display: grid; place-items: center; padding: 34px var(--gutter); }.authbox { width: 100%; max-width: 460px; }.authbox h1 { font-size: 2.4rem; }/* ---------- footer */
.footer { background: var(--night); color: #f6f3ec; padding: 43px 0 0; margin-top: 0; }.footer a { text-decoration: none; color: #f6f3ec; }.footer a:hover { color: #fff; }.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 29px; padding-bottom: 34px; }.footer h5 { font: 500 .72rem var(--mono); color: #f6f3ec; margin: 0 0 18px; }.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }.footer .brand { color: #f6f3ec; }.footer .brand small { color: #f6f3ec; }.footer .about { font-size: .93rem; margin-top: 13px; max-width: 32ch; }.footer .motto { font: italic 1.15rem var(--serif); color: #f6f3ec; margin-top: 12px; }.footer .bottom { padding: 13px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: #f6f3ec; }.nl { display: flex; gap: 0; margin-top: 4px; }.nl input { flex: 1; min-width: 0; background: #1b1e26; border: 1px solid #343842; color: #fff; padding: 13px 14px; font: 400 .93rem var(--sans); border-radius: var(--radius) 0 0 var(--radius); }.nl input::placeholder { color: #15171d; }.nl button { background: var(--accent); color: #fff; border: 0; padding: 0 18px; font: 500 .9rem var(--sans); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- reveal motion (subtle) */
@media (prefers-reduced-motion: no-preference) {.rv { opacity: 0; }.rv.in { opacity: 1; transform: none; }
}

/* ---------- responsive */
@media (max-width: 1020px) {.hero .grid, .band, .split, .split.even { grid-template-columns: 1fr; }.cols, .grid-3 { grid-template-columns: repeat(2, 1fr); }.cols > div { border-right: 0; padding-left: 0 !important; padding-bottom: 12px; }.index-row { grid-template-columns: 40px 1fr 110px; }.index-row .facts, .index-row .go { display: none; }.footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {.menu-btn { display: inline-flex; }.nav { position: fixed; inset: 70px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 14px; gap: 0; display: none; max-height: calc(100vh - 70px); overflow: auto; }.nav.open { display: flex; }.nav a { padding: 16px 0; font-size: 1.05rem; }.header .actions .btn-create { display: none; }.topbar .r { display: none; }
}
@media (max-width: 640px) {.cols, .cols.three, .grid-3, .grid-2, .row2 { grid-template-columns: 1fr; }.event-row { grid-template-columns: 72px 1fr; }.event-row .pill, .event-row .btn { grid-column: 2; justify-self: start; }.sec-head { grid-template-columns: 1fr; }.index-row { grid-template-columns: 1fr auto; gap: 10px 16px; }.index-row .no { display: none; }.footer .top { grid-template-columns: 1fr; gap: 22px; }.datebox { grid-template-columns: 1fr; gap: 12px; }.datebox .d { font-size: 4.2rem; }.hero-meta { gap: 13px; }
}
@media print {.header, .topbar, .footer, .btn { display: none !important; } }.q-text { font: 400 1.2rem/1.5 var(--serif); color: var(--ink); margin: 0 0 13px; }.q-text::before { content: '“'; display: block; font-size: 3rem; line-height: .7; color: var(--accent); margin-bottom: 8px; }/* ---- plain typography overrides ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }.lede { font-family: var(--sans); font-size: 1.15rem; line-height: 1.6; }.eyebrow { font-size: .9rem; font-weight: 600; margin-bottom: 12px; display: block; }.eyebrow::before { display: none; }.crumbs { font-size: .85rem; }.hero h1 em { font-style: normal; color: inherit; }.tagcard { box-shadow: none; }.tagcard::before { display: none; }.q-text::before { display: none; }.quote::before { display: none; }.rv { opacity: 1 !important; transform: none !important; }.brand .name b { font-weight: 700; }.brand .name small { font-size: .72rem; }code, pre, kbd, samp { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }.prose code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }.footer .motto { font-size: 1rem; }.hero h1 em { font-weight: inherit; }.index-row .facts { display: grid; gap: 3px; border: 0; margin: 0; padding: 0; }.hero-meta div b { font-weight: 700; }

/* ---- compact, line-free layout ---- */
body { line-height: 1.55; }
.header { background: var(--paper); backdrop-filter: none; }
.header .wrap { height: 60px; }
.topbar .wrap { padding-top: 6px; padding-bottom: 6px; }
.btn { padding: 11px 20px; }
.btn.sm { padding: 8px 14px; }
.tagcard { box-shadow: none; background: var(--card); padding: 20px; }
.panel { background: var(--card); padding: 20px; }
.sec { padding: 36px 0; }
.sec.tight { padding: 24px 0; }
.sec-head { margin-bottom: 18px; }
.hero { padding: 36px 0 32px; }
.hero h1 { margin-bottom: 14px; }
.hero .lede { margin-bottom: 20px; }
.hero-meta { margin-top: 24px; padding-top: 0; gap: 28px; }
.page-head { padding: 28px 0 14px; }
.page-head h1 { margin-bottom: 10px; }
h2 { margin-bottom: .4em; }
.lede { margin-bottom: .6em; }
.eyebrow { margin-bottom: 8px; }
.index { display: grid; gap: 8px; }
.index-row { background: var(--card); padding: 16px 20px; gap: 16px; }
.cols { gap: 8px; }
.cols > div, .cols > div + div { background: var(--card); padding: 18px; }
.cols .n { margin-bottom: 10px; }
.grid-3, .grid-2, .course-grid { gap: 12px; }
.course-card, .post-card { background: var(--card); padding: 0 0 14px; }
.course-card .cc-body { padding: 0 16px; }
.post-card .meta, .post-card h3, .post-card p { padding: 0 16px; }
.cc-img, .post-card .thumb { margin-bottom: 14px; }
.cc-foot { padding-top: 10px; margin-top: 12px; }
.event-row, .doc { background: var(--card); padding: 14px 18px; margin-bottom: 8px; }
.event-row .when { background: var(--paper-2); padding: 8px 4px; }
.doc-list, .event-list { border: 0; }
.syllabus { margin-top: 10px; }
.syllabus details { background: var(--card); margin-bottom: 6px; padding: 0 16px; }
.syllabus summary { padding: 12px 0; }
.h-sec { margin: 28px 0 12px; padding-top: 0; font-size: 1.4rem; }
.facts { margin-top: 16px; padding-top: 0; }
.ec-list li { padding: 8px 0; }
.contact-block { padding: 10px 0; }
.footer { padding: 36px 0 0; }
.footer .top { padding-bottom: 24px; gap: 28px; }
.footer .bottom { padding: 14px 0; }
.authwrap { padding: 28px var(--gutter); min-height: 0; }
.field { margin-bottom: 12px; }
.row2 { gap: 12px; }
.course-head { padding: 24px 0 20px; }
.ch-grid { gap: 24px; }
.course-layout { gap: 24px; }
.cc-img img, .ch-img img { transition: none; }

/* ---- sidebar filter layout ---- */
.side-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: 76px; display: grid; gap: 16px; }
.side-search .input { background: var(--card); }
.side-group { background: var(--card); padding: 14px 8px 8px; }
.side-group h4 { font: 700 .95rem var(--sans); margin: 0 0 8px 10px; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; text-decoration: none; font-size: .93rem; color: var(--ink-2); }
.side-group a small { color: var(--ink-3); font-size: .8rem; }
.side-group a[aria-current] { background: var(--paper-2); color: var(--ink); font-weight: 700; }
.side-main { min-width: 0; }
.side-main .course-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.side-main .grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 900px) { .side-layout { grid-template-columns: 1fr; } .side { position: static; grid-template-columns: 1fr 1fr; align-items: start; } .side-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .side { grid-template-columns: 1fr; } }

::placeholder { color: #15171d; opacity: .6; }

/* ---- real IFIS logo ---- */
.brand { display: inline-flex; align-items: center; }
.brand .logo { display: block; width: auto; height: 54px; }
.footer .brand .logo { height: 56px; }
.header .wrap { height: 70px; }

/* ---- home, matched to the original site's structure ---- */
.hero-photo { background-size: cover; background-position: center; }
.hero-shade { background: rgba(14, 16, 22, .74); padding: 56px 0 44px; }
.hp-inner { text-align: center; color: #fff; }
.hp-inner h1 { color: #fff; max-width: 18em; margin: 0 auto 14px; }
.hp-inner .lede { color: #fff; max-width: 44em; margin: 0 auto 22px; }
.hp-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn.light { background: transparent; border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hp-facts { display: flex; gap: 28px; justify-content: center; margin: 22px 0 0; color: #fff; font-size: .95rem; flex-wrap: wrap; }
.course-grid.four { grid-template-columns: repeat(4, 1fr); }
.vcenter { align-self: center; }
.vcenter p { margin-bottom: .9em; }
.round { width: 100%; height: auto; border-radius: 10px; display: block; }
.why { background-size: cover; background-position: center; }
.why-shade { background: rgba(8, 56, 78, .88); padding: 40px 0; color: #fff; }
.why-shade h2 { color: #fff; text-align: center; margin-bottom: 20px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-grid > div { background: #fff; color: var(--ink); padding: 18px; border-radius: 10px; }
.why-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-grid p { margin: 0; font-size: .92rem; }
.awareness { text-align: center; }
.awareness .lede { max-width: 44em; margin: 0 auto 14px; color: #fff; }
.aw-video { width: 100%; max-width: 960px; margin: 18px auto 0; display: block; border-radius: 10px; background: #000; aspect-ratio: 16/9; }
.ev-mini { display: grid; gap: 8px; }
.ev-mini-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; background: var(--card); padding: 12px 18px; text-decoration: none; color: var(--ink); }
.ev-mini-row .when { text-align: center; line-height: 1.1; }
.ev-mini-row .when b { display: block; font: 700 1.5rem var(--sans); }
.ev-mini-row .when span { font-size: .8rem; }
.ev-mini-row h3 { font-size: 1.1rem; margin: 0 0 2px; }
.ev-mini-row p { margin: 0; font-size: .9rem; }
.ev-mini-row .fee { font-weight: 700; white-space: nowrap; }
.sec .dark, .sec.dark { background: var(--night); }
@media (max-width: 1020px) { .course-grid.four { grid-template-columns: repeat(2, 1fr); } .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid.four, .why-grid { grid-template-columns: 1fr; } .ev-mini-row { grid-template-columns: 64px 1fr; } .ev-mini-row .fee, .ev-mini-row .btn { grid-column: 2; justify-self: start; } .hero-shade { padding: 36px 0 30px; } }

/* ---- waves texture on headers ---- */
.page-head, .course-head { background: var(--paper-2) url('/assets/img/waves.png') repeat; }
.header { background: #fff; }
.nav { background: #fff; }

/* ---- footer newsletter ---- */
.foot-news .foot-addr { margin: 0 0 14px; font-size: .92rem; color: #f6f3ec; }
.foot-news .foot-note { margin: 0 0 12px; font-size: .92rem; color: #f6f3ec; }
.nl { display: grid; gap: 10px; max-width: 320px; }
.nl input[type=email] { width: 100%; min-width: 0; background: #fff; border: 0; color: var(--ink); padding: 12px 14px; font: 400 .95rem var(--sans); border-radius: 3px; }
.nl input[type=email]::placeholder { color: var(--ink); opacity: .6; }
.nl .nl-ts { min-height: 0; }
.nl button { width: 100%; background: var(--accent); color: #fff; border: 0; padding: 13px 18px; font: 600 .95rem var(--sans); border-radius: 3px; cursor: pointer; }
.nl button:hover { background: #a8222c; }
.foot-news address.foot-addr { font-style: normal; }
.foot-contact { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: #f6f3ec; }
.foot-contact span { display: inline-block; min-width: 52px; font-weight: 700; }
.foot-contact a { color: #f6f3ec; }
.foot-contact li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: start; }
.foot-contact span { min-width: 0; }
.foot-news .foot-note { margin-top: 16px; }

.header .actions { gap: 8px; }
.header .btn.ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.header .btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---- newsletter band + footer headings ---- */
.news-band { background: var(--accent); color: #fff; padding: 28px 0; }
.news-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px; align-items: center; }
.news-band h2 { color: #fff; font-size: 1.6rem; margin: 0 0 6px; }
.news-band p { margin: 0; color: #fff; }
.news-band .nl { max-width: none; }
.news-band .nl button { background: var(--night); }
.news-band .nl button:hover { background: #000; }
.footer { padding-top: 32px; }
.footer h5 { font: 700 1.05rem var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0 0 14px; }
.footer .foot-news .foot-note { display: none; }
@media (max-width: 760px) { .news-inner { grid-template-columns: 1fr; } }

/* ---- tighter heading line-spacing, sitewide ---- */
h1 { line-height: 1.04; }
h2 { line-height: 1.08; }
h3 { line-height: 1.14; }
h4 { line-height: 1.2; }
.page-head h1, .course-head h1, .ch-grid h1 { line-height: 1.02; margin-bottom: 12px; }
.page-head .lede, .course-head .lede { line-height: 1.45; }
.cc h3, .pc h3, .evx-what h3, .why2-grid h3 { line-height: 1.12; }
.sec-head h2, .vc h2 { line-height: 1.05; }


/* ---- smaller type scale, sitewide ---- */
html { font-size: 14.5px; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
.lede { font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.5; }
.prose { font-size: .96rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.btn { font-size: .88rem; }
.btn.sm { font-size: .82rem; }
.nav a { font-size: .88rem; }
.topbar { font-size: .74rem; }
.cc h3 { font-size: 1.08rem; }
.cc p { font-size: .86rem; }
.cc-price { font-size: 1.25rem; }
.cc-meta { font-size: .76rem; }
.post-card h3 { font-size: 1.05rem; }
.post-card p, .doc p, .side-group a, .field label { font-size: .86rem; }
.footer, .footer a, .footer li { font-size: .88rem; }
.footer h5 { font-size: .95rem; }
.q-text { font-size: 1rem; }
.hero-meta div b { font-size: 1.6rem; }
.page-head h1, .course-head h1, .ch-grid h1, .authbox h1, .ev-hero h1 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
.page-head h1 { margin-bottom: 8px; }
.ec-price { font-size: 1.9rem; }
.h-sec { font-size: 1.25rem; }
.facts dd { font-size: .88rem; }

/* ---- instant search: icon opens a full-width bar with live suggestions ---- */
.hs-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; }
.hs-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 20px 40px rgba(8, 9, 13, .18); padding: 8px 0 14px; z-index: 60; }
.hs-panel[hidden] { display: none; }
.hs-form { display: flex; align-items: center; gap: 12px; }
.hs-form input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.15rem var(--sans); color: var(--ink); padding: 14px 0; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.hs-close { width: 44px; height: 44px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.hs-results { max-height: min(62vh, 520px); overflow-y: auto; }
.hs-results:empty { display: none; }
.hs-g { font-size: .78rem; font-weight: 800; padding: 12px 10px 4px; }
.hs-i { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.3; }
.hs-i small { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.hs-i[aria-selected="true"] { background: #f4f2ed; }
.hs-all { font-weight: 700; }
.hs-none { padding: 14px 10px; font-size: .95rem; }
.nav-search { display: none; }
@media (max-width: 860px) {
  .nav-search { display: block; padding: 4px 0 12px; }
  .nav-search .hs-form input[type=search] { background: #f4f2ed; padding: 13px 14px; font-size: 1rem; border-radius: 3px; }
  .nav .hs-results { max-height: 50vh; }
}

/* ===== standing UI rules: no stripes on tiles, no glow/ring/border change on focus or hover, placeholders vanish on focus ===== */
.eyebrow::before, .tagcard::before { display: none; content: none; }
.prose blockquote { border-left: 0; background: #f4f2ed; padding: 16px 20px; font-style: normal; }
.ticks li::before { background: var(--ink); width: 6px; height: 6px; top: .62em; }
.alert, .alert.error, .alert.success, .alert.info { border: 0; border-left: 0; background: #fff; }
.alert.error { background: #fbe9e7; }
.alert.success { background: #e6f2ea; }
.alert.info { background: #f4f2ed; }

/* text fields: identical border at rest, hover, focus and while typing; no glow */
.input, .input:hover, .input:focus, .input:active, select.input:focus, textarea.input:focus { outline: none; box-shadow: none; border-color: var(--rule-strong); }
.input.invalid, .input.invalid:focus { border-color: var(--accent); }
input:focus, textarea:focus, select:focus, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: none; }
input:focus::placeholder, textarea:focus::placeholder, .input:focus::placeholder { color: transparent; opacity: 0; }
input::placeholder, textarea::placeholder { transition: none; }
/* keyboard users still see where they are on links and buttons (never triggered by a mouse click) */
:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #15171d; outline-offset: 2px; box-shadow: none; }
.btn.accent:focus-visible, .btn.light:focus-visible, .hx-cta .btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px #15171d; }

/* ===== touch targets: at least 44px tall on phones and tablets ===== */
@media (max-width: 860px) {
  .btn, .btn.sm, .btn.lg { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
  .btn.block { display: flex; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .input, select.input { min-height: 46px; }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .side-group a { min-height: 44px; align-items: center; }
  .chips a, .pager a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer a { display: inline-block; padding: 6px 0; }
  .footer li { margin: 0; }
}

/* ---- newsletter section (home and contact only) ---- */
.nl-section { background: var(--night); color: #fff; padding: 44px 0; }
.nl-card { max-width: 560px; margin: 0 auto; text-align: center; }
.nl-card h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 8px; }
.nl-card p { color: #fff; margin: 0 0 20px; }
.nl-form { display: grid; gap: 12px; }
.nl-form .input { text-align: center; }
.nl-ts { display: flex; justify-content: center; min-height: 0; }
.nl-ts:empty { display: none; }

/* newsletter section: its own light band with a centred white card (clearly separate from the dark footer) */
.nl-section { background: var(--paper-2); color: var(--ink); padding: 40px 0; }
.nl-card { max-width: 600px; margin: 0 auto; background: #fff; padding: 34px 28px 30px; text-align: center; }
.nl-card h2 { color: var(--ink); }
.nl-card p { color: var(--ink); }
.nl-form .input { background: #fff; }

/* mobile menu hangs directly beneath the header (whatever its position when the top bar has scrolled away) */
@media (max-width: 860px) {
  .nav { position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 18px 30px rgba(8, 9, 13, .16); }
}

/* keyboard focus on buttons: one plain outline, never a ring or glow */
.btn:focus-visible, .btn.accent:focus-visible, .btn.light:focus-visible, .btn.ghost:focus-visible, .hx-cta .btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { box-shadow: none !important; outline: 2px solid #15171d; outline-offset: 3px; }
.hx-cta .btn:focus-visible, .news-band .nl button:focus-visible, .footer a:focus-visible, .sec.night a:focus-visible, .sec.dark a:focus-visible { outline-color: #fff; }

/* sidebar filter menus: centred */
.side-group h4 { text-align: center; margin-left: 0; }
.side-group a { justify-content: center; align-items: center; text-align: center; gap: 8px; }
.side-group a small { color: inherit; }
