/* ==========================================================================
   TPDL — Theory and Practice of Digital Libraries
   Theme layer on top of the Start Bootstrap "Modern Business" template
   (assets/css/bootstrap-modern-business.css, Bootstrap 5.2).
   Edit the tokens in :root to re-skin the whole site.
   ========================================================================== */

:root {
  --tpdl-primary: #5d2086;          /* logo purple */
  --tpdl-primary-rgb: 93, 32, 134;
  --tpdl-primary-dark: #3d1459;
  --tpdl-primary-darker: #250b37;
  --tpdl-primary-soft: #f3ecf8;
  --tpdl-accent: #e0a526;           /* highlight for "upcoming" */
  --tpdl-accent-soft: #fdf4e1;
  --tpdl-ink: #1f1a24;
  --tpdl-muted: #6a6272;
  --tpdl-line: #e6e1ea;
  --tpdl-surface: #ffffff;
  --tpdl-surface-alt: #f8f6fa;
  --tpdl-radius: .9rem;
  --tpdl-shadow: 0 .35rem 1.2rem rgba(37, 11, 55, .08);
  --tpdl-shadow-lg: 0 1rem 2.5rem rgba(37, 11, 55, .14);
  --tpdl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --tpdl-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Bootstrap bridges */
  --bs-primary: var(--tpdl-primary);
  --bs-primary-rgb: var(--tpdl-primary-rgb);
  --bs-link-color: var(--tpdl-primary);
  --bs-link-hover-color: var(--tpdl-primary-dark);
  --bs-body-color: var(--tpdl-ink);
  --bs-body-font-family: var(--tpdl-font);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tpdl-nav-h, 70px) + 4rem); }
body { font-family: var(--tpdl-font); color: var(--tpdl-ink); background: var(--tpdl-surface); }
a { color: var(--tpdl-primary); text-underline-offset: .15em; }
a:hover { color: var(--tpdl-primary-dark); }
::selection { background: rgba(var(--tpdl-primary-rgb), .18); }

.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

/* ---------- Bootstrap colour overrides ---------- */
.btn-primary {
  --bs-btn-bg: var(--tpdl-primary); --bs-btn-border-color: var(--tpdl-primary);
  --bs-btn-hover-bg: var(--tpdl-primary-dark); --bs-btn-hover-border-color: var(--tpdl-primary-dark);
  --bs-btn-active-bg: var(--tpdl-primary-darker); --bs-btn-active-border-color: var(--tpdl-primary-darker);
  --bs-btn-disabled-bg: var(--tpdl-primary); --bs-btn-disabled-border-color: var(--tpdl-primary);
  --bs-btn-focus-shadow-rgb: var(--tpdl-primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--tpdl-primary); --bs-btn-border-color: var(--tpdl-primary);
  --bs-btn-hover-bg: var(--tpdl-primary); --bs-btn-hover-border-color: var(--tpdl-primary);
  --bs-btn-active-bg: var(--tpdl-primary-dark); --bs-btn-active-border-color: var(--tpdl-primary-dark);
  --bs-btn-focus-shadow-rgb: var(--tpdl-primary-rgb);
}
.btn-accent { --bs-btn-bg: var(--tpdl-accent); --bs-btn-color: #2b1a00; --bs-btn-border-color: var(--tpdl-accent);
  --bs-btn-hover-bg: #c98f14; --bs-btn-hover-border-color: #c98f14; --bs-btn-hover-color: #1c1100; font-weight: 600; }
.bg-primary { background-color: var(--tpdl-primary) !important; }
.text-primary { color: var(--tpdl-primary) !important; }
.border-primary { border-color: var(--tpdl-primary) !important; }
.badge.bg-primary { background-color: var(--tpdl-primary) !important; }
.link-primary { color: var(--tpdl-primary) !important; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--tpdl-primary-rgb), .5); box-shadow: 0 0 0 .25rem rgba(var(--tpdl-primary-rgb), .15); }
.pagination { --bs-pagination-color: var(--tpdl-primary); --bs-pagination-active-bg: var(--tpdl-primary); --bs-pagination-active-border-color: var(--tpdl-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--tpdl-primary); }
.nav-link { color: var(--tpdl-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--tpdl-primary); }

