/*
    Theme Name: Russian Scientist Club
    Theme URI: https://www.russianscientist.org
    Description: Custom theme for the Massachusetts' Club of Russian-Speaking Scientists.
    Version: 1.0
    Author: Massachusetts' Club of Russian-Speaking Scientists
    Author URI: https://www.russianscientist.org
*/

/*------------------------------------*\
    ROOT VARIABLES
\*------------------------------------*/

:root {
    --navy: #24406b;
    --navy-dark: #16294a;
    --navy-deep: #1b2942;
    --ink: #1a2332;
    --ink-heading: #16213a;
    --text: #22303f;
    --text-muted: #4d5765;
    --text-soft: #5a6472;
    --line: #dde3ea;
    --line-soft: #eaeef3;
    --tint: #eff2f7;
    --tint-cool: #f8fafc;
    --tint-nav: #eaeff6;
    --tint-bar: #f1f4f8;
    --footer-text: #d3dbe7;
    --footer-muted: #9fb2ce;
    --footer-line: #2b3d5c;
    --focus: #a8c0e4;
    --placeholder-a: #dfe5ee;
    --placeholder-b: #eaeef4;
    --serif: 'PT Serif', Georgia, serif;
    --sans: 'PT Sans', Helvetica, Arial, sans-serif;
}

/* global box-sizing */
*,
*:after,
*:before {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}

* {
    min-height: 0;
    min-width: 0;
}

/* html element 62.5% font-size for REM use */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* The page background lives on .wrapper, not on body: anything that ends up
   below the footer — a plugin's injected container, a trailing margin — then
   reads as footer instead of showing a pale strip across the bottom. */
body {
    color: var(--ink);
    background: var(--navy-deep);
    font: 400 1.6rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    vertical-align: bottom;
    height: auto;
}

/* Lightspeed Lazy load fade in */
img[data-lazyloaded] {
    opacity: 0;
}

img.litespeed-loaded {
    transition: opacity .5s linear 0.2s;
    opacity: 1;
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--navy-dark);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

p, ul, ol {
    font-size: 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink-heading);
    line-height: 1.25;
    text-wrap: pretty;
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 2.0rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.5rem; }

blockquote {
    margin: 25px 0;
    padding: 25px 0 25px 5vw;
    font-style: italic;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* accessibility helpers */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 1rem 1.6rem;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

.wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    background: #e9edf3;
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 2560px;
}

.container {
    max-width: 1120px;
    align-self: center;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.site-main {
    flex: 1 auto;
    background: #fff;
    width: 100%;
}

/* Section backgrounds run edge to edge; .container keeps the content aligned. */
.site-main > section,
.site-main > .home-banner {
    width: 100%;
    border-top: 1px solid var(--line);
}

.site-main > section:first-child,
.site-main > .home-banner:first-child {
    border-top: 0;
}

/*------------------------------------*\
    BUTTONS
\*------------------------------------*/

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 1.2rem 2.2rem;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border-color: #6d84a8;
    color: #fff;
}

.btn-outline-light:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/*------------------------------------*\
    HEADER
\*------------------------------------*/

.header {
    background: #fff;
    border-bottom: 3px solid var(--navy);
    width: 100%;
}

/* utility bar */
.utility-bar {
    background: var(--tint-bar);
    border-bottom: 1px solid var(--line);
    font-size: 1.4rem;
    color: var(--text-muted);
}

.utility-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
    justify-content: space-between;
    align-items: center;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.utility-note {
    margin: 0;
    font-size: 1.4rem;
}

.utility-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
}

.utility-sep {
    width: 1px;
    height: 1.6rem;
    background: #b9c2cd;
}

.utility-link {
    font-weight: 700;
    color: var(--navy);
}

/* GTranslate switcher — normalise the plugin's own markup */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher .gtranslate_wrapper,
.language-switcher .gt_container,
.language-switcher .gt_selector {
    margin: 0;
}

.language-switcher select,
.language-switcher .gt_selector {
    font-family: var(--sans);
    font-size: 1.35rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c3ccd7;
    border-radius: 4px;
    padding: .4rem 2.2rem .4rem .8rem;
    min-height: 3.2rem;
    cursor: pointer;
}

.language-switcher a { font-size: 1.35rem; }

.language-switcher img {
    display: inline-block;
    vertical-align: middle;
}

/* language switcher (GTranslate widget) */
.language-switcher select,
.language-switcher .gt_selector {
    font-family: var(--sans);
    font-size: 1.4rem;
    padding: .5rem .8rem;
    border: 1px solid #b9c2cd;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    max-width: 16rem;
}

.language-switcher .gt_switcher_wrapper,
.language-switcher .gtranslate_wrapper {
    line-height: 1;
}

/* masthead */
.masthead {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem 2.2rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex: 1 1 34rem;
    min-width: 0;
}

.site-brand:hover { text-decoration: none; }

.site-identity {
    display: block;
    min-width: 0;
}

.site-name {
    display: block;
    /* font-family: var(--serif); */
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #bc241f;
    text-wrap: balance;

    font-family: "Days One", sans-serif;
    max-width: 300px;
    text-align: center;
    line-height: 1.7;
}

.site-name-accent {
	color: #92160e;
}

.site-subtitle {
    display: block;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: .4rem;
}

.logo-img {
    backface-visibility: hidden;
    display: block;
    width: auto;
    height: auto;
    max-height: 6.6rem;
    max-width: 100%;
    flex: none;
}

.masthead-tools {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: none;
}

/* search */
.site-search {
    display: flex;
    align-items: stretch;
}

.site-search input[type="search"] {
    font-family: var(--sans);
    font-size: 1.5rem;
    color: var(--ink);
    border: 1px solid #b9c2cd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 1rem 1.3rem;
    width: 21rem;
    background: #fff;
}

.site-search button {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 0 5px 5px 0;
    padding: 1rem 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-search {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
}

.site-search button:hover { background: var(--navy-dark); }

/* mobile nav toggle */
.nav-toggle {
    display: none;
    align-items: center;
    gap: .9rem;
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--navy);
    border-radius: 5px;
    padding: 1rem 1.4rem;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars:before,
.nav-toggle-bars:after {
    display: block;
    width: 1.8rem;
    height: 2px;
    background: var(--navy);
    content: '';
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars:before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars:after { position: absolute; top: 6px; left: 0; }

/*------------------------------------*\
    NAVIGATION
\*------------------------------------*/

.nav {
    border-top: 1px solid var(--line);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.nav-list li {
    position: relative;
    display: flex;
    align-items: stretch;
    border-bottom: 4px solid transparent;
}

.nav-list li > a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #26303f;
    line-height: 1.3;
}

.nav-list li > a:hover {
    color: var(--navy);
    text-decoration: none;
}

.nav-list li:hover,
.nav-list li.is-open {
    background: var(--tint-nav);
    border-bottom-color: #7d93b8;
}

.nav-list .current-menu-item,
.nav-list .current_page_item,
.nav-list .current-menu-parent,
.nav-list .current-menu-ancestor,
.nav-list .current-post-ancestor {
    background: var(--tint-nav);
    border-bottom-color: var(--navy);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-menu-ancestor > a {
    color: var(--navy);
}

.nav-list .menu-item-has-children > a {
    padding-right: .6rem;
}

/* submenu toggle button */
.submenu-toggle {
    background: none;
    border: none;
    padding: 0 1.3rem 0 .5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.submenu-toggle span {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
}

.menu-item-has-children.is-open > .submenu-toggle span {
    border-top: none;
    border-bottom: 6px solid var(--navy);
}

/* submenu panel */
.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 24rem;
    background: #fff;
    border: 1px solid #ccd5e0;
    border-top: none;
    box-shadow: 0 8px 20px rgba(22, 33, 58, .14);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 40;
}

.nav-list .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.nav-list .sub-menu li {
    display: block;
    border-bottom: 1px solid var(--line-soft);
    border-left: 0;
}

.nav-list .sub-menu li:last-child { border-bottom: none; }

.nav-list .sub-menu li:hover,
.nav-list .sub-menu li.is-open {
    background: var(--tint-nav);
    border-bottom-color: var(--line-soft);
}

.nav-list .sub-menu li > a {
    display: block;
    padding: 1.2rem 1.8rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    white-space: normal;
}

/*------------------------------------*\
    NOTIFICATION BANNER
\*------------------------------------*/

.notification-banner {
    padding: 1rem 0;
    font-size: 1.6rem;
    text-align: center;
    width: 100%;
    max-width: 1120px;
    align-self: center;
}

.notification-banner .container {
    position: relative;
    padding-right: 4rem;
}

.notification-banner p { margin: 0; }
.notification-banner a { color: inherit; text-decoration: underline; }

.notification-banner .close-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .6rem;
}

/*------------------------------------*\
    HOME — BANNER + WELCOME
\*------------------------------------*/

.home-banner {
    position: relative;
    line-height: 0;
    width: 100%;
}

.home-banner-img {
    display: block;
    width: 100%;
    height: clamp(20rem, 26vw, 34rem);
    object-fit: cover;
}

/* caption sits full-bleed but stays aligned to the content column */
.home-banner-caption-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.6rem;
    line-height: 1;
}

.home-banner-caption {
    display: inline-block;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-muted);
    background: rgba(255, 255, 255, .92);
    padding: .5rem 1.1rem;
    border-radius: 4px;
}

