/* TIMA model of care page. Colours from the TIMA designer pack, scoped to .tima only:
   header, menu and footer keep the Yimiri palette. Re-pointing the site tokens inside .tima
   makes the shared components (buttons, labels, headings, rules) take the TIMA colours.
   Rules for this page (owner brief, 24 Nov 2026): no gradients, no emoji, no identical card grids,
   no dashes in copy. Contrast of every text pair checked (see docs/design-direction.md). */

.tima, .tima-footer {
  --t-navy: #0B1D3A; --t-blue: #0056B3; --t-cyan: #0EA5D3;
  --t-orange: #F26A21; --t-amber: #FFA043; --t-cream: #F5F1EA;
  --t-orange-text: #B5470F; /* orange darkened for small text on cream: 4.82:1 */
  --t-body: #2B3A55;        /* body text on cream: 10.14:1 */

  --sand: var(--t-cream); --cream: #FFFFFF; --deep: var(--t-navy); --brown: var(--t-navy);
  --ink: var(--t-body); --gold: var(--t-amber); --bronze: var(--t-orange-text);
  --night: var(--t-navy); --ochre: var(--t-orange);
  background: var(--t-cream); color: var(--t-body);
}
.tima .h2 { color: var(--t-navy); }
.tima .link { color: var(--t-blue); }

