/* shared/css/base.css */
/* eschoolweb base styles. Structure, accessibility and the look of every shared block.
   A theme sets the design tokens below and adds its own layout rules in theme.css. */

:root {
  --es-bg: #ffffff;
  --es-fg: #1b1f24;
  --es-muted: #5b6470;
  --es-surface: #f5f6f8;
  --es-border: #dfe3e8;
  --es-primary: #1f3a6e;
  --es-primary-fg: #ffffff;
  --es-accent: #c9962b;
  --es-link: var(--es-primary);
  --es-radius: 8px;
  --es-max: 1120px;
  --es-gutter: 20px;
  --es-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --es-font-head: var(--es-font);
  --es-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.07);
  --es-ratio: 16 / 7; /* slider shape */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--es-font); font-size: 1rem; line-height: 1.65; color: var(--es-fg); background: var(--es-bg); }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--es-font-head); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--es-link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--es-accent); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- helpers ---------- */
.es-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.es-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--es-primary); color: var(--es-primary-fg); border-radius: var(--es-radius); text-decoration: none; }
.es-skip:focus { top: 8px; }
.es-wrap { width: 100%; max-width: var(--es-max); margin-inline: auto; padding-inline: var(--es-gutter); }
.es-narrow { max-width: 780px; }
.es-section { padding-block: clamp(28px, 5vw, 56px); }
.es-i { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.es-lead { font-size: 1.15rem; color: var(--es-muted); max-width: 60ch; }
.es-h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.es-h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-top: 1.6em; }
.es-prose p { white-space: pre-line; max-width: 70ch; }
.es-prose--lead p:first-child { font-size: 1.15rem; }
.es-back { margin-top: 2em; }
.es-back a { text-decoration: none; }

.es-logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.es-monogram { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--es-primary); color: var(--es-primary-fg); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; flex: none; }