.home-welcome { padding: 3.4rem 0; }

.home-welcome-text { max-width: 62ch; }

.home-title {
    font-size: clamp(2.4rem, 2.6vw, 3.1rem);
    margin: 0 0 1.4rem;
}

.home-intro p {
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 1.4rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.8rem 0 0;
}

/* featured photo above the facts panel */
.home-feature {
    margin: 0 0 1.8rem;
    line-height: 0;
}

.home-feature-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.home-feature-caption {
    display: block;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: .8rem;
}

.home-facts-image {
    margin: 1.8rem 0 0;
    line-height: 0;
}

.home-facts-image-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}

/* facts panel */
.home-facts {
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 2.2rem 2.4rem;
}

.panel-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
}

.fact-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.facts-link {
    display: inline-block;
    margin-top: 1.8rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.fact {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
}

.fact-number {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    min-width: 7.2rem;
}

.fact-label {
    margin: 0;
    font-size: 1.5rem;
    color: #3d4754;
    line-height: 1.45;
}

/*------------------------------------*\
    HOME — SECTION CARDS
\*------------------------------------*/

.home-sections { padding: 2.6rem 0 3.4rem; }

.section-title {
    font-size: 2.3rem;
    margin: 0;
}

.section-lede {
    font-size: 1.55rem;
    color: var(--text-soft);
    margin: .6rem 0 2rem;
    max-width: 70ch;
}

.section-cards .column { display: flex; }

.section-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--navy);
    border-radius: 6px;
    padding: 1.8rem 2rem;
}

.section-card:hover {
    background: var(--tint-cool);
    box-shadow: 0 3px 10px rgba(26, 35, 50, .09);
    text-decoration: none;
}

.section-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.section-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.3;
}

.section-card-count {
    flex: none;
    font-size: 1.3rem;
    color: var(--text-soft);
    background: var(--tint);
    padding: .2rem .9rem;
    border-radius: 11px;
}

.section-card-desc {
    font-size: 1.45rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/*------------------------------------*\
    HOME — SPLIT (EVENTS + PUBLICATIONS)
\*------------------------------------*/

.home-split-col {
    padding: 3rem 0;
    height: 100%;
}

.home-split-col.is-tinted {
    background: var(--tint-cool);
}

.block-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.6rem;
}

.block-more {
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-note {
    font-size: 1.5rem;
    color: var(--text-soft);
    margin: 0;
}

/* events */
.event-list,
.pub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-item > a {
    display: flex;
    gap: 1.8rem;
    padding: 1.6rem 1.4rem 1.6rem 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: flex-start;
}

.event-item > a:hover {
    background: var(--tint-cool);
    text-decoration: none;
}

.event-date {
    flex: none;
    width: 7.4rem;
    text-align: center;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .8rem 0;
}

.event-day {
    display: block;
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: .3rem;
}

.event-title {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.35;
}

.event-meta {
    display: block;
    font-size: 1.45rem;
    color: var(--text-muted);
    margin-top: .5rem;
    line-height: 1.5;
}

/* publications */
.pub-item > a {
    display: flex;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid #e6ebf1;
    align-items: flex-start;
}

.pub-item > a:hover { text-decoration: none; }

.pub-cover {
    flex: none;
    width: 4.8rem;
    display: block;
}

.pub-cover-img {
    width: 4.8rem;
    height: 6.4rem;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 3px;
    display: block;
}

.pub-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.35;
}

.pub-meta {
    display: block;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-top: .4rem;
}

.pub-file {
    display: inline-block;
    margin-top: .6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

/*------------------------------------*\
    CARDS + PHOTO GRIDS
\*------------------------------------*/

.home-archive { padding: 3rem 0; }

.card-grid .column { display: flex; }

.card {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 3px 12px rgba(26, 35, 50, .1);
    text-decoration: none;
}

.card-media-wrap {
    display: block;
    position: relative;
    line-height: 0;
}

.card-media {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

/* neutral placeholder when no featured image is set */
.is-placeholder {
    display: block;
    width: 100%;
    background-image: repeating-linear-gradient(45deg,
        var(--placeholder-a) 0, var(--placeholder-a) 11px,
        var(--placeholder-b) 11px, var(--placeholder-b) 22px);
}

.card-media.is-placeholder { height: 12rem; }
.photo-media.is-placeholder { height: 13rem; }
.pub-cover-img.is-placeholder { height: 6.4rem; }

.card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    padding: .3rem 1rem;
    border-radius: 3px;
    line-height: 1.4;
}

.card-body {
    display: block;
    padding: 1.6rem 1.8rem;
}

.card-meta {
    display: block;
    font-size: 1.35rem;
    color: var(--text-soft);
    margin-bottom: .5rem;
}

.card-title {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.35;
}

/* celebrations */
.home-celebrations {
    padding: 3rem 0;
    background: var(--tint-cool);
}

.photo-item { display: block; }
.photo-item:hover { text-decoration: none; }

/*------------------------------------*\
    ELEVATION
    A single soft shadow, shared by cards and images so the page keeps one
    light source. Deliberately faint — the design leans on rules and tint.
\*------------------------------------*/

.section-card,
.card,
.photo-media,
.pb-photo-img,
.pb-figure-img,
.home-feature-img,
.venue-photo,
.page-figure img,
.pub-cover-img {
    box-shadow: 0 1px 2px rgba(26, 35, 50, .05), 0 2px 8px rgba(26, 35, 50, .05);
}

.section-card:hover,
.card:hover,
.photo-item:hover .photo-media,
.pb-photo:hover .pb-photo-img {
    box-shadow: 0 2px 4px rgba(26, 35, 50, .07), 0 6px 18px rgba(26, 35, 50, .1);
}

.section-card,
.card,
.photo-media,
.pb-photo-img {
    transition: box-shadow .18s ease, border-color .18s ease;
}

.photo-media {
    display: block;
    width: 100%;
    height: 13rem;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.photo-title {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink-heading);
    margin-top: .9rem;
    line-height: 1.4;
}

.photo-meta {
    display: block;
    font-size: 1.35rem;
    color: var(--text-soft);
    margin-top: .2rem;
}

/*------------------------------------*\
    HOME — MEMORIAL BAND
\*------------------------------------*/

.home-memorial {
    background: var(--tint);
    padding: 2.8rem 0;
}

.home-memorial .panel-title,
.home-memorial .panel-text { max-width: 62ch; }

.panel-text {
    font-size: 1.55rem;
    color: #3d4754;
    margin: .5rem 0 0;
    line-height: 1.6;
}

/*------------------------------------*\
    EDITOR MANUAL
\*------------------------------------*/

.manual { padding: 3.2rem 0 4.5rem; }

.manual-toc {
    position: sticky;
    top: 2rem;
    border-left: 2px solid var(--line);
    padding-left: 1.6rem;
}

.manual-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.manual-toc a {
    font-size: 1.45rem;
    line-height: 1.4;
    color: #3a434f;
}

.manual-body { max-width: 78ch; }

.manual-body h2 {
    font-size: 2.2rem;
    margin: 3.4rem 0 1.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: 2rem;
}

.manual-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.manual-body h3 {
    font-size: 1.7rem;
    margin: 2.2rem 0 .6rem;
}

.manual-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .1em .4em;
}

.manual-note {
    background: var(--tint);
    border-left: 3px solid var(--navy);
    border-radius: 0 5px 5px 0;
    padding: 1.2rem 1.5rem;
}

.manual-note p:last-child { margin-bottom: 0; }