/* Orange is the one accent: the download button */
.btn--orange { background: var(--t-orange); color: var(--t-navy); }
.btn--orange:hover { background: var(--t-amber); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { border-color: var(--t-amber); }
.tima-hero :focus-visible, .river :focus-visible, .values :focus-visible, .notice :focus-visible { outline-color: #fff; }

/* Placeholders: visible on purpose so nothing ships unnoticed */
.ph-text { background: rgba(242, 106, 33, .12); outline: 1px dashed var(--t-orange-text); outline-offset: 1px; padding: 0 4px; }
.ph-box { display: grid; place-items: center; padding: 24px; text-align: center; border: 2px dashed currentColor; border-radius: var(--radius); font: 700 13px/1.5 var(--sans); letter-spacing: .04em; }
.ph-box span { display: block; font-weight: 400; letter-spacing: 0; opacity: .85; margin-top: 6px; }

/* 1. Cultural notice dialog */
.notice { max-width: min(520px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: var(--radius); background: var(--t-navy); color: #fff; }
.notice::backdrop { background: rgba(11, 29, 58, .78); }
.notice h2 { font-size: 28px; margin-bottom: 12px; color: #fff; }
.notice p { font-size: 18px; margin-bottom: 24px; }
.notice-static { background: var(--t-navy); color: #fff; padding: 16px; text-align: center; margin-top: 76px; }

/* 2. Hero: solid navy, text left, photo right, Acknowledgement strip contained along the bottom */
.tima-hero { background: var(--t-navy); color: #fff; padding-top: 150px; }
.tima-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-lg); align-items: end; }
.tima-hero .eyebrow { color: var(--t-amber); }
.tima-hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.6rem); font-weight: 600; line-height: .98; letter-spacing: -.02em; margin-bottom: 24px; }
.tima-hero__sub { font: 500 italic clamp(1.15rem, 1.6vw, 1.4rem)/1.35 var(--serif); color: #fff; margin-bottom: 16px; max-width: 34ch; }
.tima-hero__text { max-width: 54ch; color: #D9E2EF; margin-bottom: 32px; }
.tima-hero .hero__actions { margin-bottom: 8px; }
.tima-hero .ph-box { aspect-ratio: 4 / 5; color: #D9E2EF; }
.ack { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--gap); margin-top: var(--head-gap); padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .28); }
.ack h2 { font: 700 12px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--t-amber); margin: 0; padding-top: 3px; }
.ack p { margin: 0; max-width: 90ch; color: #D9E2EF; font-size: 15px; }

/* 3. Model of care */
.tima-model__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap-lg); align-items: center; }
.tima-model__cover img { width: 100%; max-width: 420px; border-radius: 4px; box-shadow: 0 24px 48px -24px rgba(11, 29, 58, .55); }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(11, 29, 58, .25); }
.download .btn { min-height: 56px; padding: 0 32px; font-size: 14px; }
.download__meta { font-size: 15px; color: var(--t-body); }

/* 4. Framework: the "blue river". Flat blue, wave-shaped top and bottom edges (no texture). */
.river { position: relative; background: var(--t-blue); color: #fff; padding-block: calc(var(--pad) + 24px); margin-block: 48px; }
.river::before, .river::after { content: ""; position: absolute; left: 0; right: 0; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V24C180 0 360 0 540 18S900 46 1080 30 1340 4 1440 14V48Z' fill='%230056B3'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.river::before { top: -47px; }
.river::after { bottom: -47px; transform: scaleY(-1); }
.river .eyebrow { color: #fff; }
.tima .river h2, .tima .river .h2 { color: #fff; }
.river h3 { font-size: 26px; color: #fff; margin-bottom: 12px; }
.river p, .river li { color: #E6EEF8; }
.river__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); margin-top: var(--head-gap); }
.river__cols ul { list-style: disc; padding-left: 1.2em; }
.river__cols li { margin-bottom: 6px; }
.principles { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: var(--head-gap); border-top: 1px solid rgba(255, 255, 255, .35); }
.principles li { padding: 20px 16px 0 0; font: 500 20px/1.25 var(--serif); color: #fff; }
.principles li + li { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .35); }
.model { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: center; margin-top: var(--pad); }
.model figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; }
.model figcaption { color: var(--t-body); font-size: 14px; margin-top: 12px; text-align: center; }
.layers li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.layers li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .35); }
.layers__no { font: 500 italic 36px/1 var(--serif); color: var(--t-amber); font-variant-numeric: lining-nums; } /* large text: 3.47:1 passes */
.layers h3 { font-size: 22px; margin-bottom: 4px; }
.layers p { margin: 0; font-size: 15px; }

/* Pull quote */
.tima-quote { max-width: 860px; margin: 0 auto; padding-left: 24px; border-left: 4px solid var(--t-orange); }
.tima-quote p { font: 500 italic clamp(1.8rem, 3.4vw, 2.8rem)/1.2 var(--serif); color: var(--t-navy); margin-bottom: 16px; }
.tima-quote footer { font-size: 15px; color: var(--t-body); }

/* 5. Care domains: an editorial numbered list, not a card grid */
.domains { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap-lg); margin-top: var(--head-gap); }
.domains li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--t-navy); }
.domains__no { font: 500 italic 40px/1 var(--serif); color: var(--t-orange-text); font-variant-numeric: lining-nums; }
.domains h3 { font-size: 26px; color: var(--t-navy); margin-bottom: 8px; }
.domains p { margin: 0; }