.es-btn { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.55em 1.2em; border: 2px solid var(--es-primary); border-radius: var(--es-radius); background: var(--es-primary); color: var(--es-primary-fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.es-btn:hover { filter: brightness(1.1); }
.es-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.es-btn--ghost { background: transparent; color: var(--es-primary); }
.es-badge { display: inline-block; padding: 0.1em 0.65em; border-radius: 999px; background: var(--es-accent); color: #1b1f24; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.es-status, .es-empty { color: var(--es-muted); }
.es-error { color: #b00020; font-weight: 600; min-height: 1.5em; }

/* ---------- navigation ---------- */
.es-menu-btn { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--es-border); border-radius: var(--es-radius); background: transparent; color: inherit; cursor: pointer; }
.es-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.es-nav a { text-decoration: none; color: inherit; padding: 0.4em 0; display: inline-block; border-bottom: 2px solid transparent; }
.es-nav a:hover, .es-nav a[aria-current="page"] { border-bottom-color: currentColor; }
@media (max-width: 860px) {
  .js .es-menu-btn { display: inline-flex; }
  .js .es-nav { display: none; }
  .js .es-nav.is-open { display: block; }
  .es-nav__list { flex-direction: column; gap: 0; }
  .es-nav a { display: block; padding: 0.7em 0; }
}

/* ---------- slider ---------- */
.es-slider { position: relative; overflow: hidden; background: #111; color: #fff; }
.es-slides { position: relative; aspect-ratio: var(--es-ratio); min-height: 240px; }
.es-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; }
.es-slide.is-active { opacity: 1; visibility: visible; }
.es-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-slide__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 4vw, 48px); padding-bottom: 64px; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); }
.es-slide__title { font-family: var(--es-font-head); font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; margin: 0 0 0.3em; max-width: 24ch; }
.es-slide__text { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0 0 1em; max-width: 50ch; }
.es-slider__ctl { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.es-slider__btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.es-slider__btn:hover { background: rgba(0, 0, 0, 0.8); }
.es-slider__btn--toggle.is-paused svg { transform: none; }
.es-dots { display: flex; gap: 8px; }
.es-dot { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.es-dot[aria-current="true"] { background: #fff; }
@media (max-width: 600px) { .es-slides { aspect-ratio: 4 / 3; } .es-slide__text { display: none; } }

/* ---------- gallery ---------- */
.es-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.es-gallery li { margin: 0; }
.es-gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--es-radius); background: var(--es-surface); }
.es-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.es-gallery a:hover img { transform: scale(1.05); }
.es-gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: 0.9rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); }
.es-lightbox { border: 0; padding: 0; background: transparent; color: #fff; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.es-lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.es-lightbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.es-lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.es-lightbox__cap { margin-top: 12px; text-align: center; }
.es-lightbox__btn { position: fixed; min-height: 44px; padding: 0 16px; border: 1px solid #fff; border-radius: var(--es-radius); background: rgba(0, 0, 0, 0.6); color: #fff; font: inherit; cursor: pointer; }
.es-lightbox__close { top: 12px; right: 12px; }
.es-lightbox__prev { left: 12px; top: 50%; }
.es-lightbox__next { right: 12px; top: 50%; }

/* ---------- live lists ---------- */
.es-list { list-style: none; margin: 0; padding: 0; }
.es-notices { display: grid; gap: 12px; }
.es-notice__link { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--es-border); border-radius: var(--es-radius); background: var(--es-bg); color: inherit; text-decoration: none; }
.es-notice__link:hover { border-color: var(--es-primary); box-shadow: var(--es-shadow); }
.es-notice__date { font-size: 0.85rem; color: var(--es-muted); }
.es-notice__title { font-weight: 700; font-size: 1.1rem; color: var(--es-primary); }
.es-notice__excerpt { color: var(--es-muted); }
.es-notice__link .es-badge { justify-self: start; }
.es-notice__excerpt:empty { display: none; }
.es-more { margin-top: 18px; }
.es-article__meta { color: var(--es-muted); }
.es-groups { display: grid; gap: 36px; }
.es-group__title { font-size: 1.4rem; padding-bottom: 8px; border-bottom: 2px solid var(--es-border); }
.es-staff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.es-person { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--es-border); border-radius: var(--es-radius); background: var(--es-bg); }
.es-person__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--es-primary); color: var(--es-primary-fg); font-weight: 700; flex: none; }
.es-person__text { display: grid; gap: 1px; min-width: 0; }
.es-person__role, .es-person__qual { font-size: 0.9rem; color: var(--es-muted); }
.es-person__role:empty, .es-person__qual:empty { display: none; }
.es-results { display: grid; gap: 12px; }
.es-result__link { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--es-border); border-radius: var(--es-radius); color: inherit; text-decoration: none; }
.es-result__link:hover { border-color: var(--es-primary); box-shadow: var(--es-shadow); }
.es-result__title { font-weight: 700; font-size: 1.1rem; color: var(--es-primary); }
.es-result__meta { color: var(--es-muted); font-size: 0.9rem; }
.es-result__go { font-weight: 600; }
.es-result__go::after { content: " →"; }