/* screenshots of the admin, for the person who adds a talk every week */
.manual-shot {
    margin: 1.6rem 0 2.4rem;
}

.manual-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}

.manual-shot img + img { margin-top: 1.2rem; }

/* the right-hand column of the editor is tall and narrow — held back so it
   does not tower over the page */
.manual-shot.is-side {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.manual-shot.is-side img {
    flex: 1 1 22rem;
    max-width: 26rem;
    margin-top: 0;
}

.manual-shot figcaption {
    margin-top: .8rem;
    font-size: 1.35rem;
    color: var(--text-muted);
}

/*------------------------------------*\
    PAGE BUILDER BLOCKS
\*------------------------------------*/

.pb { padding: 3.4rem 0; }

.pb + .pb { padding-top: 0; }

.page-body + .pb { padding-top: 0; }

.pb-inner.is-narrow { max-width: 74ch; }

/* the shared .entry-content cap would defeat the width choice */
.pb .entry-content { max-width: none; }

.pb .section-title { margin-bottom: 1.4rem; }

/* фото и текст */
.pb-media.is-reversed .pb-media-figure { order: 2; }

.pb-figure { margin: 0; }

.pb-figure-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.pb-figure-caption {
    display: block;
    font-size: 1.35rem;
    color: var(--text-soft);
    margin-top: .8rem;
}

.pb-actions {
    margin: 1.8rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* галерея */
.pb-photo { display: block; }

.pb-photo:hover { text-decoration: none; }

/* lightbox chrome, toned down to match the site */
.lb-outerContainer,
.lb-dataContainer { border-radius: 5px; }

.lb-data .lb-caption {
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
}

.lb-data .lb-number {
    font-family: var(--sans);
    font-size: 1.2rem;
}

.pb-photo-img {
    display: block;
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.pb-photo:hover .pb-photo-img { border-color: var(--navy); }

.pb-photo-caption {
    display: block;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: .7rem;
}

/* врезка */
.callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 2.2rem 2.4rem;
}

.callout-body { flex: 1 1 30rem; }

.callout .panel-text { margin-bottom: 0; }

.callout.is-navy {
    background: var(--navy-deep, #1e2c46);
    border-color: var(--navy-deep, #1e2c46);
}

.callout.is-navy .panel-title { color: #fff; }

.callout.is-navy .panel-text { color: #c7d0de; }

.btn-light {
    background: #fff;
    border: 1px solid #fff;
    color: var(--navy);
}

.btn-light:hover {
    background: var(--tint);
    border-color: var(--tint);
    color: var(--navy-dark);
    text-decoration: none;
}

/*------------------------------------*\
    FILTER BAR
\*------------------------------------*/

.page-title-en {
    font-family: var(--serif);
    font-size: .62em;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
}

.type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.8rem;
}

.type-chip {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a434f;
    background: #fff;
    border: 1px solid #c4ccd6;
    border-radius: 22px;
    padding: .9rem 1.8rem;
    line-height: 1.2;
}

.type-chip:hover {
    border-color: var(--navy);
    color: var(--navy);
    text-decoration: none;
}

.type-chip.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem;
    margin-bottom: 2.4rem;
}

.filter-field {
    margin: 0;
    flex: 1 1 16rem;
    min-width: 0;
}

.filter-search { flex: 2 1 24rem; }

.filter-field input[type="search"],
.filter-field select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-family: var(--sans);
    font-size: 1.5rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c4ccd6;
    border-radius: 5px;
    padding: 1.1rem 1.3rem;
    min-height: 4.6rem;
}

.filter-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234d5765' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.3rem center;
    background-size: 1.1rem;
    padding-right: 3.6rem;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0;
    flex: 0 0 auto;
}

.filter-actions .btn { margin: 0; }

.filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    flex: none;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid #c4ccd6;
    border-radius: 5px;
}

.filter-reset:hover {
    color: var(--navy);
    border-color: var(--navy);
    text-decoration: none;
}

.filter-reset svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

.filter-count {
    font-size: 1.45rem;
    color: var(--text-muted);
    margin: 0 0 1.6rem;
}

/*------------------------------------*\
    TALK CARDS
\*------------------------------------*/

.talk-cards {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.talk-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 1px 2px rgba(30, 45, 70, .05);
}

.talk-card:hover {
    border-color: #c4d0e0;
    box-shadow: 0 3px 10px rgba(30, 45, 70, .09);
}

.talk-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--tint-cool);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.talk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talk-thumb.is-empty {
    background-image: repeating-linear-gradient(45deg, #e2e7ee, #e2e7ee 10px, #eef1f5 10px, #eef1f5 20px);
}

.talk-thumb-mark {
    font-size: 2.2rem;
    color: var(--navy);
    opacity: .55;
}

.talk-thumb-mark.is-doc {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.talk-card-body { min-width: 0; }

.talk-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0 0 .6rem;
}

.talk-type {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--tint-cool);
    border-radius: 3px;
    padding: .3rem .9rem;
    line-height: 1.4;
}

.talk-card-date {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.talk-card-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.talk-card-title a { color: var(--ink-heading); }

.talk-card-by {
    font-size: 1.45rem;
    color: var(--text-muted);
    margin: .5rem 0 0;
}

.talk-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 1.1rem 0 0;
}

.talk-link {
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: underline;
}


body.page-template-template-kak-vstypit-v-klub .entry-content,
body.page-template-template-kak-vstypit-v-klub .pb-inner.is-narrow   {
    max-width:100%;
}

body.page-template-template-kak-vstypit-v-klub .container.page-body {
    padding-bottom: 0px;
}

body.page-template-template-kak-vstypit-v-klub .pb.pb-callout {
    padding-bottom: 0px;
}

@media only screen and (min-width: 700px) {

    .talk-card {
        grid-template-columns: 17rem 1fr;
        gap: 2rem;
        align-items: start;
    }
}

.season-current {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: white
}

.season-time {
    display: block;
    font-size: 1.55rem;
    color: var(--text-muted);
    margin-top: .4rem;
}

.season-intro {
    max-width: 70ch;
    margin-bottom: 3rem;
}

/*------------------------------------*\
    BOOKSHELF (Издания)
\*------------------------------------*/

.author-index {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem 1.4rem;
    padding: 1.4rem 1.6rem;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 2.8rem;
    font-size: 1.45rem;
}

.author-index-label {
    font-weight: 700;
    color: var(--text-muted);
}

.shelf-group { margin-bottom: 3.2rem; }

.shelf-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid var(--navy);
}

.shelf-portrait {
    flex: none;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--tint-cool);
}

.shelf-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shelf-head-text { min-width: 0; }

.shelf-note {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin: .2rem 0 0;
}

.shelf-author {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-heading);
    margin: 0;
}

/* the heading carries the rule when it stands alone */
.shelf-group > .shelf-author {
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--navy);
}

/* Проза / Поэзия bands inside one section */
.section-band { margin-bottom: 4rem; }

.section-band-title {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ink-heading);
    margin: 0 0 2rem;
    padding: 1rem 1.6rem;
    background: var(--tint-cool);
    border: 1px solid #c9d5e4;
    border-radius: 6px;
}

/* list-style sections: prose, poetry, memoirs */
.title-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
}

.title-row:last-child { border-bottom: none; }

.title-row:hover { background: var(--tint); }

.title-main { flex: 1 1 20rem; min-width: 0; }

.title-link {
    display: block;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.4;
}

.title-imprint,
.title-parts {
    display: block;
    font-size: 1.3rem;
    color: var(--text-soft);
    margin-top: .2rem;
}

.title-actions { flex: none; }

.title-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex: none;
}

.title-tag {
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .25rem .8rem;
    line-height: 1.5;
    white-space: nowrap;
}

/*------------------------------------*\
    TABLES IN CONTENT
\*------------------------------------*/

/*
 *  Archive items are often a pasted table of 20-30 rows. On a phone a table
 *  that wide cannot reflow, so it scrolls sideways inside its own box rather
 *  than stretching the page or crushing the columns.
 */
.entry-content table {
    width: 100%;
    max-width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    margin: 0;
    font-size: 1.45rem;
    background: #fff;
    table-layout: auto;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 2.4rem 0;
    background: #fff;
}

.entry-content table th,
.entry-content table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.entry-content table th:last-child,
.entry-content table td:last-child { border-right: none; }

.entry-content table tr:last-child td { border-bottom: none; }

.entry-content table th {
    font-weight: 700;
    color: var(--ink-heading);
    background: var(--tint-cool);
    border-bottom: 2px solid #c9d5e4;
    white-space: nowrap;
}

