/* Rozvržení Klasiky a karta, výbor a patička z Kroniky. */
:root {
  --blue: #0c71c3;
  --blue-head: #006ac1;
  --blue-dark: #0a4f8a;
  --navy: #0b3558;
  --yellow: #ffb400;
  --sky: #eef5fb;
  --sky-2: #f5f9fe;
  --text: #2a3440;
  --text-2: #526170;
  --line: #d9e5f1;
  --f: 'Poppins', system-ui, sans-serif;
  --f-head: var(--f);
  --foot-bg: var(--blue);
  --r: 14px;
  --wrap: 1180px;
  /* Spacing scale (phase 7b); --density comes from the appearance settings (0.85 compact, 1 normal, 1.2 airy). */
  --density: 1;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section: calc(clamp(2.75rem, 6vw, 4.75rem) * var(--density));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 1rem/1.65 var(--f); color: var(--text); background: #fff; }
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-head); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--f-head); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--blue-dark); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.i { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph { display: block; overflow: hidden; background: var(--sky); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.title { font-size: clamp(1.65rem, 3vw, 2.18rem); font-weight: 700; color: var(--blue-head); text-align: center; }
.title::after { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; background: var(--yellow); margin: .8rem auto 0; }
.title--left { text-align: left; }
.title--left::after { margin-left: 0; }
.lead { text-align: center; color: var(--text-2); margin: var(--space-4) 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px; background: var(--blue-head); color: #fff; font: 600 .91rem/1.25 var(--f); text-decoration: none; border: 1px solid var(--blue-head); }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--sm { padding: .53rem .95rem; font-size: .84rem; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--line { background: transparent; color: var(--blue-head); }

.top { position: sticky; top: 0; z-index: 10; background: #fffffff5; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Member with access to the editorial office (phase 9d): a narrow bar that stays on top with the header. */
.staff-bar { background: var(--navy); color: #fff; font-size: .82rem; }
.staff-bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .9rem; min-height: 2.1rem; padding-block: .15rem; }
.staff-bar form { margin: 0; }
.staff-bar__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3rem; }
.staff-bar button { padding: .15rem .5rem; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 1.9rem; }
.staff-bar button:hover, .staff-bar button:focus-visible { color: var(--yellow); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 77px; gap: .75rem; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav > a, .nav > button, .drop__btn { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); background: none; border: 0; font-size: .9rem; font-weight: 500; }
.nav > a:hover, .nav > button:hover, .drop__btn:hover { color: var(--blue-head); background: var(--sky); }
.nav > a[aria-current] { color: var(--blue-head); }
.drop { position: relative; }
.drop__btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.drop__menu { position: absolute; top: calc(100% + 7px); left: 0; min-width: 220px; padding: .4rem; background: #fff; border-radius: 10px; border-top: 3px solid var(--yellow); box-shadow: 0 16px 30px #0b355826; display: none; }
.drop.is-open .drop__menu { display: block; }
.drop__menu :is(a,button) { display: flex; align-items: center; width: 100%; min-height: 44px; padding: .55rem .68rem; border: 0; background: transparent; border-radius: 7px; color: var(--text); text-decoration: none; text-align: left; font-size: .89rem; }
.drop__menu :is(a,button):hover { background: var(--sky); color: var(--blue-head); }
.burger { display: none; }

.hero { position: relative; min-height: 465px; display: flex; align-items: stretch; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero__photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#08263eeb 0%,#092842c4 38%,#0b32538c 66%,#081d373b); }
.hero__in { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,390px); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; width: 100%; padding-block: 3rem; }
.hero__title { border-left: 5px solid var(--yellow); padding-left: clamp(.8rem, 2.5vw, 1.5rem); }
.hero h1 { font-size: clamp(2.65rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.042em; line-height: 1.05; }
.hero__title p { margin: .8rem 0 0; font-size: clamp(.95rem, 1.65vw, 1.16rem); color: #e6f2ff; max-width: 35ch; }
.latest { position: relative; isolation: isolate; display: grid; gap: .52rem; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid #ffffff46; border-radius: 22px; background: var(--latest-bg, #0866ac); color: #fff; text-align: left; overflow: hidden; box-shadow: 0 30px 55px -23px #041b31b5; transition: transform .2s, background .2s; }
.latest:hover { background: var(--latest-hover, #095891); transform: translateY(-3px); }
.latest::after { content: ""; position: absolute; z-index: -1; right: -64px; bottom: 18px; width: 340px; aspect-ratio: 460 / 110; background: url("retez-karta.svg") center / contain no-repeat; opacity: .12; transform: rotate(-22deg); pointer-events: none; }
.latest__label { display: flex; align-items: center; gap: .35rem; color: #e2f2ff; font-size: .79rem; font-weight: 600; letter-spacing: .03em; }
.latest__label .i { width: 15px; height: 15px; }
.latest__calendar { display: flex; align-items: end; gap: .58rem; color: #e5f2ff; font-size: .84rem; line-height: 1.3; margin: .18rem 0 .4rem; }
.latest__no { font: 700 clamp(3.3rem, 6vw, 5.15rem)/.9 var(--f); color: var(--yellow); letter-spacing: -.07em; }
.latest__title { font-size: clamp(1.08rem, 2vw, 1.4rem); line-height: 1.3; font-weight: 650; }
.latest__more { display: flex; gap: .44rem; align-items: center; margin-top: .55rem; font-size: .86rem; font-weight: 600; }
.latest__more .i { width: 17px; height: 17px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }

.intro { padding: calc(clamp(2rem, 4.5vw, 3rem) * var(--density)) 0 0; }
.intro__text { max-width: 760px; margin: 0 auto; text-align: center; font-size: clamp(1.02rem, 2.15vw, 1.35rem); font-weight: 600; line-height: 1.45; color: var(--blue-head); }
.posts { padding: calc(clamp(2rem, 4.5vw, 3.5rem) * var(--density)) 0 var(--section); background: linear-gradient(180deg,#fff,var(--sky-2) 35%); }
.posts__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.05rem; flex-wrap: wrap; }
.posts__top .title { text-align: left; }
.posts__top .title::after { margin-left: 0; }
.search { display: flex; align-items: center; gap: .6rem; padding-inline: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: min(350px, 100%); color: var(--text-2); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.search input { min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent; font: inherit; font-size: .9rem; width: 100%; color: var(--text); }
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-5) 0; }
.tab { min-height: 40px; font-size: .85rem; font-weight: 500; padding: .43rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.tab:hover { border-color: var(--blue); color: var(--blue-head); }
.tab.is-on { background: var(--blue-head); border-color: var(--blue-head); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(var(--space-5) * var(--density)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px -24px #0b355862; overflow: hidden; }
.card:hover, .card:focus-within { border-color: #95bad6; }
.card__img { aspect-ratio: 16 / 10; }
.card__placeholder { display: grid; place-items: center; background: #e6f2fc url("retez.svg") center / 68% no-repeat; color: var(--blue-head); }
.card__placeholder .i { width: 45px; height: 45px; }
.card__img img[src*="katalog"], .card__img img[src*="kuzelky"] { object-fit: contain; }
.card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.card__body h3 { font-size: 1.05rem; color: var(--blue-head); }
/* Divi listing: title, divider, then "d. m. Y | Category"; no excerpt. */
.card__body .card__meta { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line); gap: .2rem .45rem; }
.card__lock { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 6px 14px -6px #041b31b5; }
.card__lock .i { width: 17px; height: 17px; }
.card__title { border: 0; padding: 0; background: transparent; font-weight: 650; text-align: left; }
.card__title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card__title:hover { text-decoration: underline; }
.card__title:focus-visible { outline: none; }
.card__title:focus-visible::after { outline: 3px solid var(--blue-dark); outline-offset: -3px; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .27rem .62rem; margin-bottom: .45rem; font-size: .77rem; color: var(--text-2); }
.pill { padding: .12rem .5rem; border-radius: 999px; background: var(--sky); color: var(--blue-dark); font-weight: 500; }
.card__body p { margin: .45rem 0 0; font-size: .85rem; color: var(--text-2); }
.empty { margin: 1rem 0 0; padding: 1rem 1.2rem; background: #fff4d6; border-radius: 10px; }

.gallery, .life, .company, .organization, .board { padding-block: var(--section); }
.life, .organization { background: var(--sky); }
.life__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.life__grid :is(a,button) { display: flex; flex-direction: column; align-items: center; gap: .38rem; width: 100%; height: 100%; padding: 1rem .55rem; border: 1px solid var(--line); background: #fff; border-radius: var(--r); color: var(--text); text-align: center; text-decoration: none; }
.life__grid :is(a,button):hover { border-color: var(--blue); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-head); color: #fff; margin-bottom: .2rem; }
.ico .i { width: 23px; height: 23px; }
.life__grid strong { color: var(--blue-head); font-size: .92rem; font-weight: 600; }
.life__grid span:last-child { font-size: .78rem; color: var(--text-2); }
.history { position: relative; padding-block: calc(clamp(4rem,8vw,6.3rem) * var(--density)); isolation: isolate; }
.history__bg { position: absolute; z-index: -1; inset: 0; background: #8b7a62 url("historicke-panorama.webp") center / cover no-repeat; }
.history .wrap { display: flex; justify-content: flex-end; }
.history__box { max-width: 400px; background: #fff; border-radius: var(--r); padding: clamp(1rem,2.6vw,1.55rem); border-top: 4px solid var(--yellow); }
.history__box h2 { color: var(--blue-head); font-size: clamp(1.3rem,2.25vw,1.65rem); }
.history__box p { color: var(--text-2); font-size: .92rem; margin: var(--space-3) 0 var(--space-5); }
.company__grid { display: grid; grid-template-columns: minmax(110px,180px) minmax(0,1fr); gap: 1.2rem clamp(1.2rem,5vw,4rem); align-items: center; }
.company__logo { display: grid; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); }
.company__logo img { max-height: 118px; width: auto; }
.company p, .organization p { max-width: 64ch; color: var(--text-2); margin: var(--space-5) 0; }
.organization__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.organization p { margin: .85rem 0 0; }

/* Kruhové portréty a trojsloupcový kontakt podle Kroniky. */
.board__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-6); }
.board h2 { font-size: clamp(1.55rem,3vw,1.9rem); color: var(--blue-head); }
.board h2 span { color: var(--text-2); margin-left: .35rem; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.people { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: var(--space-5) var(--space-3); }
.people li { text-align: center; }
.people .ph { width: min(100%,96px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto .66rem; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.people .ph img { object-position: center 36%; }
.people li:first-child .ph { box-shadow: 0 0 0 3px var(--yellow); }
.people strong { display: block; font-size: .9rem; line-height: 1.3; color: var(--navy); }
.people span:last-child { font-size: .77rem; color: var(--text-2); }
.foot { background: var(--foot-bg); color: #fff; padding-block: calc(var(--space-7) * var(--density)) var(--space-5); font-size: .91rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.foot :is(a,button) { color: #fff; text-decoration: underline; text-underline-offset: .17em; }
.foot :is(a,button):hover { color: var(--yellow); }
.foot button { background: none; border: 0; padding: 0; }
.foot p { margin: 0; }
.foot address { font-style: normal; }
.foot .foot__name { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-2); }
.foot address + p { margin-top: .35rem; }
.foot__bottom { margin-top: var(--space-6); }
.foot__bottom p { padding-top: var(--space-4); border-top: 1px solid #ffffff40; font-weight: 600; }
/* Account menu of a signed-in member: avatar with initials, profile, settings, sign-out. */
.account .drop__btn { width: auto; gap: .5rem; padding: .3rem .55rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.account .drop__menu { position: absolute; left: auto; right: 0; margin: 0; border-left: 0; border-top: 3px solid var(--yellow); border-radius: 10px; box-shadow: 0 16px 30px #0b355826; }
.account .drop__menu form { margin: 0; }
.account__name { font-weight: 600; font-size: .86rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.avatar--0 { background: #0b65ae; } .avatar--1 { background: #0b3558; } .avatar--2 { background: #8a4f00; }
.avatar--3 { background: #2f6b3b; } .avatar--4 { background: #7a2e5c; } .avatar--5 { background: #4b4f9e; }

dialog { width: min(calc(100% - 2rem),43rem); max-height: 90dvh; padding: clamp(1rem,4vw,1.9rem); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); box-shadow: 0 25px 70px #081e3c50; }
dialog::backdrop { background: #091d31b9; }
dialog h2 { font-size: clamp(1.25rem,3vw,1.7rem); color: var(--navy); }
.dialog__top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .62rem; }
.dialog__top p { margin: 0; color: var(--blue-head); font-size: .8rem; font-weight: 650; }
.dialog__top form { margin-left: auto; }
.dialog__date { color: var(--text-2); font-size: .82rem; }
.close { width: 44px; height: 44px; background: var(--sky); border: 1px solid var(--line); border-radius: 8px; font-size: 1.4rem; line-height: 1; }
dialog img { max-height: 48vh; object-fit: contain; margin-inline: auto; }
.notice { padding: var(--space-3) var(--space-4); background: var(--sky); border-radius: 8px; }
.photo-dialog { width: min(calc(100% - 2rem),63rem); }
.photo-dialog figure { margin: 0; }
.photo-dialog__count { white-space: nowrap; }
/* The stage keeps its size while paging, so the buttons stay in place; the photo is shown whole on a dark ground. */
.photo-dialog__stage { position: relative; height: min(70vh, calc(90vh - 9rem)); height: min(70dvh, calc(90dvh - 9rem)); min-height: 10rem; overflow: hidden; border-radius: .5rem; background: #0b1a2b; }
.photo-dialog__stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.photo-dialog__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 .2rem; border: 1px solid var(--line); border-radius: 50%; background: #ffffffe6; color: var(--navy); font-size: 2rem; line-height: 1; box-shadow: 0 4px 14px #081e3c33; cursor: pointer; }
.photo-dialog__nav:hover { background: #fff; }
.photo-dialog__nav[hidden] { display: none; }
.photo-dialog__nav--prev { left: .5rem; }
.photo-dialog__nav--next { right: .5rem; }
.photo-dialog figcaption { color: var(--text-2); font-size: .84rem; margin-top: .4rem; }

/* Home blocks of the former site (phase 7): login, why join with counters, OS KOVO and Kovák, benefits, partners. */
.join { padding-top: clamp(1.4rem, 3.5vw, 2.2rem); }
.join__in { display: grid; margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-4) var(--space-6); align-items: center; padding: clamp(1rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.8rem); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--r); background: var(--sky-2); }
.join h2 { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--navy); font-size: 1.2rem; }
.join h2 .i { color: var(--blue-head); }
.join p { margin: var(--space-2) 0 0; color: var(--text-2); font-size: .92rem; }
.join__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.join__form label { font-weight: 600; font-size: .9rem; }
.join__form input { flex: 1 1 10rem; min-height: 44px; padding: .45rem .65rem; border: 1px solid #8197ab; border-radius: 8px; font: inherit; }
.join__note { grid-column: 1 / -1; }
.why, .union, .benefits, .partners { padding-block: var(--section); }
.why { background: var(--sky); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 5vw, 4rem); align-items: center; }
.why p { max-width: 64ch; color: var(--text-2); margin: var(--space-4) 0; }
.why .title + p { margin-top: var(--space-5); }
.why .btn { margin-top: var(--space-3); }
.counters { display: grid; gap: 1rem; margin: 0; }
.counters div { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--blue); color: #fff; text-align: center; }
.counters div:first-child { background: #fff; color: var(--navy); border: 1px solid var(--line); padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.counters dt { font-size: clamp(.85rem, 1.8vw, 1rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.counters dd { margin: .4rem 0 0; font-size: clamp(3.6rem, 11vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--blue-head); }
.union__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 5vw, 3.5rem); }
.union article { display: grid; align-content: start; justify-items: start; gap: var(--space-4); }
.union img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.union p { margin: 0; color: var(--text-2); }
.benefits { background: var(--sky); }
.benefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 1.2rem; margin-top: 1.5rem; }
.benefits__grid img { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 12px 30px -24px #0b355862; }
.partners__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem clamp(1.2rem, 4vw, 3rem); margin-top: 1.5rem; }
.partners__grid img { display: block; height: 72px; width: auto; max-width: 200px; object-fit: contain; }
.people__initials { display: grid !important; place-items: center; background: var(--sky); color: var(--blue-head); font-size: 1.6rem; font-weight: 700; }
/* Home photo galleries: four equal thumbnails with the title over the photo. */
.album-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.album-row a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--sky); box-shadow: 0 12px 30px -24px #0b355862; }
.album-row img, .album-row .card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-row a:hover img, .album-row a:focus-visible img { transform: scale(1.05); }
.album-row__cap { position: absolute; inset: auto 0 0; padding: 2.4rem .9rem .8rem; background: linear-gradient(transparent, #082d50eb); font-size: .92rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.gallery__more { margin: 2rem 0 0; text-align: center; }
.gallery-history { margin-top: 1.6rem; font-weight: 600; }
@media (max-width: 1020px) {
  .grid, .album-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burger { display: inline-flex; align-items: center; gap: .38rem; order: 3; min-height: 44px; padding: .42rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--blue-head); font-size: .82rem; font-weight: 600; }
  .top__login { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: .5rem clamp(1rem,4vw,2rem) 1rem; background: #fff; box-shadow: 0 15px 26px #0b355825; }
  .nav.is-open { display: flex; }
  .nav > a, .nav > button, .drop__btn { width: 100%; }
  .drop__menu { position: static; box-shadow: none; border-top: 0; border-left: 3px solid var(--yellow); border-radius: 0; margin-left: .4rem; }
  .people { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .album-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .join__in, .why__grid, .union__grid { grid-template-columns: minmax(0, 1fr); }
  .partners__grid img { height: 56px; }
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: minmax(0,1fr); gap: 1.35rem; padding-block: 2.1rem 1.65rem; }
  .latest { width: min(100%,440px); }
  .grid, .life__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .foot__grid { grid-template-columns: 1fr; gap: .85rem; }
}
@media (max-width: 510px) {
  .top__in { min-height: 66px; gap: .38rem; }
  .logo img { height: 43px; }
  .top__login { font-size: .76rem; padding-inline: .57rem; }
  .top__login .i { display: none; }
  .account__name { display: none; }
  .account .drop__btn { padding: .2rem; }
  .grid { grid-template-columns: 1fr; }
  .company__grid { grid-template-columns: 1fr; }
  .company__logo { max-width: 110px; }
  .people { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Member photos and the general avatar of a person (phase 9f). */
.avatar--photo { object-fit: cover; background: var(--sky); }
.avatar--person { place-items: end center; overflow: hidden; background: var(--sky); color: var(--blue-head); }
.avatar--person svg { width: 80%; height: 80%; fill: currentColor; opacity: .6; }
.people__person { display: grid !important; place-items: end center; color: var(--blue-head); }
.people__person svg { width: 78%; height: 78%; fill: currentColor; opacity: .5; }
.partners__name { display: inline-block; padding: .5rem 1rem; font-weight: 600; color: var(--navy); }
/* Home page modules (phase 9i): spacing and background from fixed lists, and the added modules. */
.hm { position: relative; }
.hm__anchor { position: absolute; top: -80px; }
.hm--top-none > section { padding-top: 0 !important; }
.hm--top-small > section { padding-top: calc(var(--section) * .45) !important; }
.hm--top-large > section { padding-top: calc(var(--section) * 1.6) !important; }
.hm--bottom-none > section { padding-bottom: 0 !important; }
.hm--bottom-small > section { padding-bottom: calc(var(--section) * .45) !important; }
.hm--bottom-large > section { padding-bottom: calc(var(--section) * 1.6) !important; }
.hm--bg-white > section { background: #fff !important; }
.hm--bg-light > section { background: var(--sky) !important; }
.hm--bg-blue > section { background: var(--blue) !important; color: #fff; }
.hm--bg-blue > section :is(h2, h3, h4, p, li, a:not(.btn)) { color: #fff; }
.hm--bg-blue > section .btn { background: #fff; color: var(--blue-head); border-color: #fff; }
.hm-section { padding-block: var(--section); }
.hm-narrow { max-width: 820px; }
.hm-prose > :first-child { margin-top: 0; }
.hm-prose > :last-child { margin-bottom: 0; }
.hm-prose h3 { margin: 1.4rem 0 .5rem; font-size: 1.25rem; color: var(--navy); }
.hm-prose h4 { margin: 1.1rem 0 .4rem; font-size: 1.05rem; color: var(--navy); }
.hm-prose p, .hm-prose li { color: var(--text-2); }
.hm-prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 3px solid var(--blue); background: var(--sky); }
.hm-text .title, .hm-image .title { margin-bottom: var(--space-5); }
.hm-image figure { margin: 0 auto; text-align: center; }
.hm-image img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.hm-image--narrow figure { max-width: 520px; }
.hm-image--normal figure { max-width: 900px; }
.hm-image--full .wrap { max-width: none; padding-inline: 0; }
.hm-image--full img { border-radius: 0; }
.hm-image figcaption { margin-top: .6rem; font-size: .9rem; color: var(--text-2); }
.hm-split__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hm-split__image { display: block; width: 100%; height: auto; border-radius: var(--r); }
.hm-split--left .hm-split__image { order: -1; }
.hm-cta__box { text-align: center; }
.hm-cta__box p { margin: var(--space-4) auto var(--space-5); max-width: 60ch; color: var(--text-2); }
.hm-photos__grid { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.hm-photos__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.hm-divider { padding-block: calc(var(--section) * .35); }
.hm-divider hr { margin: 0; border: 0; border-top: 1px solid var(--line); }
.benefits__title { display: block; padding: 1rem; text-align: center; color: var(--navy); }
.benefits__text { margin: .6rem 0 0; font-size: .92rem; color: var(--text-2); text-align: center; }
.benefits__more { margin: .3rem 0 0; text-align: center; font-size: .92rem; }
@media (max-width: 720px) {
  .hm-split__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-split--left .hm-split__image { order: 0; }
  .hm-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.is-preview a, .is-preview button, .is-preview input, .is-preview form { pointer-events: none; }