/* ---------- forms and marks card ---------- */
.es-result-title { font-size: 1.2rem; font-weight: 700; }
.es-form { display: grid; gap: 14px; max-width: 460px; }
.es-field { display: grid; gap: 6px; }
.es-field label { font-weight: 600; }
.es-field small { color: var(--es-muted); }
.es-field input, .es-field select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #8a93a0; border-radius: var(--es-radius); background: #fff; color: #1b1f24; font: inherit; }
.es-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.es-card-wrap { margin-top: 20px; }
.es-card { background: #fff; color: #111; border: 2px solid #222; padding: clamp(14px, 3vw, 28px); box-shadow: var(--es-shadow); font-family: Georgia, "Times New Roman", serif; }
.es-card__head { text-align: center; border-bottom: 2px solid #222; margin-bottom: 14px; padding-bottom: 10px; }
.es-card__school { font-size: clamp(1.2rem, 3.5vw, 1.7rem); margin: 0; }
.es-card__exam { margin: 4px 0 0; color: #444; }
.es-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 20px; margin: 0 0 16px; }
.es-card__meta div { display: flex; gap: 6px; }
.es-card__meta dt { font-weight: 700; }
.es-card__meta dt::after { content: ":"; }
.es-card__meta dd { margin: 0; }
.es-card__tablewrap { overflow-x: auto; }
.es-card__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.es-card__table th, .es-card__table td { border: 1px solid #555; padding: 6px 10px; text-align: left; }
.es-card__table thead th { background: #eee; }
.es-card__table .es-num { text-align: right; }
.es-card__overall th, .es-card__overall td { background: #f3f3f3; font-weight: 700; }
.es-card__result { margin: 14px 0 6px; font-size: 1.1rem; }
.es-card__note { font-size: 0.8rem; color: #444; margin: 0; }

/* ---------- contact, social, stats, principal ---------- */
.es-contact { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.es-contact__item { display: flex; gap: 12px; align-items: flex-start; }
.es-contact__item .es-i { margin-top: 0.25em; color: var(--es-primary); }
.es-contact__label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--es-muted); }
.es-contact-page { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .es-contact-page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.es-map { width: 100%; height: 360px; border: 0; border-radius: var(--es-radius); }
.es-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.es-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; color: inherit; }
.es-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.es-stats li { text-align: center; }
.es-stats__value { display: block; font-family: var(--es-font-head); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--es-primary); line-height: 1.1; }
.es-stats__label { color: var(--es-muted); }
.es-principal { display: grid; gap: 20px; align-items: start; }
@media (min-width: 700px) { .es-principal:has(.es-principal__photo) { grid-template-columns: 200px minmax(0, 1fr); } }
.es-principal__photo { width: 200px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--es-radius); background: var(--es-surface); }
.es-principal__sign span { color: var(--es-muted); }

.es-download__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }

/* themes/junior/theme.css */
/* junior: bright, round and bouncy. Violet, pink, teal and sunshine yellow on cream. */
:root {
  --es-bg: #fffaf0; --es-fg: #2b2d42; --es-muted: #565a73; --es-surface: #ffeccc; --es-border: #f0d9a8;
  --es-primary: #6d28d9; --es-primary-fg: #ffffff; --es-accent: #ffb703; --es-link: #5b21b6;
  --es-radius: 22px; --es-max: 1160px; --es-ratio: 4 / 3;
  --es-font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; --es-font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --es-shadow: 0 6px 0 rgba(43, 45, 66, 0.12);
  --jr-pink: #be185d; --jr-teal: #0f766e; --jr-orange: #c2410c; --jr-blue: #1d4ed8; --jr-violet: #6d28d9;
  --jr-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0Z' fill='%23fffaf0'/%3E%3C/svg%3E");
  --jr-wave-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 60 300 30 T600 30 T900 30 T1200 30 V0 H0Z' fill='%23fffaf0'/%3E%3C/svg%3E");
}
body { font-weight: 500; }
h1, h2, h3 { font-weight: 800; }
.es-btn, .jr-btn { border-radius: 999px; padding-inline: 1.6em; min-height: 52px; font-size: 1.05rem; box-shadow: 0 5px 0 rgba(43, 45, 66, 0.25); transition: transform 0.15s; }
.es-btn:hover { transform: translateY(-2px) rotate(-1deg); filter: none; }
.es-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(43, 45, 66, 0.25); }
.es-btn--ghost { background: #fff; }

.jr-header { background: #fff; border-bottom: 5px dashed var(--es-accent); }
.jr-header__in { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.jr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--jr-violet); font-weight: 800; font-size: 1.25rem; }
.jr-logo { width: 62px; height: 62px; }
.jr-brand:hover .jr-logo { animation: jr-bounce 0.6s; }
@keyframes jr-bounce { 30% { transform: translateY(-8px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }
.jr-brand__name { line-height: 1.1; max-width: 18ch; }
.jr-nav { margin-left: auto; }
.jr-nav .es-nav__list { gap: 8px; }
.jr-nav a { padding: 8px 18px; border-radius: 999px; border: 0; background: var(--jr-violet); color: #fff; font-weight: 800; }
.jr-nav li:nth-child(5n+2) a { background: var(--jr-pink); }
.jr-nav li:nth-child(5n+3) a { background: var(--jr-teal); }
.jr-nav li:nth-child(5n+4) a { background: var(--jr-orange); }
.jr-nav li:nth-child(5n+5) a { background: var(--jr-blue); }
.jr-nav a:hover { transform: rotate(-3deg) scale(1.06); }
.jr-nav a[aria-current="page"] { outline: 3px solid var(--es-accent); outline-offset: 2px; }
.jr-menu { margin-left: auto; border-radius: 16px; border-width: 3px; color: var(--jr-violet); }
@media (max-width: 860px) { .jr-nav { flex-basis: 100%; } .jr-nav a { display: block; text-align: center; margin-bottom: 6px; } }

.jr-hero { position: relative; background: linear-gradient(160deg, #ede2ff, #ffe3ef 55%, #fff1c9); padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); overflow: hidden; }
.jr-hero::before, .jr-hero::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.55; pointer-events: none; }
.jr-hero::before { width: 320px; height: 320px; left: -90px; top: -90px; background: #ffd166; }
.jr-hero::after { width: 240px; height: 240px; right: -60px; bottom: 30px; background: #9be7d6; }
.jr-hero > .es-wrap { position: relative; z-index: 1; }
.jr-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .jr-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.jr-hero__title { font-size: clamp(2.3rem, 6vw, 4rem); color: var(--jr-violet); line-height: 1.05; text-shadow: 3px 3px 0 #fff; }
.jr-hero__lead { font-size: 1.3rem; }
.jr-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.jr-frame { padding: 10px; background: #fff; border: 5px solid var(--jr-violet); border-radius: 36px; transform: rotate(1.5deg); box-shadow: 10px 12px 0 rgba(109, 40, 217, 0.25); }
.jr-slider { border-radius: 26px; }
.jr-slider .es-slide__cap { left: 12px; right: 12px; bottom: 56px; padding: 12px 18px; border-radius: 22px; background: #fff; color: var(--es-fg); }
.jr-slider .es-slide__text { display: none; }
.jr-slider .es-slide__title { font-size: 1.15rem; margin: 0; }
.jr-slider .es-slide__cap .es-btn { display: none; }
.jr-slider .es-slider__btn { background: var(--jr-pink); }
.jr-hero::after { z-index: 0; }
.jr-hero__wave { display: none; }
.jr-tiles-sec { position: relative; margin-top: -1px; }
.jr-hero + .jr-tiles-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -58px; height: 60px; background: var(--jr-wave) bottom / 100% 100% no-repeat; }

.jr-h2 { text-align: center; color: var(--jr-violet); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1em; }
.jr-center { text-align: center; margin-top: 24px; }
.jr-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.jr-tile { display: grid; place-items: center; gap: 8px; padding: 22px 12px; border-radius: 28px; background: var(--jr-violet); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; box-shadow: 0 8px 0 rgba(43, 45, 66, 0.2); transition: transform 0.15s; }
.jr-tile .es-i { width: 2.4em; height: 2.4em; }
.jr-tile:hover { transform: translateY(-4px) rotate(-2deg); }
.jr-tiles li:nth-child(6n+2) .jr-tile { background: var(--jr-pink); }
.jr-tiles li:nth-child(6n+3) .jr-tile { background: var(--jr-teal); }
.jr-tiles li:nth-child(6n+4) .jr-tile { background: var(--jr-orange); }
.jr-tiles li:nth-child(6n+5) .jr-tile { background: var(--jr-blue); }
.jr-tiles li:nth-child(6n+6) .jr-tile { background: #4d7c0f; }
.jr-bubbles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.jr-bubbles li { aspect-ratio: 1; width: 170px; max-width: 100%; margin-inline: auto; display: grid; place-content: center; border-radius: 50%; background: var(--jr-teal); color: #fff; box-shadow: 0 8px 0 rgba(43, 45, 66, 0.2); }
.jr-bubbles li:nth-child(4n+2) { background: var(--jr-pink); }
.jr-bubbles li:nth-child(4n+3) { background: var(--jr-orange); }
.jr-bubbles li:nth-child(4n+4) { background: var(--jr-blue); }
.jr-bubbles .es-stats__value, .jr-bubbles .es-stats__label { color: #fff; }
.jr-bubbles .es-stats__value { font-size: 1.7rem; }
.jr-bubbles .es-stats__label { font-size: 0.8rem; padding-inline: 14px; line-height: 1.2; }
.jr-board { background: #e8f7f3; position: relative; }
.jr-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; padding: 6px; }
.jr-note .es-notice__link { height: 100%; align-content: start; background: #fff3a8; border: 0; border-radius: 6px 6px 22px 6px; padding: 20px; box-shadow: 4px 6px 0 rgba(43, 45, 66, 0.18); transform: rotate(-1.5deg); transition: transform 0.2s; }
.jr-note:nth-child(3n+2) .es-notice__link { background: #ffd6e6; transform: rotate(1.2deg); }
.jr-note:nth-child(3n+3) .es-notice__link { background: #cfe8ff; transform: rotate(-0.6deg); }
.jr-note .es-notice__link:hover { transform: rotate(0) scale(1.03); }
.jr-note .es-notice__title { color: var(--es-fg); }
.jr-note .es-notice__date, .jr-note .es-notice__excerpt { color: #3f4257; }
.jr-note .es-badge { justify-self: start; background: var(--jr-pink); color: #fff; }
.jr-principal { background: #fff; border: 4px solid var(--jr-teal); border-radius: 36px; padding: 28px; position: relative; }
.jr-principal .es-principal__photo { border-radius: 50%; border: 6px solid var(--es-accent); width: 190px; }
.jr-photos { background: #fff1c9; }
.jr-polaroids { gap: 22px; }
.jr-polaroids a { background: #fff; padding: 10px 10px 30px; border-radius: 4px; box-shadow: 4px 8px 0 rgba(43, 45, 66, 0.18); transform: rotate(-2deg); }
.jr-polaroids li:nth-child(even) a { transform: rotate(2.2deg); }
.jr-polaroids a:hover { transform: rotate(0) scale(1.04); }
.jr-polaroids img { border-radius: 2px; }

.jr-pagehead { background: linear-gradient(160deg, #ede2ff, #ffe3ef 60%, #fff1c9); padding-block: 36px 70px; position: relative; text-align: center; }
.jr-pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; background: var(--jr-wave) bottom / 100% 100% no-repeat; }
.jr-pagehead .es-h1 { color: var(--jr-violet); margin: 0; text-shadow: 3px 3px 0 #fff; }
.jr-pagehead .es-lead { margin: 8px auto 0; }
.es-notice__link, .es-person, .es-result__link { border-width: 3px; border-color: var(--es-border); background: #fff; }
.es-person__avatar { background: var(--jr-pink); }
.es-staff li:nth-child(4n+2) .es-person__avatar { background: var(--jr-teal); }
.es-staff li:nth-child(4n+3) .es-person__avatar { background: var(--jr-orange); }
.es-staff li:nth-child(4n+4) .es-person__avatar { background: var(--jr-blue); }
.es-group__title { color: var(--jr-violet); border-bottom: 5px dotted var(--es-accent); }
.es-card { border-radius: 16px; }

.jr-footer { position: relative; background: var(--jr-violet); color: #fff; padding-block: 90px 24px; margin-top: 56px; }
.jr-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 50px; background: var(--jr-wave-dark) top / 100% 100% no-repeat; }
.jr-footer a { color: #fff; }
.jr-footer__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .jr-footer__grid { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.jr-footer__h { font-size: 1.2rem; color: var(--es-accent); }
.jr-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; }
.jr-footer .es-nav__list { flex-direction: column; }
.jr-footer .es-contact__item .es-i { color: var(--es-accent); }
.jr-footer__c { text-align: center; margin: 28px 0 0; opacity: 0.9; }

/* shared/css/print.css */
/* Printing the marks card: only the card is printed. Themes mark their page heading wrapper with class "es-pagehead". */
@media print {
  @page { margin: 14mm; }
  header, footer, nav, .es-skip, .es-menu-btn, .es-form, .es-actions, .es-back, .es-slider, .es-status,
  .es-pagehead, .es-h1, .es-lead, .es-result-title, .es-no-print { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .es-section { padding: 0 !important; }
  .es-wrap { max-width: none !important; padding: 0 !important; }
  .es-card { border: 1px solid #000; box-shadow: none; break-inside: avoid; }
  .es-card__tablewrap { overflow: visible; }
  a { color: inherit; text-decoration: none; }
}