.entry-content table tr:hover td { background: var(--tint); }

/* the old site set widths, colours and fonts inline on every cell */
.entry-content table[border],
.entry-content table[bgcolor],
.entry-content table td[bgcolor],
.entry-content table td[width] {
    background-image: none;
}

.entry-content table font {
    font-size: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
}

.entry-content table p { margin: 0; }

.entry-content table p + p { margin-top: .6rem; }

.entry-content table a { font-weight: 700; }

/* a page-number column reads better tight and right-aligned */
.entry-content table td:last-child,
.entry-content table th:last-child {
    white-space: nowrap;
    width: 1%;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

/* section headings inside a pasted table span the full width */
.entry-content table td[colspan],
.entry-content table th[colspan] {
    background: var(--tint-cool);
    font-weight: 700;
    color: var(--ink-heading);
    text-align: left;
    white-space: normal;
    width: auto;
}

@media only screen and (max-width: 700px) {

    .entry-content table { font-size: 1.35rem; }

    .entry-content table th,
    .entry-content table td { padding: .9rem 1.1rem; }
}

/* the shelf author heading sits inside a band, so it steps down a level */
.section-band .shelf-author { font-size: 1.8rem; }

.section-band .shelf-head {
    border-bottom-width: 1px;
    border-bottom-color: var(--line);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 2.4rem 2rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-cover {
    display: block;
    background: var(--tint-cool);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(30, 45, 70, .1);
    aspect-ratio: 3 / 4;
}

.book-cover:hover {
    box-shadow: 0 6px 16px rgba(30, 45, 70, .18);
    text-decoration: none;
}

.book-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--serif);
    font-size: 4.4rem;
    color: #b3c0d2;
}

.book-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.book-title a { color: var(--ink-heading); }

.book-author {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-muted);
    margin: .3rem 0 0;
}

.book-imprint {
    font-size: 1.3rem;
    color: var(--text-soft);
    margin: .3rem 0 0;
}

/* single publication */
.book-figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(30, 45, 70, .14);
}

.book-figure-img {
    display: block;
    width: 100%;
    height: auto;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

.book-imprint-line {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 0 2.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.book-annotation { max-width: 64ch; }

/* the annotation column stacks several blocks, so each heading after the
   first needs air above it — otherwise a heading sits on the block before it */
.book-detail .section-title {
    margin: 3.4rem 0 1.4rem;
}

.book-detail > .section-title:first-child {
    margin-top: 0;
}

.book-detail .entry-content + .section-title,
.book-detail .cover-strip + .section-title {
    margin-top: 3.8rem;
}

.book-more-heading { margin-top: 3.8rem; }

.book-more { margin-bottom: 0; }

.cover-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.6rem;
    margin: 0 0 1rem;
}

.cover-thumb {
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--tint-cool);
}

.cover-thumb:hover {
    border-color: var(--navy);
    box-shadow: 0 3px 10px rgba(30, 45, 70, .16);
}

.cover-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* contents rows carry no year or page column, so the middle track is dropped */
.contents-list .work-item {
    grid-template-columns: 2.6rem 1fr auto;
    grid-template-areas: "num main pdf";
}

.contents-list .work-title {
    font-family: var(--serif);
    font-size: 1.65rem;
}

/* оглавление — chapter names only, no files */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 1.4rem 1.8rem;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 6px;
    columns: 2;
    column-gap: 3rem;
}

.toc-list li {
    font-size: 1.5rem;
    line-height: 1.65;
    color: #3a434f;
    break-inside: avoid;
    padding-left: 1.2rem;
    position: relative;
}

.toc-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 5px;
    height: 1px;
    background: #a9b4c2;
}

@media only screen and (max-width: 600px) {
    .toc-list { columns: 1; }
}

/*------------------------------------*\
    WORKS (Труды)
\*------------------------------------*/

.work-band { margin-bottom: 2.8rem; }

.work-band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
    background: var(--tint-cool);
    border: 1px solid #c9d5e4;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.work-band-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink-heading);
    margin: 0;
    flex: 1 1 auto;
}

.work-band-note {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
    flex: 1 1 100%;
    order: 3;
}

.work-band-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    background: #fff;
    border: 1px solid #c9d5e4;
    border-radius: 20px;
    padding: .2rem 1rem;
    flex: none;
}

.work-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.work-item {
    display: grid;
    grid-template-columns: 4.4rem 1fr auto;
    grid-template-areas:
        "num main pdf"
        ".   meta pdf";
    gap: .4rem 1.2rem;
    align-items: baseline;
    padding: 1.3rem 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
}

.work-item:last-child { border-bottom: none; }

.work-item:hover { background: var(--tint); }

.work-index {
    grid-area: num;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.work-main { grid-area: main; min-width: 0; }

.work-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.4;
}

.work-authors {
    display: block;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: .2rem;
}

.work-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.work-actions {
    grid-area: pdf;
    align-self: center;
}

.work-pdf {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid #c4d0e0;
    border-radius: 3px;
    padding: .5rem 1.1rem;
    line-height: 1.3;
}

.work-pdf:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    text-decoration: none;
}

.work-item.has-no-index {
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "main pdf"
        "meta pdf";
}

.side-facts {
    list-style: none;
    margin: 0 0 2.4rem;
    padding: 0;
}

.side-facts li {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.45rem;
}

.side-facts span { color: var(--text-muted); }

.side-facts strong { color: var(--ink-heading); }

@media only screen and (min-width: 700px) {

    .work-item {
        grid-template-columns: 4.4rem 1fr 16rem auto;
        grid-template-areas: "num main meta pdf";
        gap: 1.6rem;
        align-items: center;
    }

    .work-item.has-no-index {
        grid-template-columns: 1fr 16rem auto;
        grid-template-areas: "main meta pdf";
    }

    .work-meta { justify-content: flex-end; }
}

.type-chip-count {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: .5rem;
    font-variant-numeric: tabular-nums;
}

.type-chip.is-active .type-chip-count { color: rgba(255, 255, 255, .75); }

.work-band-title a { color: var(--ink-heading); }

.work-kind {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid #c4d0e0;
    border-radius: 3px;
    padding: .15rem .7rem;
    line-height: 1.5;
    white-space: nowrap;
}

.works-note {
    max-width: 70ch;
    margin-bottom: 2.4rem;
}

.conf-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.conf-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--navy);
    border-radius: 0 6px 6px 0;
    padding: 1.6rem 1.8rem;
}

.conf-card:hover { background: var(--tint); }

.conf-card-main { flex: 1 1 24rem; min-width: 0; }

.conf-card-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.conf-card-title a { color: var(--ink-heading); }

.conf-card-note {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: .4rem 0 0;
}

.conf-card-marks {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    flex: none;
}

/*------------------------------------*\
    CONFERENCE GROUP
\*------------------------------------*/

.conf-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--tint-cool);
    border: 1px solid #c9d5e4;
    border-radius: 8px;
    padding: 1.8rem;
    margin: .6rem 0;
}

.conf-band {
    border-left: 3px solid var(--navy);
    padding-left: 1.4rem;
}

.conf-kicker {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy);
    margin: 0 0 .4rem;
}