/* ---------- Header / navbar ---------- */
.tpdl-topbar { background: var(--tpdl-primary-darker); color: rgba(255,255,255,.78); font-size: .82rem; }
.tpdl-topbar a { color: #fff; text-decoration: none; }
.tpdl-topbar a:hover { text-decoration: underline; }
.tpdl-navbar { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--tpdl-line); }
.tpdl-navbar .navbar-brand img { height: 46px; width: auto; }
.tpdl-navbar .nav-link { color: var(--tpdl-ink); font-weight: 500; padding: .55rem .85rem !important; border-radius: .5rem; }
.tpdl-navbar .nav-link:hover, .tpdl-navbar .nav-link:focus { color: var(--tpdl-primary); background: var(--tpdl-primary-soft); }
.tpdl-navbar .nav-link.active { color: var(--tpdl-primary); font-weight: 650; }
.tpdl-navbar .nav-link.active::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--tpdl-primary); border-radius: 2px; }
.tpdl-navbar .dropdown-toggle.active::after { display: inline-block; height: auto; margin-top: 0; background: none; }
.tpdl-navbar .dropdown-menu { border: 1px solid var(--tpdl-line); border-radius: .75rem; box-shadow: var(--tpdl-shadow-lg); padding: .5rem; }
.tpdl-navbar .dropdown-item { border-radius: .45rem; padding: .45rem .8rem; }
.tpdl-navbar .dropdown-item:hover { background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }
.tpdl-navbar .nav-cta { background: var(--tpdl-primary); color: #fff !important; }
.tpdl-navbar .nav-cta:hover { background: var(--tpdl-primary-dark) !important; color: #fff !important; }
.tpdl-navbar .navbar-toggler { border: 0; }
.tpdl-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--tpdl-primary-rgb), .25); }
.tpdl-search-btn { border-radius: 50rem; }
@media (max-width: 991.98px) {
  .tpdl-navbar .navbar-collapse { padding: .75rem 0 1rem; }
  .tpdl-navbar .nav-link.active::after { display: none; }
}

/* ---------- Heroes ---------- */
.tpdl-hero, .edition-hero { position: relative; color: #fff; overflow: hidden; background: var(--tpdl-primary-dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tpdl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(37,11,55,.95) 0%, rgba(61,20,89,.88) 45%, rgba(93,32,134,.62) 100%); }
.edition-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(37,11,55,.95), rgba(93,32,134,.80)); }
.tpdl-hero .display-4, .tpdl-hero .display-5 { font-weight: 800; letter-spacing: -.02em; }
.tpdl-hero .lead { color: rgba(255,255,255,.85); }
.tpdl-hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #e9d7f7; }
.tpdl-hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--tpdl-radius); backdrop-filter: blur(6px); }
.tpdl-hero-card .countdown { font-variant-numeric: tabular-nums; }

