/* =========================================================
   PAGES  — contact, search, 404, newsletter result, policy text.
   Uses tokens from global.css and the floating label (.fl) from header.css.
========================================================= */

/* Plain reading page (policies, editorial policy) */
.doc-sec { padding: 40px 0 64px; }
.doc { max-width: 780px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.doc p, .doc li { color: #2a3342; line-height: 1.8; font-size: 1.03rem; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .96rem; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc-body th { background: #f7f8fb; }
.doc-people { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-people li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.doc-people span { color: var(--muted); }

/* Contact */
.ct-sec { padding: 40px 0 72px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ct-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-s); }
.ct-card h2 { margin: 0 0 16px; font-size: 1.3rem; }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
@media (max-width: 600px) { .ct-form { grid-template-columns: minmax(0, 1fr); } .ct-card { padding: 18px 16px; } }
.fl textarea {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); resize: vertical;
  font: inherit; font-size: 1rem; padding: 24px 12px 10px; min-height: 140px; line-height: 1.55;
}
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.78); color: #42526d; }
.fl.is-invalid textarea { background: transparent; }
.ct-count { justify-self: end; margin: -8px 2px 0; font-size: .8rem; color: var(--muted); }
.ct-note { margin: 0; font-size: .86rem; color: #566077; }
.ct-note a { color: var(--brand-ink); text-decoration: underline; }
.ct-done { text-align: center; padding: 30px 10px 20px; }
.ct-done h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.ct-done p { margin: 0 auto; max-width: 440px; color: var(--muted); }
.ct-side { display: grid; gap: 14px; }
.ct-side__item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.ct-side__item h3 { margin: 0 0 4px; font-size: 1rem; }
.ct-side__item p { margin: 0; color: #556171; font-size: .94rem; line-height: 1.6; }
.ct-side__item a { color: var(--brand-ink); font-weight: 600; }

/* Search */
.sr-sec { padding: 32px 0 72px; }
.sr-form { display: flex; gap: 10px; max-width: 640px; }
.sr-form .fl { flex: 1; min-width: 0; }
.sr-form .btn-submit { min-width: 120px; height: 52px; border-radius: 10px; }
.sr-group { margin-top: 34px; }
.sr-group h2 { font-size: 1.2rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.sr-group h2 span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sr-list a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.sr-list a:hover { text-decoration: none; border-color: #f3c4b4; box-shadow: var(--shadow-s); }
.sr-list b { display: block; font-family: var(--font-head); font-weight: 600; }
.sr-list small { color: var(--muted); font-size: .86rem; }
.sr-empty { margin-top: 30px; padding: 22px; border: 1px dashed #cfd8e3; border-radius: 14px; background: #fbfcfe; max-width: 640px; }
.sr-empty h2 { margin: 0 0 6px; font-size: 1.15rem; }
.sr-empty p { margin: 0 0 12px; color: #556171; }
.sr-empty ul { margin: 0; padding-left: 20px; }
.sr-empty li { margin: 4px 0; }
.sr-empty a { color: var(--brand-ink); font-weight: 600; }

/* 404 and result pages */
.nf-sec { padding: 120px 0 88px; }   /* the header is fixed, so leave room under it */
.nf { max-width: 640px; }
.nf h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 10px; }
.nf p { color: #556171; line-height: 1.7; margin: 0 0 18px; }
.nf .sr-form { margin: 22px 0 26px; }
.nf-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 520px) { .nf-links { grid-template-columns: minmax(0, 1fr); } }
.nf-links a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; }
.nf-links a:hover { text-decoration: none; border-color: #f3c4b4; }
.nf-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 14px; }
.nf-ico .ico { width: 28px; height: 28px; }
.nf-ico.is-warn { background: #fff3ee; color: var(--brand-ink); }

/* Home: blocks added for live data */
.inst-img--none { display: block; height: 160px; background: linear-gradient(135deg, #eef2f8, #e2e9f3); }
.inst-logo--ini { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--brand-ink); background: #fff3ee; font-size: 1.05rem; }
.cc-title a { color: inherit; }
.cc-title a:hover { color: var(--brand-ink); text-decoration: none; }
.cc-dates { margin: 0 0 10px; color: #4d5868; font-size: .92rem; }
.news-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.hub-date { font-style: normal; color: var(--muted); font-size: .84rem; margin-left: 6px; }

.ud-sec { padding: 40px 0 8px; }
.ud-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.ud-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; gap: 12px; padding: 13px 18px; color: var(--ink); border-top: 1px solid #eef2f6; align-items: center; }
.ud-row:first-child { border-top: 0; }
a.ud-row:hover { text-decoration: none; background: #fffaf7; }
.ud-row--head { background: #f7f8fb; font-size: .8rem; font-weight: 600; color: #6b7380; padding-top: 10px; padding-bottom: 10px; }
.ud-name { font-family: var(--font-head); font-weight: 600; }
.ud-row i { font-style: normal; color: var(--muted); }
@media (max-width: 640px) {
  .ud-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 14px; }
  .ud-row--head { display: none; }
  .ud-name { grid-column: 1 / -1; }
  .ud-row span[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; color: #6b7380; }
}
