/* EyeFellow design system — deep teal / warm paper / terracotta. Serif headings, sans body. */
:root {
  --teal-950: #062726; --teal-900: #08302f; --teal-800: #0b3f3c; --teal-700: #10504b; --teal-600: #176b63;
  --mint: #cfe9e0; --mint-soft: #e4f2ec; --paper: #fbf9f4; --sand: #f4eee3; --card: #fffdf9; --line: #e3dccd;
  --ink: #14231f; --muted: #5b6b66; --accent: #c24a2f; --accent-hover: #a63c24; --accent-soft: #f7e3da; --gold: #b98a2c;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(8, 48, 47, .06), 0 8px 24px rgba(8, 48, 47, .06);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal-600); text-underline-offset: 3px; }
h1, h2, h3, h4, .stat b, .subcard .top b, .dirbar .count b { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.sr { position: absolute; left: -9999px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { background: var(--teal-900); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.brand b { font-weight: 500; font-style: italic; color: #f0866a; }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--mint); color: var(--teal-900); display: grid; place-items: center; font: 600 15px/1 var(--serif); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a, .nav .navbtn { color: #e6f2ee; text-decoration: none; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.nav a:hover, .nav .navbtn:hover, .nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 8px; text-decoration-color: #f0866a; }
.count-pill { background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 1px 9px; font-size: 12px; margin-left: 6px; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; overflow: hidden; }
.lang button { background: none; border: 0; color: #cfe3dd; padding: 4px 11px; font: 500 12px var(--sans); cursor: pointer; }
.lang button[aria-pressed=true] { background: #fff; color: var(--teal-900); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .5); color: #fff !important; border-radius: 10px; padding: 10px 18px; font-weight: 500; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 11px 20px; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--sand); }
.btn.dark { background: var(--teal-800); border-color: var(--teal-800); }
.btn.small { padding: 7px 13px; font-size: 13px; }
a.btn { text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% 0%, #17625a 0%, transparent 60%), linear-gradient(180deg, var(--teal-900), var(--teal-950)); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.hero .art { position: absolute; right: -90px; top: -60px; width: 700px; max-width: 70vw; opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 54px; }
.eyebrow { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--mint); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 46px; height: 2px; background: #e5775a; }
.eyebrow.dark { color: var(--teal-700); }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); max-width: 780px; font-weight: 500; }
.hero h1 em, .pagehero h1 em { font-style: italic; color: #f0866a; }
.hero .lede { font-size: 18px; color: #cfe3dd; max-width: 640px; margin: 22px 0 32px; }
.searchbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; background: #f1e9dd; border-radius: 14px; max-width: 900px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); overflow: hidden; }
.searchbar .field { padding: 14px 20px 12px; border-right: 1px solid #ddd3c2; display: grid; gap: 2px; min-width: 0; }
.searchbar label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6a6557; }
.searchbar input, .searchbar select { border: 0; background: transparent; font: 500 16px var(--sans); color: var(--ink); padding: 4px 0; width: 100%; outline: none; text-overflow: ellipsis; }
.searchbar input::placeholder { color: #9a9486; font-weight: 400; }
.searchbar button { background: var(--accent); color: #fff; border: 0; padding: 0 34px; font: 600 16px var(--sans); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.searchbar button:hover { background: var(--accent-hover); }
.scope { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.scope button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #e6f2ee; border-radius: 99px; padding: 6px 15px; font: 500 14px var(--sans); cursor: pointer; }
.scope button[aria-pressed=true] { background: #fff; color: var(--teal-900); border-color: #fff; }
.statband { background: var(--teal-800); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 0; padding-bottom: 0; }
.stat { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 500 52px/1 var(--serif); color: #fff; }
.stat span { font-size: 14px; color: #bfdad2; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--sand); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 50px); max-width: 640px; }
.section-head p { max-width: 420px; color: var(--muted); margin: 0; }
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.subcard { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 210px; }
.subcard:hover, .subcard[aria-pressed=true] { border-color: var(--teal-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.subcard[aria-pressed=true] { background: var(--mint-soft); }
.subcard .top { display: flex; justify-content: space-between; align-items: baseline; color: var(--accent); font-size: 13px; font-weight: 600; }
.subcard .top b { color: var(--teal-800); font: 500 30px/1 var(--serif); }
.subcard h3 { font-size: 27px; margin-top: 6px; }
.subcard p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.subcard .go { color: var(--accent); font-size: 14px; font-weight: 600; text-align: right; }

/* ---------- directory ---------- */
.dirbar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow); }
.dirbar .count { font-size: 15px; }
.dirbar .count b { font-size: 20px; font-family: var(--serif); }
.dirbar .spacer { flex: 1; }
.dirbar select { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px 10px; font: 14px var(--sans); color: var(--ink); }
.dirbar label.check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: 14px var(--sans); padding: 0; }
.morefilters { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.morefilters.open { display: grid; }
.morefilters label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.morefilters select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: 15px var(--sans); background: #fff; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 400; }
.morefilters .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; color: var(--ink); align-self: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 24px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-top .save { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: 600 13px var(--sans); cursor: pointer; color: var(--ink); }
.pc-top .save[aria-pressed=true] { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.pcard h3 { font-size: 26px; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--teal-600); }
.pc-inst { margin: 0; font-size: 14px; line-height: 1.45; }
.pc-inst strong { display: block; font-weight: 600; }
.pc-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 3px; }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; font-size: 12.5px; background: #fff; color: #36463f; }
.chip.accent { background: var(--mint-soft); border-color: #c4e0d5; color: var(--teal-700); font-weight: 500; }
.director { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.director small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.director b { font-weight: 600; font-size: 14.5px; }
.pc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; gap: 10px; flex-wrap: wrap; }
.pc-foot .primary { font-weight: 600; color: var(--ink); text-decoration: none; }
.pc-foot .primary:hover { color: var(--accent); }
.pc-foot .ext { font-size: 13px; color: var(--muted); }
.empty { padding: 48px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }
.moreWrap { text-align: center; margin-top: 28px; }

/* ---------- logo tile ---------- */
.logo-tile { width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo-tile.mono { border: 0; color: #fff; font: 600 18px/1 var(--serif); letter-spacing: .03em; }
.logo-tile.lg { width: 72px; height: 72px; border-radius: 16px; }
.logo-tile.lg.mono { font-size: 26px; }
.logo-tile.xl { width: 96px; height: 96px; border-radius: 20px; }
.logo-tile.xl.mono { font-size: 34px; }

/* ---------- page hero (static pages) ---------- */
.pagehero { background: radial-gradient(900px 360px at 90% 0%, #17625a 0%, transparent 60%), linear-gradient(180deg, var(--teal-900), var(--teal-950)); color: #fff; position: relative; overflow: hidden; }
.pagehero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; }
.pagehero .wrap { position: relative; padding-top: 34px; padding-bottom: 46px; }
.crumbs { font-size: 13.5px; color: #bfdad2; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #e6f2ee; }
.pagehero h1 { font-size: clamp(38px, 5vw, 62px); max-width: 900px; }
.pagehero .sub { color: #cfe3dd; margin: 14px 0 0; font-size: 17px; max-width: 760px; }
.pagehero .idrow { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.pagehero .idrow .logo-tile { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.pagehero .idrow > div { flex: 1 1 300px; min-width: 0; }
.pagehero .idrow .who { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.pagehero .idrow .where { display: flex; align-items: center; gap: 8px; color: #bfdad2; font-size: 15px; margin-top: 4px; }
.pagehero .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pagehero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.pagehero .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.tabs { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 10; }
.tabs .wrap { display: flex; gap: 6px; overflow-x: auto; }
.tabs a { padding: 18px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { border-color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail-grid h2 { font-size: 36px; margin-bottom: 14px; }
.blk { padding: 40px 0; border-bottom: 1px solid var(--line); }
.blk:last-child { border-bottom: 0; }
.factcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 168px; box-shadow: var(--shadow); }
.factcard h3 { font-size: 30px; margin-bottom: 8px; }
.factcard dl { margin: 0; }
.factcard .row { padding: 12px 0; border-top: 1px solid var(--line); }
.factcard dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.factcard dd { margin: 3px 0 0; font-weight: 500; }
.factcard .btn { width: 100%; margin-top: 16px; }
.faclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 8px; }
.fac { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--teal-800); display: grid; place-items: center; font: 600 15px var(--serif); flex: none; }
.fac b { display: block; font-weight: 600; line-height: 1.3; }
.fac span { font-size: 13.5px; color: var(--muted); display: block; line-height: 1.35; }
.fac a { font-size: 12.5px; }
.list-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-simple li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.list-simple li .t { flex: 1; min-width: 0; }
.list-simple a.name { font-weight: 600; color: var(--ink); text-decoration: none; }
.list-simple a.name:hover { color: var(--accent); }
.list-simple small { display: block; color: var(--muted); font-size: 13.5px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--teal-600); box-shadow: var(--shadow); }
.tile b { font-weight: 600; line-height: 1.25; display: block; }
.tile small { color: var(--muted); font-size: 13px; }
.alpha { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; }
.alpha a { border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; font-size: 13px; text-decoration: none; color: var(--ink); background: var(--card); }
.group-h { font-size: 30px; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.group-h .n { font: 500 15px var(--sans); color: var(--muted); }

/* ---------- dialog / submit / footer ---------- */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); max-width: min(900px, 94vw); width: 100%; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(6, 39, 38, .6); }
dialog h3 { font-size: 34px; margin-bottom: 14px; }
.close { float: right; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.tablewrap { overflow-x: auto; }
.submit-box { background: var(--teal-900); color: #fff; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.submit-box h2 { font-size: 42px; }
.submit-box p { color: #cfe3dd; }
.submit { display: grid; gap: 12px; }
.submit input, .submit textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: 15px var(--sans); }
.submit input::placeholder, .submit textarea::placeholder { color: #a9c7be; }
.site-footer { background: var(--teal-950); color: #bfdad2; padding: 48px 0 36px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer a { color: #bfdad2; display: block; padding: 3px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 20px; font-size: 12.5px; color: #8fb3a9; }
.site-footer .brand { font-size: 26px; margin-bottom: 10px; }
.notice { background: var(--mint-soft); border: 1px solid #c4e0d5; border-radius: 12px; padding: 14px 18px; font-size: 14px; color: var(--teal-800); }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--teal-900); flex-direction: column; align-items: flex-start; padding: 20px 28px 26px; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid rgba(255, 255, 255, .4); color: #fff; border-radius: 8px; padding: 7px 12px; font: 500 14px var(--sans); }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .field { border-right: 0; border-bottom: 1px solid #ddd3c2; }
  .searchbar button { padding: 16px; justify-content: center; }
  .statband .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .factcard { position: static; }
  .submit-box { grid-template-columns: 1fr; padding: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .tabs { top: 76px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero .wrap { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .stat b { font-size: 40px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