.conf-title {
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.conf-title a { color: var(--ink-heading); }

.conf-leader {
    font-size: 1.45rem;
    font-style: italic;
    color: var(--text-muted);
    margin: .4rem 0 0;
}

/* cards sitting inside a conference band */
.conf-group .talk-card {
    border-color: #d3dde9;
    box-shadow: none;
}

.conf-crumb {
    font-size: 1.45rem;
    color: var(--text-muted);
    background: var(--tint-cool);
    border-left: 3px solid var(--navy);
    border-radius: 0 5px 5px 0;
    padding: 1rem 1.4rem;
    margin: 0 0 1.6rem;
}

.conf-crumb a { font-weight: 700; }

.conf-crumb-leader {
    display: block;
    font-style: italic;
    margin-top: .2rem;
}

/*------------------------------------*\
    MISSING MATERIAL NOTICE
\*------------------------------------*/

.missing-notice {
    background: #fdf3f3;
    border: 1px solid #e8c4c4;
    border-left: 4px solid #a52a2a;
    border-radius: 0 6px 6px 0;
    padding: 1.6rem 1.8rem;
    margin-bottom: 2.4rem;
}

.missing-notice-title {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: #8a1f1f;
    margin: 0 0 .5rem;
}

.missing-notice-text {
    font-size: 1.45rem;
    line-height: 1.6;
    color: #5c3232;
    margin: 0;
}

.missing-notice-note {
    font-size: 1.35rem;
    line-height: 1.55;
    color: #7a5252;
    margin: .8rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid #e8c4c4;
}

.talk-mark.is-missing {
    color: #8a1f1f;
    border-color: #e0b4b4;
    background: #fdf3f3;
}

/*------------------------------------*\
    TALKS (Доклады)
\*------------------------------------*/

.year-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.year-chip {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3a434f;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .7rem 1.2rem;
    line-height: 1;
}

.year-chip:hover {
    border-color: var(--navy);
    color: var(--navy);
    text-decoration: none;
}

.year-chip.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.talk-list {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.talk {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid var(--line-soft);
}

.talk:last-child { border-bottom: none; }

.talk-date {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

.talk-title {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.talk-title a { color: var(--ink-heading); }

.talk-speaker {
    font-size: 1.45rem;
    color: var(--text-muted);
    margin: .3rem 0 0;
}

.talk-marks {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.talk-mark {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid #c4d0e0;
    border-radius: 3px;
    padding: .25rem .8rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* video parts on a single talk */
.video-block {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}

.video-part + .video-part { margin-top: 2.4rem; }

.video-part-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 .9rem;
}

.video-frame {
    position: relative;
    max-width: 96rem;
    padding-top: 56.25%;
    background: #0d1420;
    border-radius: 6px;
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-link { font-size: 1.55rem; font-weight: 700; }

.video-file {
    display: block;
    width: 100%;
    background: #0d1420;
    border-radius: 6px;
}

@media only screen and (min-width: 700px) {

    .talk {
        grid-template-columns: 9rem 1fr auto;
        gap: 1.8rem;
        align-items: baseline;
    }

    .talk-marks { justify-content: flex-end; }
}

/*------------------------------------*\
    SEASON SCHEDULE BOARD
\*------------------------------------*/

.season-body { padding: 3.2rem 0 4rem; }

.season-venue { margin-bottom: 3rem; }

.venue-address {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #3a434f;
    margin: 0;
}

.venue-notice {
    font-size: 1.45rem;
    line-height: 1.65;
    color: var(--text-muted);
    background: var(--tint);
    border-left: 3px solid var(--navy);
    padding: 1.2rem 1.5rem;
    margin: 1.4rem 0 0;
    border-radius: 0 5px 5px 0;
}

.venue-photo {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.schedule {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .3rem;
    padding: 1.3rem 1.6rem;
    border-bottom: 1px solid var(--line-soft);
}

.schedule-row:last-child { border-bottom: none; }

.schedule-row.is-head { display: none; }

.schedule-date {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

.schedule-speaker {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink-heading);
}

.schedule-topic {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #3a434f;
}

.schedule-open {
    color: var(--text-soft);
    font-style: italic;
}

/* download the season as the club's own spreadsheet */
.season-download {
    display: inline-flex;
    align-items: baseline;
    gap: .8rem;
    margin-top: 1.6rem;
    padding: .9rem 1.6rem;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: transparent;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
}

.season-download:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    text-decoration: none;
}

/* over a photographed header the same button has to read light */
.doc-head.has-media .season-download {
    border-color: #6d84a8;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.doc-head.has-media .season-download:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.season-download-meta {
    font-weight: 400;
    font-size: 1.25rem;
    opacity: .8;
}

/* join the meeting — the address itself is unreadable, so it is a button */
.season-zoom {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1.1rem 2rem;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-family: var(--sans);
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
}

.season-zoom:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
    text-decoration: none;
}

.season-zoom-icon {
    flex: 0 0 auto;
    display: block;
}

/* a row the editor has tinted — green for confirmed, red for in doubt */
.schedule-row.has-tint .schedule-date,
.schedule-row.has-tint .schedule-speaker,
.schedule-row.has-tint .schedule-topic { color: inherit; }

.schedule-row.has-tint {
    color: var(--ink-heading);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.schedule-row.has-tint.is-dark { color: #fff; }

.schedule-row.has-tint.is-dark .schedule-open { color: rgba(255, 255, 255, .8); }

.schedule-row.has-tint + .schedule-row.has-tint { border-top: none; }

.schedule-row.is-past { background: #fbfcfd; }

/* a second speaker at the same meeting reads as part of the row above:
   the date is printed once and the divider between them is dropped */
.schedule-row:has(+ .schedule-row.is-cont) {
    border-bottom: none;
    padding-bottom: .3rem;
}

.schedule-row.is-cont { padding-top: .3rem; }

.schedule-row.is-cont .schedule-date { display: none; }

.schedule-row.is-past .schedule-date,
.schedule-row.is-past .schedule-speaker { color: var(--text-muted); }

/* year / month / conference dividers */
.schedule-year,
.schedule-month,
.schedule-heading {
    margin: 0;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid var(--line-soft);
}

.schedule-year {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--tint-nav);
    color: var(--navy);
}

.schedule-month {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-soft);
    background: var(--tint);
}

.schedule-heading {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    background: #f4efe2;
    border-top: 1px solid #e6dcc4;
    border-bottom: 1px solid #e6dcc4;
}

.season-note { margin-top: 2.6rem; }

.season-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: baseline;
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    font-size: 1.5rem;
}

.season-switch-label {
    color: var(--text-soft);
}

@media only screen and (min-width: 700px) {

    .schedule-row {
        grid-template-columns: 14rem 22rem 1fr;
        gap: 1.6rem;
        align-items: baseline;
    }

    .schedule-row.is-head {
        display: grid;
        background: var(--tint);
        border-bottom: 1px solid var(--line);
    }

    .schedule-row.is-head span {
        font-size: 1.3rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--text-soft);
    }

    .schedule-date { font-size: 1.45rem; }

    /* the empty date cell stays on desktop — it holds the column */
    .schedule-row.is-cont .schedule-date { display: block; }
}

/*------------------------------------*\
    DOCUMENT PAGE TEMPLATE
\*------------------------------------*/

.doc-head {
    background: var(--tint-cool);
    border-bottom: 1px solid var(--line);
    padding: 3.6rem 0 2.6rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: 1.35rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-soft); }

.page-title-sub {
    font-family: var(--sans);
    font-size: .6em;
    font-weight: 400;
    color: var(--text-soft);
    margin-left: .6rem;
}

.doc-body {
    padding: 3.2rem 0 4rem;
}

/* primary document card */
.doc-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 2rem 2.2rem;
    margin-bottom: 2.8rem;
}

.doc-hero-icon {
    flex: none;
    width: 6rem;
    height: 7.8rem;
    background: #fff;
    border: 1px solid #cdd5df;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
}

.doc-hero-body {
    flex: 1;
    min-width: 22rem;
}

.doc-hero-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.doc-hero-meta {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 0 0 1.6rem;
}

.doc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

/* sidebar */
.doc-side {
    position: sticky;
    top: 2rem;
}

.side-heading {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-soft);
    font-weight: 700;
    margin: 0 0 1.2rem;
}

.side-links {
    list-style: none;
    margin: 0 0 2.4rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-links a {
    font-size: 1.5rem;
    font-weight: 700;
}

.side-note {
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.8rem;
}

.side-note p {
    font-size: 1.4rem;
    line-height: 1.65;
    color: #3a434f;
    margin: 0;
}

.side-note p + p { margin-top: .4rem; }

/*------------------------------------*\
    PAGES + ENTRIES
\*------------------------------------*/

.page-body {
    padding-top: 4.4rem;
    padding-bottom: 4rem;
}

.page-head {
    margin-bottom: 2.4rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
}

.page-title {
    font-size: clamp(2.4rem, 2.6vw, 3.1rem);
    margin: 0;
}

.page-lede {
    font-size: 1.6rem;
    color: var(--text-soft);
    margin: .8rem 0 0;
    max-width: 70ch;
}

.page-figure {
    margin: 0 0 2.4rem;
}

.page-figure img {
    width: 100%;
    border-radius: 6px;
}

.entry-content {
    max-width: 70ch;
}

.entry-content p,
.entry-content li {
    font-size: 1.6rem;
    line-height: 1.75;
    color: #3a434f;
}

.entry-content h2 {
    font-size: 2.1rem;
    margin: 2.8rem 0 1rem;
}

.entry-content h3 {
    font-size: 1.85rem;
    margin: 2.4rem 0 .8rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
}

.entry-content li { margin-bottom: .5rem; }

/* simple entry lists (index, search, blog) */
.entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.entry-item > a {
    display: block;
    padding: 1.6rem 1.8rem;
    border-bottom: 1px solid var(--line-soft);
}

.entry-item:last-child > a { border-bottom: none; }

.entry-item > a:hover {
    background: var(--tint-cool);
    text-decoration: none;
}

.entry-meta {
    display: block;
    font-size: 1.35rem;
    color: var(--text-soft);
    margin-bottom: .4rem;
}

.entry-title {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.35;
}

.entry-excerpt {
    display: block;
    font-size: 1.45rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: .5rem;
}

.entry-nav {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    font-size: 1.55rem;
    font-weight: 700;
}

/*------------------------------------*\
    DOCUMENT LISTS
\*------------------------------------*/

.doc-block {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}

.doc-list {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.doc-item > a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid var(--line-soft);
    min-height: 4.8rem;
}

.doc-item:last-child > a { border-bottom: none; }

.doc-item > a:hover {
    background: var(--tint-cool);
    text-decoration: none;
}

.doc-tag {
    flex: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid #c4d0e0;
    padding: .3rem .9rem;
    border-radius: 3px;
    line-height: 1.4;
}

.doc-title {
    flex: 1;
    min-width: 12rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink-heading);
    line-height: 1.4;
}

.doc-meta {
    flex: none;
    font-size: 1.35rem;
    color: var(--text-soft);
}

/*------------------------------------*\
    SEARCH FORM
\*------------------------------------*/

.search-form {
    display: flex;
    align-items: stretch;
    max-width: 44rem;
    margin: 2rem 0;
}

.search-form input[type="search"] {
    flex: 1;
    font-family: var(--sans);
    font-size: 1.5rem;
    color: var(--ink);
    border: 1px solid #b9c2cd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 1.1rem 1.3rem;
    background: #fff;
    min-width: 0;
}

.search-form button {
    flex: none;
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 0 5px 5px 0;
    padding: 1.1rem 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover { background: var(--navy-dark); }

/*------------------------------------*\
    PAGINATION
\*------------------------------------*/

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: 1.5rem;
    padding: 2.4rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 4rem;
    text-align: center;
    padding: .9rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-weight: 700;
    color: var(--navy);
}

.pagination .page-numbers:hover {
    background: var(--tint-nav);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/*------------------------------------*\
    FOOTER
\*------------------------------------*/

.footer {
    background: var(--navy-deep);
    color: var(--footer-text);
    width: 100%;
}

.footer a { color: var(--footer-text); }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
    align-items: flex-start;
}

/* The four columns open with different things — a serif club name, three small
   uppercase headings — and used to start at four different heights. Both share
   one heading row of fixed height, bottom-aligned, so the text under them
   lines up across the footer. */
.footer-title,
.footer-heading {
    min-height: 2.6rem;
    margin: 0 0 1.4rem;
    display: flex;
    align-items: flex-end;
}

.footer-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.footer-heading {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--footer-muted);
    font-weight: 700;
}