/* 6. In practice / Resources tabs */
.tabs__list { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid rgba(11, 29, 58, .2); margin-top: 32px; }
.tabs__tab { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: none; color: var(--t-navy); font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tabs__tab[aria-selected="true"] { background: var(--t-navy); color: #fff; }
.tabs__panel { margin-top: 40px; }
.tabs__panel:focus-visible { outline-offset: 8px; }
.practice { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap-lg); align-items: start; }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.posters .ph-box { aspect-ratio: 1 / 1.414; color: var(--t-navy); background: #fff; }
.poster { margin: 0; }
.poster img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(11, 29, 58, .55); outline: 1px solid rgba(11, 29, 58, .12); }
.poster figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--t-body); }
.ph-tag { flex: none; padding: 2px 8px; border: 1px dashed var(--t-orange-text); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-orange-text); }
.resources { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap-lg); align-items: start; }
.res-card { display: block; padding: 32px; border-radius: var(--radius); background: var(--t-navy); color: #fff; text-decoration: none; transition: transform .3s var(--ease); }
.res-card:hover { transform: translateY(-3px); }
.res-card:focus-visible { outline-color: var(--t-navy); }
.res-card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--t-amber); margin-bottom: 12px; }
.res-card strong { display: block; font: 500 34px/1.1 var(--serif); margin-bottom: 8px; }
.res-card span { display: block; color: #D9E2EF; max-width: 34ch; }
.res-card em { display: block; margin-top: 24px; font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.res-list li { padding: 18px 0; border-top: 1px solid rgba(11, 29, 58, .3); }
.res-list li:last-child { border-bottom: 1px solid rgba(11, 29, 58, .3); }
.res-list a { font: 500 22px/1.3 var(--serif); color: var(--t-navy); }
.res-list p { margin: 4px 0 0; font-size: 15px; }

/* Values strip (from the TIMA mockup) */
.values { background: var(--t-navy); color: #fff; padding: 28px 0; }
.values ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.values li { font: 700 13px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.values li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--t-amber); margin: 0 20px; vertical-align: middle; }

@media (max-width: 1024px) {
  .tima-hero__grid, .tima-model__grid, .river__cols, .model, .practice, .resources { grid-template-columns: 1fr; }
  .tima-hero .ph-box { aspect-ratio: 3 / 2; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li + li { border-left: 0; padding-left: 0; }
  .domains { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tima-hero { padding-top: 120px; }
  .ack { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .posters { grid-template-columns: 1fr; }
  .download .btn { width: 100%; }
  .tabs__tab { padding: 0 16px; }
  .domains li, .layers li { grid-template-columns: 48px 1fr; }
}

/* ---------- TIMA header (own navigation, like the mockup) ---------- */
.header--tima { grid-template-columns: auto 1fr auto; gap: 24px; background: var(--tima-navy, #0B1D3A); padding-block: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header--tima.is-scrolled { background: #0B1D3A; }
.header--tima.is-scrolled .menu-btn { background: transparent; border-color: rgba(255, 255, 255, .7); }
.tima-brand { grid-column: 1; display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.tima-brand img { width: 52px; height: 52px; border-radius: 50%; }
.tima-brand__name { font: 700 13px/1.05 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding-right: 14px; border-right: 2px solid #F26A21; }
.tima-brand__sub { max-width: 230px; font-size: 12px; line-height: 1.35; color: #D9E2EF; }
.tima-nav { grid-column: 2; justify-self: end; }
.tima-nav ul { display: flex; gap: 4px; }
.tima-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #fff; font-size: 15px; text-decoration: none; position: relative; }
.tima-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: #F26A21; transform: scaleX(0); transition: transform .35s var(--ease); }
.tima-nav a[aria-current="true"]::after, .tima-nav a:hover::after { transform: scaleX(1); }
.header--tima .menu-btn { grid-column: 3; }
.header--tima :focus-visible { outline-color: #fff; }
.tima [id] { scroll-margin-top: 96px; }

/* Hero artwork (from the booklet) in place of a photo */
.tima-hero { padding-top: 132px; }
.tima-hero__art { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.tima-hero__art img { width: 100%; height: 100%; object-fit: cover; }

/* Artwork bands between sections, like the mockup */
.art-band { height: clamp(72px, 9vw, 128px); overflow: hidden; }
.art-band img { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about-tima { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-lg); align-items: start; }
.partners div { padding: 18px 0; border-top: 1px solid var(--t-navy); }
.partners div:last-child { border-bottom: 1px solid var(--t-navy); }
.partners dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t-orange-text); }
.partners dd { margin: 4px 0 0; font: 500 22px/1.3 var(--serif); color: var(--t-navy); }

@media (max-width: 1180px) { .tima-brand__sub { display: none; } }
@media (max-width: 1024px) {
  .header--tima { grid-template-columns: 1fr auto; row-gap: 4px; padding-bottom: 0; }
  .header--tima .menu-btn { grid-column: 2; } /* only two columns here, so the links row below can span the full width */
  .tima-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 6px; }
  .tima-nav::-webkit-scrollbar { display: none; }
  .tima-nav ul { justify-content: space-between; }
  .tima-nav a { white-space: nowrap; font-size: 14px; padding: 0 10px; }
  .tima-hero { padding-top: 168px; }
  .tima [id] { scroll-margin-top: 140px; }
  .about-tima { grid-template-columns: 1fr; }
  .tima-hero__art { aspect-ratio: 3 / 2; }
}
@media (max-width: 720px) {
  .tima-nav { margin: 0 -10px; padding: 0; }
  .tima-nav a { font-size: 13px; padding: 0 6px; }
  .tima-nav a::after { left: 6px; right: 6px; }
  .tima-brand img { width: 40px; height: 40px; }
  .tima-brand__name { font-size: 11px; }
}
@media (max-width: 370px) { .tima-nav a { font-size: 12px; padding: 0 5px; } }

/* ---------- TIMA feedback, 27 Nov 2026 ---------- */
/* About, now at the top of /tima/ */
.btn--navy { background: var(--t-navy); color: #fff; }
.btn--navy:hover { background: var(--t-blue); }
.about-tima__lead { font: 500 clamp(1.3rem, 2vw, 1.7rem)/1.4 var(--serif); color: var(--t-navy); }
.about-tima__more { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(11, 29, 58, .25); }
.about-tima__more .btn { min-height: 52px; }
.about-tima__org h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--t-navy); margin-bottom: 16px; }
.about-tima__org .partners { margin-top: 24px; }

/* /tima/about/: the long version */
.tima-hero--about { padding-bottom: clamp(48px, 6vw, 88px); }
.tima-hero--about h1 { max-width: 16ch; }
.tima-hero--about .tima-hero__sub { max-width: 46ch; margin-bottom: 0; }
.prose-tima > * { max-width: 72ch; }
.prose-tima p, .prose-tima li { font-size: 18px; line-height: 1.7; }
.prose-tima h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--t-navy); margin: clamp(48px, 6vw, 72px) 0 20px; }
.prose-tima__lead { font: 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.45 var(--serif) !important; color: var(--t-navy); }
.prose-tima__pull { margin-block: 32px; padding-left: 20px; border-left: 4px solid var(--t-orange); font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.45 var(--serif) !important; color: var(--t-navy); }
.prose-tima__list { margin: 0 0 1em; }
.prose-tima__list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.prose-tima__list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--t-orange); }
.prose-tima .download { margin-top: clamp(48px, 6vw, 72px); }

/* TIMA footer (replaces the Yimiri footer on TIMA pages; owner request, 27 Nov 2026) */
.tima-footer { background: var(--t-navy); color: #D9E2EF; padding: clamp(56px, 7vw, 96px) 0 40px; border-top: 6px solid var(--t-orange); }
.tima-footer a { color: #fff; text-decoration: none; }
.tima-footer a:hover { color: var(--t-amber); }
.tima-footer :focus-visible { outline-color: #fff; }
.tima-footer__top { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: var(--gap-lg); align-items: start; }
.tima-footer__brand p { margin: 20px 0 0; max-width: 40ch; font-size: 15px; }
.tima-footer .tima-brand img { width: 64px; height: 64px; }
.tima-footer__nav { display: grid; justify-items: start; gap: 4px; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid rgba(255, 255, 255, .2); }
.tima-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.2 var(--serif); }
.tima-footer__nav a:last-child { margin-top: 12px; font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--t-amber); }
.tima-footer__ack h2 { font: 700 12px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--t-amber); margin: 0 0 12px; }
.tima-footer__ack p { margin: 0; font-size: 15px; max-width: 75ch; }
.tima-footer__hosted { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.tima-footer__hosted p { margin: 0; max-width: 80ch; }
.tima-footer__hosted strong { color: #fff; }
.tima-footer__hosted a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tima-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: 14px; }
.tima-footer__legal a { color: #D9E2EF; }
.tima-footer__credit { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.tima-footer .tagai-credit span { color: #D9E2EF; }
@media (max-width: 1024px) { .tima-footer__top { grid-template-columns: 1fr 1fr; } .tima-footer__ack { grid-column: 1 / -1; } }
@media (max-width: 720px) { .tima-footer__top { grid-template-columns: 1fr; } .tima-footer__nav { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); } }
#about-title { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
