/* ICMRTI - site stylesheet
   Signature: three linked colors (research = teal, technology = indigo, innovation = copper)
   used as thin rules, numbering and the overlapping-circles mark. Fonts are self-hosted. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #0e1d2b;
  --paper: #f5f2ec;
  --panel: #fbfaf7;
  --line: #d9d3c7;
  --muted: #4f5b66;
  --teal: #0f6b6b;
  --indigo: #3d4a9c;
  --copper: #a9461c;
  --teal-l: #5fbdb7;
  --indigo-l: #98a3f2;
  --copper-l: #f2996a;
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 6px 6px; font-weight: 600; }
.skip-link:focus { top: 0; color: var(--paper); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; line-height: 1.05; }
.brand-sub { display: block; font-size: .72rem; color: var(--muted); line-height: 1.25; max-width: 30ch; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 4px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 13px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--copper); color: var(--ink); }
.menu a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }

/* Signature three-color rule */
.tri-rule { height: 5px; background: linear-gradient(90deg, var(--teal) 0 33.33%, var(--indigo) 33.33% 66.66%, var(--copper) 66.66% 100%); }

/* Hero (home) */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.55rem); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 22px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 30px; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; max-width: 470px; margin: 0 auto; }

/* Page title band (inner pages) */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.page-head p { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }

/* Sections: editorial two-column layout */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.section-label { font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--copper); }
.section-label span { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 400; letter-spacing: 0; line-height: 1; margin-bottom: 8px; color: var(--ink); }
.section-body > :first-child { margin-top: 0; }
.section-body > :last-child { margin-bottom: 0; }
h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0 0 18px; letter-spacing: -.005em; }
h3 { font-size: 1.3rem; margin: 30px 0 8px; }
h4, .mini { font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; font-weight: 600; }
p { margin: 0 0 1.05em; max-width: 68ch; }
ul, ol { padding-left: 1.25em; max-width: 68ch; }
li { margin-bottom: .45em; }
.lead { font-size: 1.2rem; max-width: 62ch; }

.section.wide .wrap { grid-template-columns: 1fr; }
.section.wide .section-label { display: none; }

/* Three connected ideas */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.trio > div { border-top: 4px solid var(--teal); padding-top: 14px; }
.trio > div:nth-child(2) { border-top-color: var(--indigo); }
.trio > div:nth-child(3) { border-top-color: var(--copper); }
.trio h3 { margin: 0 0 6px; font-size: 1.2rem; }
.trio p { font-size: .98rem; margin: 0; }

/* Ruled lists (research areas, objectives) */
.ruled { list-style: none; padding: 0; margin: 20px 0 0; max-width: none; }
.ruled li { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 18px 0; margin: 0; border-top: 1px solid var(--line); }
.ruled li:last-child { border-bottom: 1px solid var(--line); }
.ruled strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.ruled p { margin: 0; font-size: .98rem; color: var(--muted); }
.more { display: inline-block; margin-top: 18px; font-weight: 600; }

/* Research area detail */
.area { padding: 36px 0; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area h2 { font-size: 1.6rem; margin-bottom: 10px; }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; margin-top: 8px; }
.area-grid ul { margin: 0 0 12px; }

/* Event feature (dark) */
.feature { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 40px; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--teal-l) 0 33.33%, var(--indigo-l) 33.33% 66.66%, var(--copper-l) 66.66% 100%); }
.feature h2, .feature h3 { color: var(--paper); margin-top: 0; }
.feature p { color: #d8d4cb; }
.feature a { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 22px 0 26px; padding: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #aeb8c2; margin: 0; }
.facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.status.planned { color: var(--teal); }
.status.proposed { color: var(--copper); }
.feature .status.planned { color: var(--teal-l); }

/* Notices */
.notice { border-left: 4px solid var(--copper); background: var(--panel); padding: 16px 20px; margin: 22px 0; max-width: 68ch; }
.notice h2, .notice h3, .notice h4 { margin: 0 0 4px; font-size: 1.02rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-family: var(--serif); }
.notice p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 3px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid var(--ink); line-height: 1.3; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.feature .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.feature .btn-primary:hover { background: var(--copper-l); border-color: var(--copper-l); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Forms */
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8c8a82; border-radius: 3px; padding: 11px 13px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.check input { margin-top: 5px; flex: none; width: 18px; height: 18px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-left: 4px solid var(--teal); background: #e8f1ef; max-width: 68ch; }
.form-status.error { border-left-color: var(--copper); background: #f7e9e2; }
.form-status[hidden] { display: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.contact-line { font-family: var(--serif); font-size: 1.35rem; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ink); color: #d8d4cb; padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--copper-l); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: .02em; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #aeb8c2; margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer p { max-width: 46ch; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: #aeb8c2; }

/* Motion: only a gentle underline/colour transition; disabled on request */
a, .btn, .menu a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero img { max-width: 380px; }
  .section .wrap { grid-template-columns: 1fr; gap: 14px; }
  .section-label span { display: inline; font-size: 1.6rem; margin-right: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 800px) {
  .js .menu-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .js .menu { display: none; flex-direction: column; width: 100%; padding: 4px 0 10px; }
  .js .menu.open { display: flex; }
  .menu a { border-bottom: 0; border-left: 3px solid transparent; padding: 11px 12px; }
  .menu a:hover { border-left-color: var(--copper); }
  .menu a[aria-current="page"] { border-left-color: var(--ink); }
  .brand-sub { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 44px 0; }
  .trio { grid-template-columns: 1fr; gap: 22px; }
  .ruled li { grid-template-columns: 1fr; gap: 4px; }
  .area-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .feature { padding: 28px 22px; }
}
@media print {
  .site-header, .skip-link, .btn-row, .menu-toggle { display: none; }
  body { background: #fff; }
  .site-footer, .feature { background: #fff; color: #000; }
  .feature *, .site-footer * { color: #000 !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Review content uses the existing editorial layout and colour palette. */
.review-gap { margin-top: 8px !important; }
.section-body { min-width: 0; }
.section-body a { overflow-wrap: anywhere; }