/* The first column's paragraph sits under a taller serif line than the small
   headings do; nudging it keeps all four text blocks on one line. */
.footer-grid .column > .footer-text,
.footer-grid .column > .footer-list {
    margin-top: 0;
}

.footer-text {
    font-size: 1.5rem;
    line-height: 1.7;
    margin: 0;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    font-size: 1.5rem;
}

.footer-grid .column .btn {
    margin-top: 1.4rem;
    font-size: 1.5rem;
    padding: .9rem 1.7rem;
}

.footer-bar {
    border-top: 1px solid var(--footer-line);
}

.footer-bar-inner {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
}

.copyright,
.footer-credit {
    font-size: 1.35rem;
    color: #93a3bd;
    margin: 0;
}

/*------------------------------------*\
    EMBEDS
\*------------------------------------*/

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*------------------------------------*\
    ACF GOOGLE MAP
\*------------------------------------*/

.acf-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    border: 1px solid var(--line);
    margin: 20px 0;
}

.acf-map img {
    max-width: inherit !important;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

/* --- mobile first: collapse the nav below 900px --- */
@media only screen and (max-width: 899px) {

    .nav-toggle { display: inline-flex; }

    .site-search { display: none; }

    .nav {
        display: none;
        border-top: 1px solid var(--line);
    }

    .nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .nav-list li {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line-soft);
        border-left: 4px solid transparent;
    }

    .nav-list li > a {
        flex: 1;
        padding: 1.5rem .8rem;
        min-height: 4.8rem;
    }

    .nav-list li:hover,
    .nav-list li.is-open,
    .nav-list .current-menu-item,
    .nav-list .current_page_item,
    .nav-list .current-menu-parent {
        border-bottom-color: var(--line-soft);
        border-left-color: var(--navy);
    }

    .submenu-toggle {
        padding: 0 1.6rem;
        min-width: 4.8rem;
        min-height: 4.8rem;
        justify-content: center;
    }

    /* submenus flow inline on mobile — no overlay panels */
    .nav-list .sub-menu {
        position: static;
        width: 100%;
        flex-basis: 100%;
        min-width: 0;
        border: none;
        border-top: 1px solid var(--line-soft);
        box-shadow: none;
        background: var(--tint-cool);
    }

    .nav-list .sub-menu li > a {
        padding: 1.3rem 1.8rem;
        min-height: 4.8rem;
        display: flex;
        align-items: center;
    }
}



@media only screen and (min-width: 769px) {

    h1 { font-size: 3.4rem; }

    .logo-img { max-height: 8.4rem; }

    /* tinted column bleeds to the viewport edge, content stays in the container */
    .home-split { overflow: hidden; }

    .home-split-col.is-tinted {
        position: relative;
        padding-left: 3rem;
        border-left: 1px solid var(--line);
    }

    .home-split-col.is-tinted::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 50vw;
        background: var(--tint-cool);
    }
}

@media only screen and (min-width: 900px) {

    .nav { display: block !important; }
    .nav-toggle { display: none; }
    .site-search { display: flex; }
}

@media only screen and (min-width: 1024px) {

    .container { padding-left: 3.2rem; padding-right: 3.2rem; }
}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
    background: var(--navy);
    color: #FFF;
    text-shadow: none;
}

::-moz-selection {
    background: var(--navy);
    color: #FFF;
    text-shadow: none;
}

body.nav-is-open {
    overflow: hidden;
}

@media only screen and (min-width: 900px) {
    body.nav-is-open { overflow: visible; }
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone { margin: 5px 20px 20px 0; }

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #FFF;
    border: 1px solid var(--line-soft);
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 0;
    padding: 0 4px 5px;
}

.sticky {}
.bypostauthor {}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
    * {
        background: transparent !important;
        box-shadow: none !important;
        color: #000 !important;
        text-shadow: none !important;
    }

    a,
    a:visited { text-decoration: underline; }

    a[href]:after { content: " (" attr(href) ")"; }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after { content: ""; }

    pre,
    blockquote { page-break-inside: avoid; }

    thead { display: table-header-group; }

    tr,
    img { page-break-inside: avoid; }

    img { max-width: 100% !important; }

    p, h2, h3 { orphans: 3; widows: 3; }

    h2, h3 { page-break-after: avoid; }

    .nav,
    .utility-bar,
    .masthead-tools,
    .notification-banner,
    .footer,
    .pagination { display: none; }

    @page { margin: 2cm; }
}


/*------------------------------------*\
    Bilingual blocks — Разработки
\*------------------------------------*/

/* The English half is written by the author, not translated, so the two
   columns are peers: same width, same type, no "original / translation"
   hierarchy. Under 900px they stack, Russian first. */
.bi-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    margin: 0 0 3.6rem;
}

.bi-col > *:first-child {
    margin-top: 0;
}

.bi-col > *:last-child {
    margin-bottom: 0;
}

.bi-title {
    font-family: var(--serif);
    font-size: 2.1rem;
    line-height: 1.3;
    color: var(--ink-heading);
    margin: 0 0 1.2rem;
    text-wrap: pretty;
}

.dev-intro {
    background: var(--tint-cool);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.8rem 3rem;
    margin-bottom: 4rem;
}

.dev-intro p {
    font-size: 1.55rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1.2rem;
    text-wrap: pretty;
}

.dev-body .bi-col {
    border-left: 2px solid var(--line-soft);
    padding-left: 2.4rem;
}

.dev-body .bi-col:first-child {
    border-left: 0;
    padding-left: 0;
}