.page-hero { background: linear-gradient(120deg, var(--tpdl-primary-darker), var(--tpdl-primary) 140%); color: #fff; }
.page-hero h1 { font-weight: 800; letter-spacing: -.015em; }
.page-hero .lead { color: rgba(255,255,255,.82); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); margin-bottom: .5rem; font-size: .88rem; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; opacity: .9; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* Edition hero (archived conference websites & edition pages) */
.edition-hero .edition-number { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #e9d7f7; }
.edition-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.edition-hero .meta { color: rgba(255,255,255,.88); }
.edition-hero .meta i { color: #e9d7f7; }
.edition-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .88rem; }
.edition-hero .breadcrumb a { color: #fff; text-decoration: none; }
.archive-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; }

.edition-subnav { background: #fff; border-bottom: 1px solid var(--tpdl-line); position: sticky; top: var(--tpdl-nav-h, 0px); z-index: 1019; box-shadow: 0 .25rem .75rem rgba(37,11,55,.04); }
.edition-subnav .navbar { padding: .25rem 0; }
.edition-subnav .nav-link { color: var(--tpdl-ink); font-size: .92rem; font-weight: 500; padding: .5rem .75rem !important; border-radius: .45rem; white-space: nowrap; }
.edition-subnav .nav-link:hover { background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }
.edition-subnav .nav-link.active { color: var(--tpdl-primary); background: var(--tpdl-primary-soft); font-weight: 650; }
.edition-subnav .dropdown-menu { border-radius: .7rem; border: 1px solid var(--tpdl-line); box-shadow: var(--tpdl-shadow-lg); }
.edition-subnav .dropdown-item.active, .edition-subnav .dropdown-item:active { background: var(--tpdl-primary); }
.edition-subnav .subnav-label { font-weight: 700; color: var(--tpdl-primary); text-decoration: none; }

/* ---------- Sections & cards ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--tpdl-surface-alt); }
.section-title { font-weight: 800; letter-spacing: -.015em; }
.section-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--tpdl-primary); }

.tpdl-card { background: #fff; border: 1px solid var(--tpdl-line); border-radius: var(--tpdl-radius); box-shadow: var(--tpdl-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.tpdl-card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--tpdl-shadow-lg); }
.tpdl-card .card-kicker { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--tpdl-muted); }
.icon-tile { width: 3rem; height: 3rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }

.stat { text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--tpdl-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--tpdl-muted); font-size: .92rem; margin-top: .35rem; }

.pub-logo { height: 84px; width: auto; object-fit: contain; }

/* Mailing list / CTA band */
.cta-band { background: linear-gradient(120deg, var(--tpdl-primary-darker), var(--tpdl-primary)); color: #fff; border-radius: calc(var(--tpdl-radius) * 1.3); }
.cta-band .text-soft { color: rgba(255,255,255,.8); }

/* ---------- Editions ---------- */
.edition-card { position: relative; height: 100%; display: flex; flex-direction: column; }
.edition-card .year { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--tpdl-primary); font-variant-numeric: tabular-nums; }
.edition-card .series { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.edition-card .place { font-weight: 600; }
.edition-card .edition-thumb { width: 72px; height: 72px; flex: 0 0 72px; border-radius: .5rem; background: #fff; border: 1px solid var(--tpdl-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.edition-card .edition-thumb img { max-width: 64px; max-height: 64px; object-fit: contain; }
.edition-card .edition-monogram { flex-direction: column; border: 0; background: linear-gradient(150deg, var(--tpdl-primary-darker), var(--tpdl-primary)); color: #fff; line-height: 1; }
.edition-card .edition-monogram span { font-size: .62rem; font-weight: 700; letter-spacing: .12em; opacity: .85; }
.edition-card .edition-monogram b { font-size: 1.55rem; font-weight: 800; margin-top: .15rem; }
.edition-card.is-upcoming { border-color: var(--tpdl-accent); box-shadow: 0 0 0 3px var(--tpdl-accent-soft), var(--tpdl-shadow); }
.badge-series-ecdl { background: #e8eef7; color: #23457a; }
.badge-series-tpdl { background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }
.badge-series-dl { background: #e6f4ef; color: #1c6b50; }
.badge-upcoming { background: var(--tpdl-accent); color: #2b1a00; }
.badge-archive { background: #eef0f3; color: #3b4450; }
.badge-online { background: #e7f3fb; color: #0c5a8a; }

.editions-toolbar { position: sticky; top: calc(var(--tpdl-nav-h, 0px) + .5rem); z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border: 1px solid var(--tpdl-line); border-radius: var(--tpdl-radius); }
.editions-decade { font-weight: 800; color: var(--tpdl-muted); letter-spacing: .06em; }

/* Timeline */
.timeline { position: relative; list-style: none; padding-left: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 4.1rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--tpdl-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 3.4rem 1.4rem 1fr; gap: .6rem; align-items: start; padding: .55rem 0; }
.timeline .t-year { font-weight: 800; color: var(--tpdl-primary); text-align: right; font-variant-numeric: tabular-nums; }
.timeline .t-dot { width: .85rem; height: .85rem; margin-top: .35rem; border-radius: 50%; background: #fff; border: 3px solid var(--tpdl-primary); justify-self: center; position: relative; z-index: 1; }
.timeline li.is-upcoming .t-dot { border-color: var(--tpdl-accent); background: var(--tpdl-accent); }
.timeline .t-body a { text-decoration: none; font-weight: 600; }
.timeline .t-body a:hover { text-decoration: underline; }

/* Edition facts panel */
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tpdl-muted); font-weight: 700; }
.facts dd { margin-bottom: .9rem; }
.proc-item { display: flex; gap: 1rem; align-items: flex-start; }
.proc-item .cover { width: 84px; flex: 0 0 84px; border-radius: .35rem; box-shadow: 0 .3rem .8rem rgba(0,0,0,.18); }
.proc-item .cover-placeholder { width: 84px; flex: 0 0 84px; aspect-ratio: 2/3; border-radius: .35rem; background: linear-gradient(160deg, #f5d24b, #e7b40d); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #3a2c00; font-size: .8rem; text-align: center; padding: .3rem; }
.award { border-left: 4px solid var(--tpdl-accent); background: var(--tpdl-accent-soft); border-radius: .5rem; padding: .9rem 1.1rem; }
.award + .award { margin-top: .75rem; }
.award .award-title { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #8a5a00; }

/* ---------- People (governance) ---------- */
.person { display: flex; gap: .85rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--tpdl-line); border-radius: .75rem; background: #fff; height: 100%; }
.person .avatar { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }
.person .name { font-weight: 650; line-height: 1.2; }
.person .aff { color: var(--tpdl-muted); font-size: .88rem; line-height: 1.3; }
.person .role { font-size: .75rem; font-weight: 600; color: var(--tpdl-primary); }
.person.is-lead { border-color: rgba(var(--tpdl-primary-rgb), .35); background: linear-gradient(0deg, #fff, var(--tpdl-primary-soft)); }
.person.is-lead .avatar { background: var(--tpdl-primary); color: #fff; }

/* ---------- Papers / preprints component ---------- */
.papers-toolbar { border: 1px solid var(--tpdl-line); border-radius: var(--tpdl-radius); background: var(--tpdl-surface-alt); }
.paper-session { margin-top: 2.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--tpdl-line); }
.paper-session .snum { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tpdl-primary); }
.paper-session .swhen { color: var(--tpdl-muted); font-size: .92rem; }
.paper { border: 1px solid var(--tpdl-line); border-left: 4px solid var(--tpdl-primary); border-radius: .6rem; padding: 1rem 1.15rem; background: #fff; }
.paper + .paper { margin-top: .75rem; }
.paper.type-short { border-left-color: #4a5b8c; }
.paper.type-demo { border-left-color: #b07a1c; }
.paper.is-pending { border-left-style: dashed; background: var(--tpdl-surface-alt); }
.paper h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .25rem; }
.paper h3 a { text-decoration: none; color: var(--tpdl-ink); }
.paper h3 a:hover { color: var(--tpdl-primary); text-decoration: underline; }
.paper .authors { color: var(--tpdl-muted); font-size: .93rem; }
.paper .ptype { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Prose (migrated WordPress content) ---------- */
.prose { font-size: 1.04rem; line-height: 1.7; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { font-weight: 750; letter-spacing: -.01em; margin-top: 2rem; margin-bottom: .75rem; line-height: 1.25; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.12rem; }
.prose h5 { font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: .35rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .3rem; }
.prose blockquote { border-left: 4px solid var(--tpdl-primary); background: var(--tpdl-primary-soft); padding: 1rem 1.25rem; border-radius: 0 .6rem .6rem 0; margin: 1.5rem 0; }
.prose blockquote > *:last-child { margin-bottom: 0; }
.prose table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .95rem; }
.prose table th, .prose table td { border: 1px solid var(--tpdl-line); padding: .5rem .65rem; vertical-align: top; }
.prose table th { background: var(--tpdl-surface-alt); }
.prose table tr:nth-child(even) td { background: #fcfbfd; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose hr { margin: 2rem 0; opacity: .15; }
.prose iframe { max-width: 100%; border: 0; border-radius: .5rem; }
.prose .embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; margin: 1rem 0 1.5rem; }
.prose .embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose pre { background: var(--tpdl-surface-alt); padding: 1rem; border-radius: .5rem; }
.prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignnone { margin: .5rem 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose figure { margin: 1rem 0 1.5rem; }
.prose figcaption, .prose .wp-caption-text { font-size: .85rem; color: var(--tpdl-muted); margin-top: .35rem; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.prose .wp-block-column { flex: 1 1 14rem; min-width: 0; }
.prose .wp-block-gallery, .prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.prose .wp-block-gallery li, .prose .gallery .gallery-item { margin: 0; }
.prose .wp-block-gallery figure, .prose .gallery figure { margin: 0; position: relative; }
.prose .wp-block-gallery.is-cropped img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose .wp-block-image { margin: 1rem 0 1.5rem; }
.prose .wp-block-table { overflow-x: auto; }
.prose .has-text-align-center, .prose .has-text-align-center * { text-align: center; }
.prose .migrated-note { font-size: .9rem; }
.prose .tpdl-card h2, .prose .tpdl-card h3 { margin-top: 0; }
.prose .tpdl-card p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .prose .alignright, .prose .alignleft { float: none; display: block; margin: .75rem auto; }
}

/* Side navigation inside a content page (archived editions) */
.side-card { position: sticky; top: calc(var(--tpdl-nav-h, 70px) + 4.5rem); max-height: calc(100vh - var(--tpdl-nav-h, 70px) - 5.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 991.98px) { .side-card { position: static; max-height: none; } }
.toc a { display: block; padding: .3rem .6rem; border-radius: .4rem; text-decoration: none; color: var(--tpdl-ink); font-size: .92rem; }
.toc a:hover, .toc a.active { background: var(--tpdl-primary-soft); color: var(--tpdl-primary); }

/* ---------- News ---------- */
.update-featured .thumb { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: .6rem; background: var(--tpdl-surface-alt); }
.update-list .update-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--tpdl-line); position: relative; }
.update-list .update-row:first-child { padding-top: 0; }
.update-list .update-row:last-child { border-bottom: 0; }
.update-list .update-date { flex: 0 0 4.2rem; text-align: center; border-radius: .6rem; background: var(--tpdl-primary-soft); color: var(--tpdl-primary); padding: .35rem 0; line-height: 1.1; }
.update-list .update-date .d { font-weight: 800; font-size: 1.15rem; display: block; }
.update-list .update-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.update-list h3 { font-size: 1rem; font-weight: 650; margin: .1rem 0 .2rem; }
.update-list h3 a { color: var(--tpdl-ink); text-decoration: none; }
.update-list h3 a:hover { color: var(--tpdl-primary); }
.news-item .date { font-size: .82rem; color: var(--tpdl-muted); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1.12rem; font-weight: 700; }
.news-item h3 a { color: var(--tpdl-ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--tpdl-primary); }
.news-item .stretched-link:focus-visible { outline: none; }

/* ---------- Search ---------- */
.search-hit { padding: 1rem 0; border-bottom: 1px solid var(--tpdl-line); }
.search-hit .url { font-size: .8rem; color: #2a7a3b; }
.search-hit mark { background: #fff1b8; padding: 0 .1em; border-radius: .2em; }
.search-hit h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }

/* ---------- Footer ---------- */
.tpdl-footer { background: var(--tpdl-primary-darker); color: rgba(255,255,255,.72); }
.tpdl-footer a:not(.btn) { color: #fff; text-decoration: none; }
.tpdl-footer a:not(.btn):hover { text-decoration: underline; }
.tpdl-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #e9d7f7; font-weight: 700; margin-bottom: 1rem; }
.tpdl-footer .footer-logo { height: 44px; width: auto; }
.tpdl-footer .list-unstyled li { margin-bottom: .45rem; }
.tpdl-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1030; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: var(--tpdl-shadow-lg); }
.back-to-top.show { display: inline-flex; }

/* ---------- Photo gallery ---------- */
.gallery-years { position: sticky; top: calc(var(--tpdl-nav-h, 0px) + .5rem); z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border: 1px solid var(--tpdl-line); border-radius: var(--tpdl-radius); }
.gallery-section { margin-bottom: 3.5rem; scroll-margin-top: calc(var(--tpdl-nav-h, 70px) + 5rem); }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section h2 a { color: inherit; }
.gallery-section h2 a:hover { color: var(--tpdl-primary); }

.gallery-grid { columns: 1; column-gap: 1.1rem; }
@media (min-width: 576px) { .gallery-grid { columns: 2; } }
@media (min-width: 992px) { .gallery-grid { columns: 3; } }
.gallery-item { break-inside: avoid; page-break-inside: avoid; margin-bottom: 1.1rem; display: inline-block; width: 100%; }
.gallery-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--tpdl-line); background: var(--tpdl-surface-alt); border-radius: var(--tpdl-radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--tpdl-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.gallery-btn:hover, .gallery-btn:focus-visible { transform: translateY(-3px); box-shadow: var(--tpdl-shadow-lg); }
.gallery-btn:focus-visible { outline: 3px solid var(--tpdl-accent); outline-offset: 2px; }
.gallery-btn img { display: block; width: 100%; height: auto; }
.gallery-cap { font-size: .86rem; color: var(--tpdl-muted); margin: .5rem .15rem 0; line-height: 1.35; }

.gallery-modal .modal-content { background: #fff; }
.gallery-modal .lb-img { max-width: 100%; max-height: min(74vh, 900px); width: auto; height: auto; object-fit: contain; }
.gallery-modal .modal-body { background: var(--tpdl-surface-alt); }
@media (max-width: 575.98px) { .gallery-modal .modal-footer .btn { flex: 0 0 auto; } .gallery-modal .lb-cap { order: 3; flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { .gallery-btn, .gallery-btn:hover { transition: none; transform: none; } }

/* ---------- Utilities ---------- */
.text-muted-2 { color: var(--tpdl-muted) !important; }
.rounded-4x { border-radius: var(--tpdl-radius) !important; }
.object-fit-cover { object-fit: cover; }
.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800 !important; }
.ls-tight { letter-spacing: -.015em; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--tpdl-radius); box-shadow: var(--tpdl-shadow); background: var(--tpdl-surface-alt); }
@media (min-width: 992px) { .map-frame { aspect-ratio: 16 / 11; } }
.noscript-nav { padding: .75rem 1rem; background: var(--tpdl-surface-alt); border-bottom: 1px solid var(--tpdl-line); }
.noscript-nav a { margin-right: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tpdl-card, .tpdl-card.hoverable:hover { transition: none; transform: none; }
}

@media print {
  #tpdl-header, #tpdl-footer, .edition-subnav, .back-to-top, .editions-toolbar, .papers-toolbar { display: none !important; }
  .page-hero, .edition-hero, .tpdl-hero { background: none !important; color: #000 !important; }
  .page-hero *, .edition-hero * { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* Migrated WordPress helpers */
.prose .anchor { display: block; position: relative; top: calc(-1 * (var(--tpdl-nav-h, 70px) + 4rem)); visibility: hidden; height: 0; }
.prose .session-band { background: var(--tpdl-primary); color: #fff; padding: .45rem .8rem; border-radius: .4rem; font-weight: 600; }
.prose th.session-band { text-align: left; }
