/* Ajankohtaista, tiedotearkisto ja etusivun ilmoitusnauha. Käyttää Otava-ilmeen muuttujia (styles/otava.css). */

.tt-empty { margin: 0; padding: 16px 18px; border: 1px dashed var(--ot-line); border-radius: 3px; font: 400 16px/1.6 Roboto, sans-serif; color: var(--ot-ink-3); max-width: 70ch; }
.tt-empty a, .tt-note a { color: var(--ot-ink); text-decoration: underline; text-underline-offset: 3px; }
.tt-empty a:hover, .tt-note a:hover { color: var(--ot-red-text); }
.tt-note { margin: 0; font: 400 14px/1.6 Roboto, sans-serif; color: var(--ot-ink-3); max-width: 76ch; }
.tt-prose p { margin: 0; font: 400 16px/1.65 Roboto, sans-serif; color: var(--ot-ink-2); }

/* Ajankohtaiset tiedotteet */
.tt-current { display: flex; flex-direction: column; gap: 14px; }
.tt-notice { padding: 18px 20px; border: 1px solid var(--ot-line); border-left: 5px solid var(--ot-red); border-radius: 3px; background: var(--ot-card); display: flex; flex-direction: column; gap: 6px; }
.tt-notice h3 { margin: 0; font: 700 20px/1.25 Roboto, sans-serif; color: var(--ot-ink); }
.tt-notice h3 a { color: inherit; text-decoration: none; padding-block: 8px; display: inline-block; }
.tt-notice h3 a:hover { color: var(--ot-red-text); text-decoration: underline; }
.tt-notice p { margin: 0; font: 400 16px/1.55 Roboto, sans-serif; color: var(--ot-ink-2); }

/* Poikkeavat varaukset */
.tt-book td:first-child { white-space: nowrap; }
.tt-book td:first-child strong { display: inline-block; min-width: 2.2em; color: var(--ot-ink); text-transform: uppercase; font-family: var(--ot-mono); font-size: 13px; letter-spacing: 0.06em; }
.tt-book tr[hidden] { display: none; }

/* Vuosivalinta */
.tt-years { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-years a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ot-line); border-radius: 3px; background: var(--ot-card); color: var(--ot-ink); text-decoration: none; font: 700 16px/1 Roboto, sans-serif; }
.tt-years a span { font: 500 12px/1 var(--ot-mono); color: var(--ot-ink-3); }
.tt-years a:hover { border-color: var(--ot-red); }
.tt-years a[aria-current="page"] { border-color: var(--ot-red); box-shadow: inset 0 -3px 0 var(--ot-red); }
.tt-years a:focus-visible { outline: 3px solid var(--ot-ink); outline-offset: 2px; }
.tt-sub { margin: 10px 0 0; font: 500 13px/1.3 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ot-line); }
.tt-latest li { display: grid; grid-template-columns: minmax(0, 18rem) 9rem minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ot-line); }
.tt-latest a { color: var(--ot-ink); text-decoration: none; padding-block: 8px; }
.tt-latest a:hover { color: var(--ot-red-text); text-decoration: underline; }
.tt-meta { font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-sum { font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-2); }

/* Vuosisivu */
.tt-yearhead h1 { margin: 0; }
.tt-month { margin: 28px 0 0; padding-top: 14px; border-top: 3px solid var(--ot-red); font: 500 14px/1.3 var(--ot-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-list { display: flex; flex-direction: column; }
.tt-item { padding: 22px 0; border-bottom: 1px solid var(--ot-line); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.tt-item:target { box-shadow: -5px 0 0 var(--ot-red); padding-left: 16px; }
.tt-title { margin: 0; font: 700 clamp(20px, 2.2vw, 26px)/1.2 Roboto, sans-serif; color: var(--ot-ink); }
.tt-title a { color: inherit; text-decoration: none; }
.tt-title a:hover { color: var(--ot-red-text); }
.tt-body { max-width: 76ch; font: 400 16px/1.65 Roboto, sans-serif; color: var(--ot-ink-2); overflow-wrap: anywhere; }
.tt-body > * { margin: 0; }
.tt-body > * + * { margin-top: 12px; }
.tt-body li > p, .tt-body li > ul { margin: 0; }
.tt-body ul, .tt-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.tt-body h4 { margin: 20px 0 0; font: 500 13px/1.3 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-body a { color: var(--ot-ink); text-decoration: underline; text-underline-offset: 3px; }
.tt-body a:hover { color: var(--ot-red-text); }
.tt-body strong { color: var(--ot-ink); }
.tt-body del { color: var(--ot-ink-3); }
.tt-body dt { font-weight: 700; color: var(--ot-ink); }
.tt-body dd { margin: 0 0 6px; }
.tt-tbl { overflow-x: auto; border: 1px solid var(--ot-line); border-radius: 3px; background: var(--ot-card); }
.tt-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tt-tbl th { text-align: left; padding: 10px 14px; font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-ink-3); border-bottom: 1px solid var(--ot-line); white-space: nowrap; }
.tt-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--ot-line); vertical-align: top; }
.tt-tbl tr:last-child td { border-bottom: 0; }
.tt-fig { display: inline-block; vertical-align: top; margin: 0 14px 14px 0; max-width: 100%; }
.tt-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--ot-line); border-radius: 2px; }
.tt-fig figcaption { margin-top: 6px; font: 400 13px/1.4 Roboto, sans-serif; color: var(--ot-ink-3); }