.dev-body img {
    max-width: 100%;
    height: auto;
}

/* Authors + contacts */
.dev-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem 3.2rem;
    padding: 2rem 0 2.4rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 3rem;
}

.dev-author {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.dev-author-photo img {
    display: block;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    object-fit: cover;
}

.dev-author-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dev-author-name {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink-heading);
}

.dev-author-contact {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.dev-mail,
.dev-phone {
    white-space: nowrap;
}

.page-title-alt {
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-soft);
    margin: 0.8rem 0 0;
    text-wrap: pretty;
}

.work-title-en {
    display: block;
    font-size: 1.4rem;
    color: var(--text-soft);
    margin-top: 0.2rem;
}

/*------------------------------------*\
    Связанные материалы
\*------------------------------------*/

.related-block {
    margin: 3.6rem 0 0;
    padding: 2.4rem 0 0;
    border-top: 1px solid var(--line);
}

.related-list {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    overflow: hidden;
}

.related-item {
    display: flex;
    align-items: baseline;
    gap: 1.6rem;
    background: #fff;
    padding: 1.4rem 1.8rem;
}

.related-section {
    flex: 0 0 auto;
    min-width: 9.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.related-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.related-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    text-wrap: pretty;
}

.related-authors {
    font-size: 1.35rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .bi-block {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .dev-body .bi-col {
        border-left: 0;
        border-top: 2px solid var(--line-soft);
        padding-left: 0;
        padding-top: 2.4rem;
    }

    .dev-body .bi-col:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .dev-intro {
        padding: 2.2rem 2rem;
    }

    .related-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/*------------------------------------*\
    Праздники — albums and photo walls
\*------------------------------------*/

.album-year { margin-bottom: 4rem; }

.album-year-head {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: .8rem;
    margin-bottom: 2.4rem;
}

.album-year-title {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--ink-heading);
    margin: 0;
}

.album-year-count {
    font-size: 1.35rem;
    color: var(--text-soft);
}

.album-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    gap: 2.8rem 2.4rem;
}

.album-link {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.album-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--tint-cool);
}

.album-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.album-link:hover .album-cover-img,
.album-link:focus-visible .album-cover-img {
    transform: scale(1.03);
}

.album-cover-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(135deg, var(--tint-cool) 0 12px, #fff 12px 24px);
}

/* Photo count sits on the cover — it tells the reader the album is worth
   opening before they click into it. */
.album-count {
    position: absolute;
    right: .8rem;
    bottom: .8rem;
    min-width: 2.6rem;
    padding: .2rem .8rem;
    border-radius: 2rem;
    background: rgba(22, 41, 74, .82);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.album-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.album-title {
    font-family: var(--serif);
    font-size: 1.85rem;
    line-height: 1.3;
    color: var(--ink-heading);
    text-wrap: pretty;
}

.album-link:hover .album-title,
.album-link:focus-visible .album-title {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.album-meta {
    font-size: 1.35rem;
    color: var(--text-muted);
}

.album-intro { margin-bottom: 3rem; }

/* The wall itself. Captions are «что где когда», so they sit under the photo
   in the page as well as inside the lightbox. */
.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 3rem 2.4rem;
    margin: 0 0 3.6rem;
}

.photo-cell { margin: 0; }

.photo-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: var(--tint-cool);
}

.photo-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.photo-link:hover .photo-img,
.photo-link:focus-visible .photo-img {
    transform: scale(1.03);
}

.photo-caption {
    margin-top: .9rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-wrap: pretty;
}

@media (max-width: 600px) {
    .album-grid,
    .photo-wall {
        grid-template-columns: 1fr;
    }
}


/*------------------------------------*\
    Юбилеи — a letter to one person
\*------------------------------------*/

/* Not a photo grid: a congratulation is read, not browsed. Portrait small,
   name loud, first line of the letter as the hook. */
.jubilee-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.jubilee-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--line-soft);
}

.jubilee-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.jubilee-portrait {
    flex: none;
    width: 9rem;
    display: block;
    border-radius: 3px;
    overflow: hidden;
    background: var(--tint-cool);
}

.jubilee-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.jubilee-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.jubilee-title {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.3;
    color: var(--ink-heading);
    text-wrap: pretty;
}

.jubilee-date {
    font-size: 1.35rem;
    color: var(--text-muted);
}

.jubilee-lead {
    margin: .3rem 0 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-wrap: pretty;
}

.jubilee-page {
    display: grid;
    grid-template-columns: 24rem 1fr;
    gap: 3.2rem;
    margin-bottom: 3.6rem;
}

.jubilee-page-portrait {
    margin: 0;
}

.jubilee-page-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.jubilee-letter > *:first-child { margin-top: 0; }

@media (max-width: 780px) {
    .jubilee-page {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .jubilee-page-portrait {
        max-width: 24rem;
    }
}

@media (max-width: 600px) {
    .jubilee-portrait { width: 6.4rem; }
}


/*------------------------------------*\
    График правления клуба
\*------------------------------------*/

.board-intro {
    max-width: 68ch;
    margin-bottom: 3.2rem;
}

/* Tiers down the page instead of arrows across it: a stem joins each tier to
   the one above, which is as much of the drawing as survives a phone. */
.board-tier {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2rem;
    position: relative;
}

.board-tier + .board-tier {
    margin-top: 4.4rem;
}

.board-tier + .board-tier::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -3.4rem;
    width: 1px;
    height: 2.4rem;
    background: var(--navy);
    opacity: .45;
}

/* The president is one box over the whole width of the chart in the club's
   drawing, so a lone card in a tier is centred rather than stretched. */
.board-tier.is-single {
    grid-template-columns: minmax(0, 46rem);
    justify-content: center;
}

.board-card {
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: 3px;
    padding: 1.8rem 2rem 2rem;
    background: #fff;
}

.board-tier.is-top .board-card {
    background: var(--tint-cool);
}

.board-card-role {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin: 0;
    text-wrap: pretty;
}

.board-card-name {
    display: block;
    margin-top: .3rem;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ink-heading);
}

.board-card-duties {
    margin: 1.2rem 0 0;
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-wrap: pretty;
}

.board-card-to {
    margin: 1.2rem 0 0;
    font-family: var(--sans);
    font-size: 1.3rem;
    color: var(--text-soft);
}

.board-note {
    max-width: 68ch;
    margin-top: 3.6rem;
    font-size: 1.5rem;
    color: var(--text-muted);
}

@media print {
    .board-tier {
        break-inside: avoid;
    }
}


/*------------------------------------*\
    Корифеи Клуба
\*------------------------------------*/

.memorial-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 2.4rem 3rem;
}

.memorial-card { min-width: 0; }

.memorial-link {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--line-soft);
    color: inherit;
    text-decoration: none;
}

.memorial-portrait {
    flex: none;
    width: 8.4rem;
    border-radius: 3px;
    overflow: hidden;
    background: var(--tint-cool);
}

.memorial-portrait img,
.memorial-portrait-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* No stock silhouette: an empty frame is honest, a generic avatar is not. */
.memorial-portrait-empty {
    background: repeating-linear-gradient(135deg, var(--tint-cool) 0 10px, #fff 10px 20px);
}

.memorial-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.memorial-name {
    font-family: var(--serif);
    font-size: 1.9rem;
    line-height: 1.3;
    color: var(--ink-heading);
    text-wrap: pretty;
}

.memorial-link:hover .memorial-name,
.memorial-link:focus-visible .memorial-name {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: .25em;
}

/* The years close the row, after the text — the person first, the dates last. */
.memorial-years {
    font-size: 1.4rem;
    color: var(--text-soft);
    font-variant-numeric: lining-nums;
}

/* Two lines, whatever the length of the text behind them, so the column of
   names stays a column and not a run of uneven blocks. */
.memorial-note {
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-wrap: pretty;
    max-width: 74ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single page */
.memorial-head {
    display: grid;
    grid-template-columns: 22rem 1fr;
    gap: 3.2rem;
    align-items: start;
    padding-bottom: 2.8rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.memorial-head-portrait {
    margin: 0;
}

.memorial-head-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.memorial-head-text .page-title {
    margin-top: 0;
}

.memorial-head-years {
    font-size: 1.7rem;
    color: var(--text-soft);
    margin: .6rem 0 0;
    font-variant-numeric: lining-nums;
}

.memorial-head-note {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 1.2rem 0 0;
    max-width: 54ch;
    text-wrap: pretty;
}

.memorial-text {
    max-width: 68ch;
}

@media (max-width: 780px) {
    .memorial-head {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memorial-head-portrait {
        max-width: 20rem;
    }
}

@media (max-width: 600px) {
    .memorial-grid {
        grid-template-columns: 1fr;
    }

    .memorial-portrait {
        width: 7.2rem;
    }
}


/*------------------------------------*\
    Search — icon in the masthead, panel on demand
\*------------------------------------*/

.search-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .7rem 1.2rem;
    font: inherit;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.search-toggle:hover,
.search-toggle:focus-visible {
    border-color: var(--navy);
    color: var(--navy);
}

.search-toggle[aria-expanded="true"] {
    border-color: var(--navy);
    color: var(--navy);
}

.search-panel {
    position: relative;
    z-index: 60;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--footer-line);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .22s ease, opacity .22s ease;
}

.search-panel.is-open {
    max-height: 24rem;
    opacity: 1;
}

.search-panel-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.8rem 2rem 3rem;
}

.search-panel-label {
    display: block;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--footer-muted);
    margin-bottom: 1.2rem;
}

.search-panel-row {
    display: flex;
    gap: 1rem;
    max-width: 62rem;
}

.search-panel-row input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.7rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--footer-line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
}

