/* Extra pages (Why ANIS, FAQ and downloads): plain top-to-bottom pages in the same look as the home page */
.page-plain { background: #FFFFFF; }
.page { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)); }
.page-intro h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .92;
  font-size: clamp(2.8rem, 2rem + 5vw, 5.6rem); margin: .2em 0 .35em; color: var(--text); }
.page-intro h1 .accent { color: var(--accent); }
.page-lead { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.page-h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: .95; margin: 0 0 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.page-section { margin-top: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: calc(var(--header-h) + 1rem); }

/* jump links */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s; }
.jump a:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }

/* questions: native <details>, so they work without JavaScript */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.08rem; color: var(--text); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 0 1.4rem; color: var(--muted); font-size: 1.02rem; max-width: 46rem; }
.faq__a p { margin: 0 0 .8em; }
.faq__a ul { margin: .2em 0 .9em; padding-left: 1.2rem; }
.faq__a li { margin: .25em 0; }
.faq__a strong { color: var(--text); }
.faq__a a { color: var(--accent); }
.ages { border-collapse: collapse; margin: .4rem 0 1rem; font-size: .96rem; min-width: min(100%, 20rem); }
.ages th, .ages td { text-align: left; padding: .45rem 1.4rem .45rem 0; border-bottom: 1px solid var(--line); }
.ages th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ages td { color: var(--text); }

/* downloads */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doc { display: flex; flex-direction: column; background: var(--surface); padding: clamp(1.4rem, 3vw, 2rem); border-top: 5px solid var(--brand); }
.doc:nth-child(2) { border-top-color: var(--accent); }
.doc:nth-child(3) { border-top-color: var(--accent-2); }
.doc h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: .95; margin: 0 0 .6rem; }
.doc p { color: var(--muted); margin: 0 0 1rem; }
.doc__meta { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text) !important; margin-top: auto !important; }
.doc .btn { align-self: flex-start; }
.doc .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* closing call to action */
.page-cta { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--surface-2); color: var(--white); padding: clamp(2rem, 5vw, 3.5rem); }
.page-cta h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: .95; margin: 0 0 .6rem; }
.page-cta p { color: rgba(255, 255, 255, .78); max-width: 36rem; margin: 0 0 1.6rem; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.page-base { margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 2rem; }

/* Why ANIS: what is true today, in short blocks */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.why-grid li { padding: clamp(1.3rem, 3vw, 1.8rem); background: var(--surface); }
.why-grid h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: .95; margin: 0 0 .55rem; }
.why-grid p { margin: 0; color: var(--muted); }
.why-grid li:nth-child(3n+1) h3 { color: var(--brand); }
.why-grid li:nth-child(3n+2) h3 { color: var(--accent); }
.why-grid li:nth-child(3n+3) h3 { color: var(--accent-2); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { padding: .35rem .8rem; background: var(--surface); font-size: .9rem; font-weight: 500; }

@media (max-width: 600px) {
  .page-cta__actions .btn { flex: 1 1 100%; }
}

/* ---------- Calendar page ---------- */
.cal__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 .8rem; }
.cal__chip { min-height: 44px; padding: .5rem 1.1rem; border: 0; border-bottom: 2px solid var(--brand); border-radius: 0; cursor: pointer;
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 100% 0 no-repeat; color: var(--brand);
  font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-size .45s var(--ease), color .35s ease; }
.cal__chip.is-on { background-size: 100% 100%; color: #fff; }
@media (hover: hover) { .cal__chip:not(.is-on):hover { background-size: 100% 14%; } }
.cal__note { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; }
.cal__past-toggle { margin-top: 1.2rem; min-height: 44px; padding: .4rem 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3em; }

.cal__month { margin-top: clamp(2.2rem, 5vw, 3.4rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.cal__mname { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: .95; margin: 0 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cal__list { list-style: none; margin: 0; padding: 0; }
.cal__item { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: .4rem 1.2rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cal__date { display: flex; flex-direction: column; line-height: 1; }
.cal__wd { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal__dn { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; margin-top: .15rem; color: var(--brand); }
.cal__to { font-size: .62em; }
.cal__title { margin: 0; font-weight: 500; color: var(--text); line-height: 1.4; }
.cal__tag { justify-self: end; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; color: var(--brand); background: var(--surface); }
.cal__item--exam .cal__dn { color: var(--accent-2); }
.cal__item--exam .cal__tag { color: var(--accent-2); background: rgba(16, 107, 148, .09); }
.cal__item--holiday .cal__dn { color: var(--accent); }
.cal__item--holiday .cal__tag { color: var(--accent); background: rgba(171, 43, 41, .08); }
.cal__item.is-today { background: linear-gradient(90deg, rgba(147, 97, 144, .1), transparent 70%); }
.cal__item.is-past { opacity: .5; }
.cal.hide-past .cal__item.is-past, .cal .cal__item.is-filtered, .cal .cal__month.is-empty { display: none; }

/* Coming up */
.cal__next { margin: 2rem 0 0; }
.cal__next-label { margin: 0 0 .7rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cal__next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cal__next-list li { background: var(--surface); padding: 1rem 1.1rem; border-top: 4px solid var(--brand); }
.cal__next-list li.cal__item--holiday { border-top-color: var(--accent); }
.cal__next-list li.cal__item--exam { border-top-color: var(--accent-2); }
.cal__next-when { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.cal__next-what { margin: 0; font-weight: 700; color: var(--text); line-height: 1.35; }

@media (max-width: 600px) {
  .cal__item { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .cal__tag { grid-column: 2; justify-self: start; margin-top: .1rem; }
  .cal__dn { font-size: 1.8rem; }
}
