:root {
  --ink: #183b38;
  --muted: #647a75;
  --navy: #116c61;
  --navy-2: #269789;
  --cream: #f1f8f3;
  --paper: #ffffff;
  --line: #e2ebe7;
  --orange: #e77d5d;
  --orange-dark: #c95e43;
  --gold: #f4c96b;
  --teal: #198c7a;
  --green: #12826f;
  --sky: #eff8f5;
  --mint: #e9f5ee;
  --shadow: 0 20px 52px rgba(24, 59, 56, .11);
  --radius: 20px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8faf8;
  overflow-x: hidden;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(25,140,122,.38); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max)); min-height: 80px; margin: auto;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-size: 1.25rem; letter-spacing: .025em; color: var(--ink); }
.brand-category { margin-left: 3px; font-weight: 600; color: #47655a; }
.brand small { letter-spacing: .025em; }
.brand { flex-shrink: 0; }
.header-inner { gap: 24px; }
.main-nav { gap: 25px; }
.hero-copy .eyebrow { font-size: .83rem; letter-spacing: .09em; }
.hero h1 { font-weight: 750; }
.hero h1 span { display: block; }
.hero-directory-link { padding-bottom: 5px; }
.institution-card { display: flex; flex-direction: column; }
.institution-card .card-body { flex: 1; display: flex; flex-direction: column; }
.institution-card .card-actions { margin-top: auto; }
.institution-card .tags { min-height: 25px; }
.news-card h3 a:hover,.card-body h3 a:hover { color: var(--navy); }
.site-footer small { display: block; color: #84978c; font-size: .75rem; margin-top: 12px; letter-spacing: .04em; }
.icp-record { grid-column: 1 / -1; font-size: .8rem; }
.icp-record:empty { display: none; }
.ssr-cover { max-height: 440px; width: 100%; object-fit: cover; border-radius: 14px; margin-block: 24px; }
.ssr-facts { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.ssr-facts dd { margin: 0; }
.ssr-regions { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.seo-cards p { font-size: .9rem; color: var(--muted); }
.seo-environment { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border: 1px solid #e5e4d0; border-radius: 13px; background: #fbfaf2; margin-bottom: 20px; }
.seo-environment .status { flex-shrink: 0; }
.seo-environment p { margin: 0; font-size: .86rem; color: #776e4c; }
.seo-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 24px; }
.seo-metrics > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.seo-metrics strong { display: block; color: var(--navy); font-size: 1.6rem; }
.seo-metrics span { color: var(--muted); font-size: .8rem; }
.seo-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 22px; align-items: start; }
.seo-settings,.seo-aside { display: grid; gap: 20px; min-width: 0; }
.seo-settings .content-card { padding: 25px; }
.seo-section-head { display: flex; gap: 14px; margin-bottom: 22px; }
.seo-section-head > span { display: grid; place-items: center; align-self: start; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: #e9f3ed; color: var(--navy); font-weight: 800; font-size: .8rem; }
.seo-section-head h3 { margin: 0 0 4px; color: var(--ink); font-size: 1.05rem; }
.seo-section-head p,.admin-toolbar p { margin: 0; font-size: .83rem; color: var(--muted); }
.seo-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.field-help { display: block; margin-top: 3px; color: #7b8c81; font-size: .76rem; line-height: 1.7; }
.seo-toggle { display: flex; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid #eef3ef; cursor: pointer; }
.seo-toggle input,.seo-check input { accent-color: var(--navy); width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; }
.seo-toggle strong { display: block; color: var(--ink); font-size: .9rem; }
.seo-toggle small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.seo-toggle + .field { margin-top: 18px; }
.seo-check { display: flex; align-items: center; gap: 9px; font-size: .85rem; margin-block: 12px; }
.seo-key-url { padding: 13px; background: #f5f8f4; border-radius: 10px; margin-block: 18px; overflow-wrap: anywhere; }
.seo-key-url strong { display: block; font-size: .82rem; margin-bottom: 5px; }
.seo-key-url a { color: var(--navy); font-size: .78rem; }
.seo-aside .content-card { padding: 21px; }
.seo-aside h3 { font-size: .95rem; margin: 0 0 15px; color: var(--ink); }
.search-preview { overflow-wrap: anywhere; }
.search-preview > span { font-size: .8rem; }
.search-preview small { display: block; color: #658072; font-size: .72rem; margin-top: 3px; }
.search-preview h3 { margin-top: 15px; color: #244d9a; line-height: 1.55; font-size: 1.02rem; font-weight: 500; }
.search-preview p { color: #67766c; font-size: .8rem; }
.seo-file-links,.seo-operations { display: grid; gap: 12px; }
.seo-file-links a { color: var(--navy); font-size: .85rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.seo-save-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 0; }
.seo-save-bar > span { font-size: .8rem; color: var(--muted); }
.seo-page-editor,.seo-log { margin-top: 24px; }
.seo-page-editor select { min-width: 0; }
.seo-empty { padding: 22px; color: var(--muted); font-size: .88rem; background: #f7faf6; border-radius: 10px; }
@media(min-width:961px) and (max-width:1200px) { .header-inner {gap:18px;} .main-nav {gap:16px;} .brand small {font-size:.66rem;} .seo-layout {grid-template-columns:minmax(0,1fr);} .seo-aside {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:960px) { .seo-layout {grid-template-columns:minmax(0,1fr);} .seo-aside {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:640px) { .brand strong {font-size:1.12rem;} .brand-category {font-size:1rem;} .seo-environment {align-items:start;flex-direction:column;} .seo-metrics {gap:8px;} .seo-metrics > div {padding:12px;} .seo-metrics strong {font-size:1.2rem;} .seo-field-grid,.seo-aside {grid-template-columns:minmax(0,1fr);} .seo-save-bar {align-items:start;flex-direction:column;} .seo-page-editor {padding:20px;} }
.brand small { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.brand-mark {
  width: 43px; height: 43px; border-radius: 13px; background: var(--navy); position: relative;
}
.brand-mark::before {
  content: ""; position: absolute; left: 9px; top: 13px; width: 25px; height: 22px;
  background: var(--paper); clip-path: polygon(50% 0, 100% 40%, 88% 40%, 88% 100%, 12% 100%, 12% 40%, 0 40%);
}
.brand-mark span { position: absolute; z-index: 2; left: 18px; bottom: 8px; width: 8px; height: 12px; border-radius: 8px 8px 2px 2px; background: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 30px; color: #435d57; font-weight: 700; font-size: .94rem; }
.main-nav a { padding: 27px 0 23px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-color: var(--navy); }
.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 14px;
  font-weight: 800; cursor: pointer; transition: .2s ease; background: #fff;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--orange); border-color: var(--orange); box-shadow: 0 8px 20px rgba(231, 125, 93, .2); }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { color: #fff; background: var(--navy); }
.button.ghost { color: var(--navy); border-color: #cddfda; background: #fff; }
.button.compact { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.button.icon { padding: 0 13px; }
.button.saved { color: #fff; background: var(--green); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

#app { min-height: 72vh; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 76px 0; }
.section.tight { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2, .page-title { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.25; letter-spacing: -.025em; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--navy); font-size: .86rem; font-weight: 800; letter-spacing: .07em; }
.eyebrow::before { content: ""; width: 25px; height: 2px; border-radius: 999px; background: var(--orange); }

.hero {
  position: relative; overflow: hidden; color: var(--ink); background: #f2f8f3;
}
.hero::before {
  content: ""; position: absolute; width: 38%; height: 100%; right: 0; top: 0; background: #e5f2e9;
}
.hero::after { display: none; }
.hero-inner { position: relative; z-index: 2; min-height: 525px; padding: 52px 0; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 62px; align-items: center; }
.hero h1 { margin: 0; max-width: 670px; color: var(--ink); font-size: clamp(2.75rem, 4.45vw, 4rem); line-height: 1.2; letter-spacing: -.045em; }
.hero h1 span { color: var(--navy); }
.hero-copy > p { max-width: 590px; margin: 24px 0 0; color: #5d746e; font-size: 1.03rem; line-height: 1.85; }
.hero-search {
  margin-top: 32px; max-width: 640px; padding: 7px; display: flex; gap: 8px; align-items: center;
  border: 1px solid #d8e8de; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(24, 59, 56, .09);
}
.search-mark { margin-left: 14px; color: #7a968b; font-size: 1.6rem; line-height: 1; }
.hero-search input { flex: 1; min-width: 0; padding: 0 3px; border: 0; outline: 0; color: var(--ink); font-size: 1rem; }
.hero-search .button { min-width: 112px; }
.hot-keys { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin-top: 16px; }
.hot-keys > span { color: #7d918a; font-size: .82rem; }
.hot-keys button { padding: 0; border: 0; color: var(--navy); background: transparent; font-size: .84rem; cursor: pointer; }
.hot-keys button:hover { text-decoration: underline; }
.hero-directory-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--navy); font-size: .9rem; font-weight: 800; border-bottom: 1px solid rgba(17,108,97,.35); }
.hero-visual { position: relative; min-width: 0; height: 424px; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 22px 48px rgba(24,59,56,.14); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-visual figcaption { position: absolute; right: 15px; bottom: 14px; padding: 5px 10px; border-radius: 6px; color: #fff; background: rgba(24,59,56,.53); font-size: .72rem; }
.data-ribbon { border-bottom: 1px solid var(--line); background: #fff; color: #667d76; }
.data-ribbon .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: .88rem; font-weight: 600; }
.data-ribbon b { color: var(--ink); font-size: 1rem; }
.data-ribbon i { display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px; border-radius: 50%; background: #a6b9ad; }
.data-ribbon a { color: var(--navy); }
.soft-section { background: #f0f6f1; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-card { position: relative; min-height: 126px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); transition: .2s ease; }
.quick-card::after { content: "↗"; position: absolute; right: 20px; top: 19px; color: #a6bcb0; font-size: 1.2rem; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #aecdc0; }
.quick-icon, .quick-card:nth-child(n) .quick-icon { display: block; width: auto; height: auto; color: var(--orange); background: none; font-size: .82rem; font-weight: 900; letter-spacing: .1em; }
.quick-card h3 { margin: 15px 0 2px; color: var(--ink); font-size: 1.02rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: .84rem; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.institution-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .22s ease; }
.institution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 2.65; overflow: hidden; background: #e9f2ed; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.institution-card:hover .card-media img { transform: scale(1.035); }
.image-fallback { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 3px; color: #5e8d7f; background: linear-gradient(145deg, #e8f3eb, #f5f7ed); }
.image-fallback span { font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; }
.image-fallback small { font-size: .75rem; }
.card-media img ~ .image-fallback { display: none; }
.price-badge { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 7px; color: #fff; background: rgba(24, 59, 56, .88); font-weight: 800; font-size: .8rem; backdrop-filter: blur(8px); }
.card-body { padding: 21px; }
.card-body h3 { margin: 0 0 9px; color: var(--ink); font-size: 1.04rem; line-height: 1.48; }
.card-body .location { margin: 0; color: var(--muted); font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 9px; border-radius: 5px; color: #337863; background: var(--mint); font-size: .76rem; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0f1; }
.text-link { border: 0; padding: 0; color: var(--orange-dark); background: transparent; font-weight: 900; cursor: pointer; }
.save-button { border: 0; padding: 4px 0; color: var(--muted); background: transparent; cursor: pointer; }
.save-button.saved { color: var(--green); font-weight: 800; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe7e7; }
.news-card-content { display: flex; flex-direction: column; padding: 20px; }
.news-card h3 { margin: 9px 0 10px; color: var(--navy); font-size: 1.05rem; line-height: 1.5; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .9rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-meta { display: flex; gap: 8px; color: var(--orange-dark); font-size: .78rem; font-weight: 800; }
.news-card .text-link { margin-top: auto; padding-top: 16px; align-self: flex-start; }

.page-hero { position: relative; padding: 46px 0 39px; color: var(--ink); background: #edf6ef; }
.page-hero::after { display: none; }
.page-hero p { margin: 9px 0 0; color: #627a70; }
.directory-hero { padding: 34px 0; }
.directory-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .63fr); gap: 36px; align-items: center; }
.directory-hero .eyebrow { margin-bottom: 8px; }
.directory-hero .page-title { font-size: clamp(1.85rem, 3.3vw, 2.5rem); }
.directory-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; min-width: 0; padding: 26px 0 74px; }
.filter-workspace { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(24,59,56,.04); }
.filter-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 25px; background: #f7faf6; }
.filter-workspace-head h2 { margin: 1px 0 0; color: var(--ink); font-size: 1.06rem; }
.step-label { color: #788e80; font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.clear-filter { padding: 7px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .85rem; }
.clear-filter:hover { color: var(--orange-dark); }
.filter-row { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 13px 25px; border-top: 1px solid #edf2ee; }
.filter-row.revealed { background: #fbfdfa; }
.filter-label { padding-top: 6px; color: #586d62; font-size: .87rem; font-weight: 800; }
.filter-label span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px; border-radius: 50%; color: var(--navy); background: #e6f2e9; font-size: .7rem; }
.filter-options { display: flex; flex-wrap: wrap; gap: 2px 5px; min-width: 0; max-width: 100%; }
.filter-choice { min-height: 33px; padding: 5px 10px; border: 0; border-radius: 7px; color: #4f665c; background: transparent; font-size: .9rem; cursor: pointer; transition: .18s ease; }
.filter-choice:hover { color: var(--navy); background: var(--sky); }
.filter-choice.active { color: var(--navy); background: #e5f2e9; font-weight: 800; }
.compact-options .filter-choice.active { color: var(--navy); background: #e5f2e9; }
.filter-more-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 25px; border-top: 1px solid #edf2ee; background: #fcfdfb; }
.filter-more-bar > button { display: inline-flex; align-items: center; gap: 9px; padding: 3px 0; border: 0; color: var(--navy); background: none; font-size: .9rem; font-weight: 800; cursor: pointer; }
.filter-more-bar > span { color: #85978b; font-size: .79rem; }
.filter-count { padding: 2px 7px; border-radius: 5px; color: var(--orange-dark); background: #fdf0e9; font-size: .73rem; }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.chevron.up { transform: rotate(225deg) translateY(-2px); }
.advanced-filters { border-top: 1px solid #edf2ee; }
.advanced-filters .filter-row:first-child { border-top: 0; }
.directory-search { display: flex; gap: 8px; align-items: center; padding: 7px; border: 1px solid #d5e5d9; border-radius: 13px; background: #fff; box-shadow: 0 10px 24px rgba(24,59,56,.05); }
.directory-search input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 9px; outline: 0; }
.directory-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(28,170,145,.1); }
.directory-search .button { min-height: 42px; box-shadow: none; }
.directory-results { min-width: 0; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .field-label { color: #405764; font-size: .88rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid #cdd8dc; border-radius: 10px; padding: 9px 11px; outline: 0; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 125, 118, .1); }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.results-toolbar h2 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.results-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.view-switch { display: flex; gap: 6px; }
.view-switch button { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; cursor: pointer; }
.view-switch button.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.results-grid.list { grid-template-columns: 1fr; }
.results-grid.list .institution-card { display: grid; grid-template-columns: 300px 1fr; }
.results-grid.list .card-media { aspect-ratio: auto; min-height: 215px; }
.load-more { margin-top: 28px; display: flex; justify-content: center; }
.empty-state { padding: 54px 25px; text-align: center; border: 1px dashed #bdcbcf; border-radius: var(--radius); color: var(--muted); background: #fff; }
.empty-state strong { display: block; color: var(--navy); font-size: 1.25rem; }

.detail-page { padding: 38px 0 80px; }
.breadcrumbs { margin-bottom: 20px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--orange-dark); }
.detail-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.detail-image { position: relative; overflow: hidden; min-height: 420px; border-radius: 22px; background: #dbe4e5; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.detail-summary { padding: 12px 0; }
.detail-summary h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
.verified { display: inline-flex; margin-bottom: 13px; padding: 4px 9px; border-radius: 7px; color: var(--green); background: #eaf4ef; font-size: .8rem; font-weight: 900; }
.detail-price { margin: 22px 0; padding: 20px; border-radius: 15px; background: var(--cream); }
.detail-price strong { color: var(--orange-dark); font-size: 2rem; }
.detail-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.detail-list span { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-content { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 36px; }
.content-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.content-card h2 { margin: 0 0 18px; color: var(--navy); font-size: 1.35rem; }
.prose { color: #344c59; }
.prose p { margin: 0 0 1em; }
.prose img { margin: 18px auto; border-radius: 12px; }
.source-box { padding: 18px; border-left: 4px solid var(--gold); background: #fff8e7; color: #5b4a28; font-size: .88rem; }
.side-stack { display: grid; align-content: start; gap: 18px; }
.fact-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0f1; font-size: .9rem; }
.fact-row span { color: var(--muted); }

.category-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.category-tabs button { border: 1px solid #cbd7da; border-radius: 999px; padding: 8px 14px; color: #3d5461; background: #fff; cursor: pointer; }
.category-tabs button.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.news-list { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.news-row img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: #dfe7e7; }
.news-row-content { padding: 18px; }
.news-row h3 { margin: 5px 0 8px; color: var(--navy); font-size: 1.08rem; }
.news-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.article-title { max-width: 860px; margin: 0 auto; text-align: center; }
.article-title h1 { color: var(--navy); font-size: clamp(1.8rem, 5vw, 3.1rem); line-height: 1.25; }
.article-body { max-width: 860px; margin: 30px auto 0; padding: 35px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card strong { display: block; margin-bottom: 9px; color: var(--navy); font-size: 1.16rem; }
.service-card p { color: var(--muted); }
.service-number { color: var(--orange); font-size: 2rem; font-weight: 900; }

.comments-wrap { margin-top: 28px; }
.comment-list { display: grid; gap: 12px; margin-top: 18px; }
.comment-item { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.comment-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.stars { color: #d99018; letter-spacing: .08em; }
.comment-item p { margin: 0; color: #3f5662; }
.comment-item small { color: var(--muted); }
.review-note { padding: 11px 13px; border-radius: 10px; color: #6c5428; background: #fff8e7; font-size: .86rem; }

.sources-list { display: grid; gap: 14px; }
.source-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.source-card h3 { margin: 4px 0 7px; color: var(--navy); }
.source-card p { margin: 0; color: var(--muted); }
.source-type { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: var(--green); background: #eaf4ef; font-size: .76rem; font-weight: 900; }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 34px 0 70px; }
.admin-sidebar { position: sticky; top: 96px; align-self: start; padding: 14px; border-radius: 16px; color: #fff; background: var(--navy); }
.admin-sidebar button { width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; color: #d7e2e6; background: transparent; text-align: left; cursor: pointer; }
.admin-sidebar button.active, .admin-sidebar button:hover { color: var(--navy); background: var(--gold); }
.admin-panel { min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-stat strong { display: block; color: var(--navy); font-size: 1.8rem; }
.admin-stat span { color: var(--muted); font-size: .86rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-toolbar h2 { margin: 0; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid #edf0f1; text-align: left; vertical-align: top; font-size: .86rem; }
.admin-table th { color: #4b606a; background: #f4f7f6; }
.admin-table td p { margin: 0; max-width: 380px; }
.status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.status.pending, .status.new { color: #865c12; background: #fff1c8; }
.status.approved, .status.contacted { color: var(--green); background: #e7f3ed; }
.status.rejected, .status.archived, .status.closed { color: #7b4f4f; background: #f5e9e9; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions button { border: 1px solid #cbd6d9; border-radius: 7px; padding: 5px 8px; background: #fff; cursor: pointer; }
.row-actions button.approve { color: var(--green); border-color: #9fc5b5; }
.row-actions button.reject { color: #a34a3f; border-color: #dcb5af; }
.image-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; background: #e8eeee; }

.site-footer { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 45px 0; display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { color: var(--navy); font-size: 1.2rem; font-weight: 900; }
.site-footer p { margin: 7px 0 0; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.source-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; }

.loading-screen { min-height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading-mark { width: 40px; height: 40px; border: 4px solid #dae3e5; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton { position: relative; overflow: hidden; min-height: 250px; border-radius: var(--radius); background: #e5eaeb; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.2s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(8, 27, 40, .72); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 570px); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; color: var(--navy); }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f3; cursor: pointer; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.form-note { padding: 12px; border-radius: 10px; color: #4e5f68; background: #f2f5f5; font-size: .84rem; }
.toast { position: fixed; z-index: 800; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 18px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; }
  .main-nav.open { position: absolute; left: 20px; right: 20px; top: 68px; display: grid; gap: 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 12px 2px; border-bottom: 1px solid #edf0f1; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 30px; min-height: auto; }
  .hero h1 { font-size: clamp(2.25rem, 5vw, 3.2rem); }
  .hero-visual { height: 370px; }
  .directory-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .directory-search { max-width: 600px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-layout { grid-template-columns: 1fr; }
  .detail-hero, .detail-content, .news-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 380px; }
  .side-stack { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; }
  .admin-sidebar button { width: auto; white-space: nowrap; }
}

@media (max-width: 640px) {
  .container, .header-inner, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .hero::before { width: 100%; height: 26%; top: auto; bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 34px; }
  .hero h1 { font-size: 2.38rem; line-height: 1.23; }
  .hero-copy > p { margin-top: 17px; font-size: .96rem; }
  .hero-search { margin-top: 24px; gap: 5px; }
  .hero-search .button { min-width: 91px; padding-inline: 12px; }
  .hero-search input { min-height: 42px; font-size: .9rem; }
  .search-mark { margin-left: 7px; }
  .hero-directory-link { margin-top: 20px; }
  .hero-visual { height: 260px; border-radius: 18px; }
  .data-ribbon .container { padding: 10px 0; align-items: flex-start; flex-direction: column; }
  .section { padding: 50px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 34px 0 28px; }
  .directory-hero .page-title { font-size: 1.9rem; }
  .directory-search { padding: 5px; }
  .filter-workspace-head { align-items: flex-start; flex-wrap: wrap; padding: 17px 18px; }
  .filter-row { grid-template-columns: 1fr; gap: 8px; padding: 13px 18px; }
  .filter-label { padding-top: 0; }
  .filter-more-bar { padding: 13px 18px; }
  .filter-more-bar > span { display: none; }
  .filter-options { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .filter-choice { flex: 0 0 auto; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .quick-card { min-height: 126px; padding: 15px; }
  .quick-card::after { right: 13px; top: 11px; }
  .quick-card h3 { font-size: .96rem; }
  .quick-card p { font-size: .78rem; }
  .card-grid, .news-grid, .results-grid, .service-grid { grid-template-columns: 1fr; }
  .results-grid.list .institution-card { grid-template-columns: 1fr; }
  .results-grid.list .card-media { min-height: auto; aspect-ratio: 4 / 2.65; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .detail-image { min-height: 270px; }
  .detail-content { margin-top: 24px; }
  .content-card, .article-body { padding: 20px; }
  .side-stack { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .news-row img { aspect-ratio: 16 / 9; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Editorial and image management: calm, clear, and consistent with the public site. */
.content-admin-heading { display:flex; gap:24px; justify-content:space-between; align-items:flex-start; margin-bottom:26px; }
.content-admin-heading h2 { font-size:clamp(1.25rem,2vw,1.7rem); line-height:1.5; margin:8px 0 10px; letter-spacing:-.025em; }
.content-admin-heading p { max-width:650px; color:var(--muted); font-size:.9rem; line-height:1.85; }
.content-admin-heading > .button { flex-shrink:0; margin-top:24px; }
.editor-metrics { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-radius:16px; background:#fafcfb; margin-bottom:24px; }
.editor-metrics > div { padding:20px 24px; display:flex; align-items:baseline; gap:12px; }
.editor-metrics > div + div { border-left:1px solid var(--line); }
.editor-metrics strong { font-size:1.8rem; font-weight:650; color:#155948; }
.editor-metrics span { color:var(--muted); font-size:.85rem; }
.editor-empty { border:1px dashed #d6e3dc; border-radius:20px; padding:56px 24px; text-align:center; background:radial-gradient(ellipse at top,#f0f8f3,white 70%); }
.editor-empty h2,.editor-empty h3 { font-size:1.35rem; letter-spacing:-.025em; margin:16px 0 10px; }
.editor-empty p { color:var(--muted); line-height:1.9; margin-bottom:24px; font-size:.94rem; }
.editor-empty-icon { display:inline-grid; place-items:center; width:58px; height:58px; border-radius:18px; color:#32755d; background:#e2f1e9; font-size:1.8rem; }
.editor-tips { display:flex; justify-content:center; gap:26px; flex-wrap:wrap; padding:28px 0 4px; font-size:.8rem; color:var(--muted); }
.modal:has(#articleForm) { width:min(100%,850px); }
.editor-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field > span { display:block; font-size:.85rem; font-weight:650; margin-bottom:8px; }
.article-content-input { min-height:320px; line-height:1.9; resize:vertical; }
.editor-details { border-top:1px solid var(--line); padding:16px 0; }
.editor-details summary { cursor:pointer; font-weight:650; margin-bottom:12px; color:#285b4b; }
.watermark-check { display:flex; gap:10px; align-items:flex-start; font-size:.88rem; line-height:1.7; margin:12px 0; }
.watermark-check input { width:17px; height:17px; margin-top:4px; flex-shrink:0; accent-color:#23775b; }
.editor-actions { position:sticky; bottom:-28px; background:rgba(255,255,255,.97); border-top:1px solid var(--line); padding:18px 0; margin-bottom:0; }
.editor-preview { border:1px solid var(--line); border-radius:14px; padding:26px; background:#fbfdfb; margin:20px 0; overflow-wrap:anywhere; }
.editor-preview h2 { margin:12px 0; }
.media-search { display:flex; gap:10px; margin-bottom:14px; }
.media-search input { flex:1; min-width:0; padding:12px 16px; border:1px solid var(--line); border-radius:10px; background:white; }
.media-library { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:24px 0; }
.media-library-card { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:white; }
.media-library-card > div:last-child { padding:18px; }
.media-library-card h3 { font-size:1rem; line-height:1.6; margin-bottom:8px; }
.media-library-card p { color:var(--muted); font-size:.82rem; margin:8px 0 14px; }
.media-library-preview { aspect-ratio:16/9; background:linear-gradient(135deg,#e9f3ee,#f4f6f0); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px; color:#6b8b7d; }
.media-library-preview img { width:100%; height:100%; object-fit:cover; }
.media-library-preview small { font-size:.8rem; }
.owned-media { position:relative; overflow:hidden; }
.ysl-watermark { position:absolute; right:14px; bottom:14px; z-index:2; font-size:clamp(14px,1.5vw,20px); letter-spacing:.12em; font-weight:700; color:rgba(255,255,255,.92); text-shadow:0 1px 4px #0008; padding:4px 9px; border:1px solid #ffffff60; border-radius:5px; background:#173b2b33; pointer-events:none; }
.card-media .ysl-watermark { top:14px; bottom:auto; font-size:15px; }
.placeholder-building,.image-fallback .placeholder-building { display:grid; place-items:center; width:58px; height:58px; border:1px solid #c1d8ca; border-radius:18px; background:#ffffff66; font-size:2.3rem; font-weight:400; margin-bottom:8px; }
.image-fallback { gap:6px; background:radial-gradient(ellipse at top right,#e1eee4,transparent 65%),linear-gradient(135deg,#eff5f0,#e7eee7); }
.image-fallback span:not(.placeholder-building) { font-size:.95rem; letter-spacing:.04em; font-weight:550; }
.image-fallback small { color:#789486; font-size:.73rem; }
.institution-placeholder { display:flex; height:100%; min-height:320px; padding:28px; flex-direction:column; align-items:center; justify-content:center; color:#5b7c6b; text-align:center; background:linear-gradient(135deg,#e5f0e7,#f4f6ee); }
.institution-placeholder p { margin-top:12px; font-size:.85rem; }
.article-cover { margin:0 0 28px; border-radius:14px; }
.article-cover img { display:block; width:100%; max-height:540px; object-fit:contain; background:#f5f7f4; }
.image-credit { position:static; padding:9px 12px; color:var(--muted); font-size:.75rem; background:#f7f9f6; }
.news-row:not(:has(img)) { grid-template-columns:1fr; }
.news-row:not(:has(img)) > a:empty { display:none; }
.editor-cover { max-width:360px; margin:16px 0; border-radius:10px; }
.editor-cover img { width:100%; }
@media(max-width:700px) {
  .content-admin-heading { flex-direction:column; gap:4px; }
  .content-admin-heading > .button { margin-top:4px; }
  .editor-metrics > div { padding:14px; flex-direction:column; gap:0; }
  .editor-metrics strong { font-size:1.6rem; }
  .editor-two-col,.media-library { grid-template-columns:1fr; }
  .editor-actions { flex-wrap:wrap; bottom:-20px; }
  .editor-empty { padding:36px 18px; }
  .editor-tips { gap:12px; }
}

.modal:has(.institution-editor) { width:min(1100px,100%); }
.modal:has(.institution-editor) > .form-note,.institution-import-guide .field > span { font-size:16px; }
.admin-panel:has(.institution-toolbar) .admin-toolbar p,.admin-panel:has(.institution-toolbar) .admin-table th,.admin-panel:has(.institution-toolbar) .admin-table td { font-size:16px; }
.institution-editor,.institution-import-guide,.institution-import-results { font-size:16px; line-height:1.8; }
.institution-editor-nav { display:flex; gap:8px; overflow-x:auto; padding:0 0 14px; }
.institution-editor-nav button { flex-shrink:0; min-height:46px; padding:8px 14px; border:1px solid var(--line); border-radius:9px; background:#f0f7f2; color:var(--navy); cursor:pointer; font-size:16px; }
.institution-section { border:1px solid var(--line); border-radius:14px; margin:14px 0; scroll-margin-top:16px; }
.institution-section > summary { padding:17px 20px; background:#f4f8f4; cursor:pointer; font-weight:700; font-size:18px; border-radius:14px; }
.institution-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; padding:20px; }
.institution-fields .institution-fields { padding:0; }
.institution-fields .field { min-width:0; margin-bottom:8px; }
.institution-fields .field label,.institution-fields .field span,.institution-fields input,.institution-fields select,.institution-fields textarea { font-size:16px; }
.institution-fields .field small { font-size:16px; color:var(--muted); }
.institution-fields input,.institution-fields select { min-height:48px; }
.institution-wide,.institution-multi { grid-column:1/-1; }
.institution-multi { border:1px solid var(--line); border-radius:10px; padding:14px; }
.institution-multi legend { font-weight:650; padding:0 8px; }
.institution-multi label { display:inline-flex; align-items:center; min-height:48px; gap:10px; margin:2px 20px 2px 0; }
.institution-multi input { width:20px; height:20px; min-height:20px; accent-color:var(--navy); }
.institution-repeat-group h3 { margin:8px 0 12px; font-size:18px; }
.institution-repeat-row { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fbfdfb; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.institution-repeat-row label span { display:block; margin-bottom:7px; font-size:16px; }
.institution-repeat-row input,.institution-repeat-row select { width:100%; border:1px solid #cdd8dc; border-radius:8px; padding:10px; min-width:0; }
.institution-save-bar { position:sticky; bottom:-28px; padding:18px 0; background:white; border-top:1px solid var(--line); }
.institution-save-bar .button { min-height:52px; font-size:16px; }
.institution-toolbar { display:flex; gap:10px; flex-wrap:wrap; }
.card-price { margin:0 0 12px; color:var(--orange-dark); font-weight:700; font-size:16px; }
.institution-import-results { margin-top:24px; }
.institution-import-guide p,.institution-import-results p,.institution-import-results td,.institution-import-results th { font-size:16px; }
.institution-import-results tr.import-phone-warning > td { background:#fff7d6; color:#59400d; }
.institution-import-results tr.import-phone-warning > td:first-child { border-left:4px solid #dca611; }
.import-warning-label { font-weight:700; white-space:nowrap; }
.import-phone-confirm { display:flex; align-items:flex-start; gap:12px; min-height:48px; margin-top:14px; padding:12px; border:1px solid #d1ad42; border-radius:8px; font-size:16px; cursor:pointer; }
.import-phone-confirm input { flex:0 0 22px; width:22px; height:22px; min-height:22px; margin-top:3px; accent-color:#71500a; }
.institution-import-results .button:disabled { opacity:.55; cursor:not-allowed; }
.institution-public-section { margin-top:24px; font-size:16px; }
.institution-public-section dl { margin:0; }
.institution-public-section dl > div { display:grid; grid-template-columns:180px minmax(0,1fr); gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.institution-public-section dt { color:var(--muted); }
.institution-public-section dd { margin:0; overflow-wrap:anywhere; }
.institution-public-section ul { margin:0; padding-left:20px; }
.institution-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.institution-gallery figure { margin:0; min-width:0; }
.institution-gallery img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; }
.institution-gallery figcaption { font-size:16px; padding-top:10px; }
.institution-gallery small { display:block; color:var(--muted); font-size:16px; }
.institution-contact-bar { position:sticky; bottom:0; z-index:90; background:#ffffffef; padding:14px; border:1px solid var(--line); border-radius:14px; display:flex; justify-content:center; gap:12px; margin-top:24px; }
.institution-contact-bar .button { min-height:52px; flex:1; max-width:320px; font-size:18px; }
.detail-hero:not(:has(.detail-image img)) { grid-template-columns:1fr; }
.detail-image:not(:has(img)),.institution-card:has(.image-fallback) .card-media { display:none; }
@media(max-width:700px) {
  .institution-fields,.institution-repeat-row { grid-template-columns:1fr; padding:14px; }
  .institution-fields .field { grid-column:1; }
  .institution-save-bar { bottom:-28px; }
  .institution-public-section dl > div { grid-template-columns:1fr; gap:6px; }
  .institution-gallery { grid-template-columns:1fr; }
  .institution-contact-bar { position:fixed; left:0; right:0; bottom:0; margin:0; padding:12px 14px calc(12px + env(safe-area-inset-bottom)); border-radius:14px 14px 0 0; }
  body:has(.institution-contact-bar) .site-footer { padding-bottom:110px; }
}