/* Etusivun ilmoitusnauha */
.tt-strip { margin: 56px 0 28px; padding: 22px clamp(16px, 3vw, 28px); border: 1px solid var(--ot-line); border-top: 4px solid var(--ot-red); border-radius: 3px; background: var(--ot-card); display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 3; }
.tt-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.tt-strip-head .ot-eyebrow { margin: 0; }
.tt-strip a, .tt-strip-all { color: var(--ot-ink); text-underline-offset: 3px; }
.tt-strip a:hover { color: var(--ot-red-text); }
.tt-strip-all { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1.2 Roboto, sans-serif; }
.tt-strip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.tt-strip-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tt-strip-col h2 { margin: 0; font: 500 13px/1.3 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-strip-col p { margin: 0; font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-2); }
.tt-strip-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tt-strip-col li { font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-2); }
.tt-strip-col li b { font: 500 13px/1.4 var(--ot-mono); letter-spacing: 0.04em; color: var(--ot-ink); margin-right: 8px; white-space: nowrap; }
.tt-strip-col li strong { color: var(--ot-ink); }
.tt-strip-link { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1.2 Roboto, sans-serif; }

@media (max-width: 820px) {
  .tt-latest li { grid-template-columns: minmax(0, 1fr); }
  .tt-strip-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Pikavalinnat, tapahtumat, uutiset ja salivarauspalkki */
.tt-quick { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ot-line); border-radius: 3px; background: var(--ot-card); color: var(--ot-ink); text-decoration: none; font: 700 15px/1 Roboto, sans-serif; }
.tt-quick a:hover { border-color: var(--ot-red); }
.tt-quick a:focus-visible, .tt-bookbar a:focus-visible, .tt-strip a:focus-visible { outline: 3px solid var(--ot-ink); outline-offset: 2px; }
.tt-events td:first-child { white-space: nowrap; font-family: var(--ot-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ot-ink); }
.tt-events td .tt-meta { display: block; margin-top: 4px; }
.tt-events tr[hidden] { display: none; }
.tt-latest-news li { grid-template-columns: minmax(0, 1fr) 9rem; }
.tt-date { margin: -4px 0 0; font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-bookbar { margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--ot-line); border-left: 5px solid var(--ot-red); border-radius: 3px; background: var(--ot-card); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-2); }
.tt-bookbar[hidden] { display: none; }
.tt-bookbar-label { font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }
.tt-bookbar-list b { font: 500 13px/1.4 var(--ot-mono); letter-spacing: 0.04em; color: var(--ot-ink); margin-right: 6px; }
.tt-bookbar-list span + span::before { content: "·"; margin: 0 10px; color: var(--ot-ink-4); }
.tt-bookbar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ot-ink); font-weight: 700; text-underline-offset: 3px; }
.tt-bookbar a:hover { color: var(--ot-red-text); }
.tt-strip-col h3 { margin: 6px 0 0; font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }

@media (max-width: 600px) {
  .tt-book, .tt-events { min-width: 0; }
  .tt-book th, .tt-book td, .tt-events th, .tt-events td { padding: 12px 10px; }
  .tt-events td:first-child { white-space: normal; }
}