.search-panel-row input[type="search"]:focus {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.search-panel-row .btn {
    flex: none;
}

/* The club's own complaint was that site-wide search buries what you want.
   Saying where the narrow search lives is cheaper than rebuilding it. */
.search-panel-hint {
    margin: 1.2rem 0 0;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--footer-muted);
    max-width: 62rem;
    text-wrap: pretty;
}

.search-panel-close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--footer-line);
    border-radius: 3px;
    color: var(--footer-muted);
    cursor: pointer;
}

.search-panel-close:hover,
.search-panel-close:focus-visible {
    color: #fff;
    border-color: var(--footer-muted);
}

@media (max-width: 600px) {
    .search-toggle-text { display: none; }

    .search-panel-row {
        flex-direction: column;
    }

    .search-panel-close {
        top: 1rem;
        right: 1rem;
    }
}


/*------------------------------------*\
    Celebration recordings
\*------------------------------------*/

.album-videos {
    margin: 0 0 3.6rem;
}

/* Covers in columns. A stack of full-width players pushed the photographs of
   the party off the screen; the recording is one item of the album, not the
   album itself. */
.album-video-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 2.4rem 2rem;
}

.album-video-item { min-width: 0; }

.album-video { margin: 0; }

.album-video-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--navy-deep);
}

.album-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* No thumbnail to borrow (an uploaded file has none) — a plain dark plate
   rather than a stranger's stock frame. */
.album-video-cover-blank {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.album-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5.6rem;
    height: 5.6rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(12, 22, 40, .72);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
    transition: background .18s ease, transform .18s ease;
}

.album-video-play::after {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: .9rem 0 .9rem 1.5rem;
    border-color: transparent transparent transparent #fff;
}

.album-video-cover:hover .album-video-play,
.album-video-cover:focus-visible .album-video-play {
    background: var(--navy);
    transform: translate(-50%, -50%) scale(1.06);
}

/* The player over the page — the same gesture as the photographs. */
.rsc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(8, 14, 26, .88);
    opacity: 0;
    transition: opacity .2s ease;
}

.rsc-video-modal.is-open { opacity: 1; }

.rsc-video-modal-box {
    width: min(96rem, 100%);
}

.rsc-video-modal-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.rsc-video-modal-frame iframe,
.rsc-video-modal-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rsc-video-modal-title {
    margin: 1.2rem 0 0;
    color: #fff;
    font-size: 1.6rem;
    text-wrap: pretty;
}

.rsc-video-modal-close {
    position: absolute;
    right: 1.4rem;
    top: 1.4rem;
    width: 4.4rem;
    height: 4.4rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.rsc-video-modal-close:hover,
.rsc-video-modal-close:focus-visible { background: rgba(255, 255, 255, .28); }

body.rsc-modal-open { overflow: hidden; }

.album-video-caption {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-top: .9rem;
}

.album-video-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink-heading);
}

.album-video-note {
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-wrap: pretty;
}

.album-video-link { margin: 0; font-size: 1.6rem; }

/* A play mark on the cover, next to the photo count. */
.album-video-mark {
    position: absolute;
    left: .8rem;
    bottom: .8rem;
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(22, 41, 74, .82);
    color: #fff;
    font-size: 1.1rem;
    padding-left: .2rem;
}


/*------------------------------------*\
    Контакты и как вступить
\*------------------------------------*/

.contact-details {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: 1.6rem;
    line-height: 1.5;
}

.contact-detail-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.join-block { margin-top: 3.2rem; }

.join-steps {
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    counter-reset: none;
}

.join-step {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.join-step-num {
    flex: none;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
}

.join-step-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding-top: .3rem;
}

.join-step-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink-heading);
}

.join-step-text {
    font-size: 1.55rem;
    line-height: 1.65;
    color: var(--text-muted);
    text-wrap: pretty;
}

.join-note {
    margin: 2rem 0 0;
    padding: 1.6rem 1.8rem;
    background: var(--tint-cool);
    border-radius: 4px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-wrap: pretty;
}

.contact-cta,
.contact-form-block {
    margin-top: 3.2rem;
    padding-top: 2.8rem;
    border-top: 1px solid var(--line);
}

.contact-cta p {
    font-size: 1.6rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 60ch;
    text-wrap: pretty;
}


/*------------------------------------*\
    Фоны разделов — photograph behind a section header
\*------------------------------------*/

/* Only headers that actually carry a photograph change; a section with no
   image keeps the pale band above, untouched. */
.doc-head.has-media {
    position: relative;
    isolation: isolate;
    background: var(--navy-deep);
    border-bottom: 0;
    /* Most of the club's photographs are vertical. A 3.6rem band would show a
       sliver of one, so an illustrated header is given real height. */
    min-height: 30rem;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 3.2rem;
    overflow: hidden;
}

.doc-head-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.doc-head-img {
    width: 100%;
    height: 100%;
    /* Crop from the upper third: in a vertical photograph the subject is
       usually above the middle, and centre-cropping decapitates it. */
    object-fit: cover;
    object-position: center 32%;
    display: block;
}

/* The photograph is unknown and interchangeable, so the title cannot rely on
   it being dark. The scrim guarantees the contrast instead. */
.doc-head-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(22, 41, 74, .92) 0%, rgba(22, 41, 74, .74) 38%, rgba(22, 41, 74, .34) 72%, rgba(22, 41, 74, .22) 100%);
}

.doc-head.has-media .container { position: relative; }

.doc-head.has-media .page-title,
.doc-head.has-media .page-title-en,
.doc-head.has-media .page-title-sub,
.doc-head.has-media .page-lede,
.doc-head.has-media .entry-meta,
.doc-head.has-media .breadcrumb,
.doc-head.has-media .breadcrumb a,
.doc-head.has-media .doc-head-meta {
    color: #fff;
}

.doc-head.has-media .page-title {
    text-shadow: 0 1px 12px rgba(11, 22, 41, .45);
}

.doc-head.has-media .page-lede,
.doc-head.has-media .breadcrumb,
.doc-head.has-media .breadcrumb a,
.doc-head.has-media .page-title-en,
.doc-head.has-media .page-title-sub {
    color: rgba(255, 255, 255, .82);
}

.doc-head.has-media .breadcrumb a:hover,
.doc-head.has-media .breadcrumb a:focus-visible {
    color: #fff;
}

/* Any chip or button that ends up in an illustrated header has to be legible
   against the photograph too. */
.doc-head.has-media .btn-outline-light {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

@media (max-width: 780px) {
    .doc-head.has-media {
        min-height: 20rem;
        padding: 4.4rem 0 2.6rem;
    }
}

@media print {
    /* A dark photograph behind a heading wastes ink and makes the title grey. */
    .doc-head.has-media {
        min-height: 0;
        padding: 3.6rem 0 2.6rem;
        background: none;
    }

    .doc-head-media { display: none; }

    .doc-head.has-media .page-title,
    .doc-head.has-media .page-lede,
    .doc-head.has-media .breadcrumb,
    .doc-head.has-media .breadcrumb a {
        color: var(--ink);
        text-shadow: none;
    }
}

/*------------------------------------*\
    Sidebar photograph
\*------------------------------------*/

.side-figure {
    margin: 2.8rem 0 0;
}

.side-figure-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}
