/* 20260912-refine17: restrained finishing shared by all three themes.
   Theme colour tokens live in themes.css; this file follows it in header.html.
   Existing artwork, content, page grids and section order remain in their source templates. */

/* ===== HOME ===== */
/* refine17: homepage rhythm and card finishing; artwork and section grids stay intact. */
@media screen {
 html[data-jz-theme] .jz-site.jz-home .jz-section-heading .jz-eyebrow {
  line-height:1.5;letter-spacing:.14em;font-weight:600;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-section-heading h2,
 html[data-jz-theme] .jz-site.jz-home .jz-about-copy h3 {
  text-wrap:balance;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-news-highlights h3 {
  text-wrap:pretty;letter-spacing:-.015em;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-news-highlights time {
  font-variant-numeric:tabular-nums;letter-spacing:.025em;
 }
 /* Existing 44px action row accommodates the hairline without taller cards. */
 html[data-jz-theme] .jz-site.jz-home .jz-news-read {
  border-top:1px solid var(--jz-line);padding-top:10px;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-news-highlights article:first-child .jz-news-read {
  border-top-color:rgba(255,255,255,.22);
 }
 html[data-jz-theme] .jz-site.jz-home .jz-news-highlights article:not(:first-child)>a {
  box-shadow:0 2px 5px rgba(var(--jz-theme-shadow-rgb),.025),0 14px 32px rgba(var(--jz-theme-shadow-rgb),.06),inset 0 1px 0 rgba(255,255,255,.75);
 }
 html[data-jz-theme] .jz-site.jz-home :is(.jz-course-card,.jz-case-card) {
  box-shadow:var(--jz-shadow-media-card),inset 0 1px 0 rgba(255,255,255,.72);
 }
 html[data-jz-theme] .jz-site.jz-home .jz-course-info {
  border-top:1px solid var(--jz-line);
 }
 html[data-jz-theme] .jz-site.jz-home .jz-course-info h3 {
  text-wrap:pretty;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-about-grid figure {
  box-shadow:0 3px 8px rgba(var(--jz-theme-shadow-rgb),.025),0 20px 46px rgba(var(--jz-theme-shadow-rgb),.065),inset 0 1px 0 rgba(255,255,255,.8);
 }
 html[data-jz-theme] .jz-site.jz-home .jz-about-grid figcaption {
  align-items:baseline;flex-wrap:wrap;row-gap:5px;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-about-grid figcaption>span {
  font-size:10px;line-height:1.6;letter-spacing:.06em;white-space:nowrap;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-track {
  overscroll-behavior-x:contain;scroll-padding-inline:18px;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-track:focus-visible {
  outline:2px solid var(--jz-brand);outline-offset:3px;border-radius:18px;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card img {
  filter:drop-shadow(0 4px 8px rgba(var(--jz-theme-shadow-rgb),.15));
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card p {
  align-items:center;gap:12px;line-height:1.75;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card p>span {
  display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;
  border:1px solid var(--jz-line);border-radius:50%;background:var(--jz-soft);
  color:var(--jz-brand-deep);font-size:16px;line-height:1;
  transition:background .2s,border-color .2s,color .2s;
 }
 /* Preserve the footer's navigation layout and existing generous hit areas. */
 html[data-jz-theme] .jz-site .jz-footer .jz-eyebrow {
  font-size:10px;line-height:1.6;letter-spacing:.13em;
 }
 html[data-jz-theme] .jz-site .jz-footer :is(.jz-footer-nav a,.jz-footer-address,.jz-footer-bottom a) {
  text-decoration-line:underline;text-decoration-color:transparent;
  text-decoration-thickness:1px;text-underline-offset:5px;
  transition:color .2s,text-decoration-color .2s;
 }
 html[data-jz-theme] .jz-site .jz-footer :is(.jz-footer-nav a,.jz-footer-address,.jz-footer-bottom a):focus-visible {
  text-decoration-color:currentColor;
 }
 html[data-jz-theme] .jz-site .jz-footer .jz-phone {
  font-variant-numeric:tabular-nums;letter-spacing:-.015em;
 }
}
@media screen and (hover:hover) and (pointer:fine) {
 html[data-jz-theme] .jz-site.jz-home .jz-news-highlights article:not(:first-child)>a:hover {
  box-shadow:0 4px 8px rgba(var(--jz-theme-shadow-rgb),.04),0 20px 38px rgba(var(--jz-theme-shadow-rgb),.10),inset 0 1px 0 rgba(255,255,255,.8);
 }
 html[data-jz-theme] .jz-site.jz-home :is(.jz-course-card,.jz-case-card):hover {
  transform:translateY(-3px);
  box-shadow:var(--jz-shadow-media-hover),inset 0 1px 0 rgba(255,255,255,.8);
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card:hover p>span {
  background:var(--jz-brand);border-color:var(--jz-brand);color:#fff;
 }
 html[data-jz-theme] .jz-site .jz-footer :is(.jz-footer-nav a,.jz-footer-address,.jz-footer-bottom a):hover {
  text-decoration-color:currentColor;
 }
}
@media screen and (max-width:680px) {
 html[data-jz-theme] .jz-site.jz-home .jz-section-heading .jz-eyebrow {
  font-size:10px;letter-spacing:.12em;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card p {
  font-size:12px;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-about-grid figcaption {
  font-size:12px;
 }
 html[data-jz-theme] .jz-site .jz-footer-bottom {
  font-size:11px;line-height:1.9;
 }
}
@media (prefers-reduced-motion:reduce) {
 html[data-jz-theme] .jz-site.jz-home :is(.jz-course-card,.jz-case-card):hover {
  transform:none;
 }
 html[data-jz-theme] .jz-site.jz-home .jz-case-card p>span,
 html[data-jz-theme] .jz-site .jz-footer :is(.jz-footer-nav a,.jz-footer-address,.jz-footer-bottom a) {
  transition:none;
 }
}

/* ===== PAGES ===== */
/* Inner-page refinements: wrapping, readable tables and adjacent-article hit areas.
   Retains all existing card grids, contact columns, source media and wording. */
@media screen {
  html[data-jz-theme] .jz-site .jz-page .jz-article-header h1,
  html[data-jz-theme] .jz-site .jz-page .jz-card-copy h2 {
    text-wrap: pretty;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-article-header h1 {
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
  }
  html[data-jz-theme] .jz-site .jz-page--news-detail .jz-article-header h1 {
    max-width: none;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-prose > p {
    text-wrap: pretty;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-news-copy time,
  html[data-jz-theme] .jz-site .jz-page .jz-article-meta time,
  html[data-jz-theme] .jz-site .jz-page .jz-prose table {
    font-variant-numeric: tabular-nums;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-article-meta > span {
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--jz-line);
  }

  /* Edge shadows appear only when a prospectus has more columns off screen. */
  html[data-jz-theme] .jz-site .jz-page .jz-prose .jz-table-shell {
    position: relative;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 14px;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell > .jz-table-scroll {
    margin: 0;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell::before,
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 1px;
    bottom: 1px;
    width: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell::before {
    left: 1px;
    border-radius: 13px 0 0 13px;
    background: linear-gradient(to right, rgba(var(--jz-theme-shadow-rgb), .16), transparent);
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell::after {
    right: 1px;
    border-radius: 0 13px 13px 0;
    background: linear-gradient(to left, rgba(var(--jz-theme-shadow-rgb), .16), transparent);
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell:has(> .jz-table-scroll.is-scrollable:not(.is-at-start))::before,
  html[data-jz-theme] .jz-site .jz-page .jz-table-shell:has(> .jz-table-scroll.is-scrollable:not(.is-at-end))::after {
    opacity: 1;
  }
  /* Keep a full scrollbar track where the operating system displays one. */
  html[data-jz-theme] .jz-site .jz-page .jz-table-scroll {
    scrollbar-width: auto;
    scrollbar-color: var(--jz-theme-scroll) var(--jz-paper);
    scroll-padding-inline: 16px;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-scroll::-webkit-scrollbar {
    height: 10px;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-scroll::-webkit-scrollbar-track {
    background: var(--jz-paper);
    border-top: 1px solid var(--jz-line);
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-scroll::-webkit-scrollbar-thumb {
    background: var(--jz-theme-scroll);
    border: 2px solid var(--jz-paper);
    border-radius: 999px;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-table-scroll:focus-visible {
    border-color: var(--jz-brand-deep);
    outline: 2px solid var(--jz-brand-deep);
    outline-offset: 3px;
    box-shadow: none;
  }

  /* The label remains secondary; the article title is a comfortable tap target. */
  html[data-jz-theme] .jz-site .jz-page .jz-article-navigation > div {
    transition: border-color .18s, background-color .18s;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-article-navigation .jz-navigation-label {
    margin-bottom: 4px;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-article-navigation a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
    border-radius: 4px;
    line-height: 1.65;
    text-wrap: pretty;
  }
  html[data-jz-theme] .jz-site .jz-page .jz-article-navigation > div:focus-within {
    border-color: var(--jz-brand-deep);
  }

  @media (hover: hover) and (pointer: fine) {
    html[data-jz-theme] .jz-site .jz-page .jz-table-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--jz-theme-border-strong);
    }
    html[data-jz-theme] .jz-site .jz-page .jz-prose table tbody > tr:not(:first-child):hover > td {
      background: var(--jz-theme-hover);
    }
    html[data-jz-theme] .jz-site .jz-page .jz-article-navigation > div:has(a:hover) {
      border-color: var(--jz-theme-border-strong);
    }
  }
  @media (max-width: 760px) {
    html[data-jz-theme] .jz-site .jz-page .jz-prose .jz-table-shell {
      margin: 24px 0;
      border-radius: 11px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-jz-theme] .jz-site .jz-page .jz-article-navigation > div,
    html[data-jz-theme] .jz-site .jz-page .jz-table-shell::before,
    html[data-jz-theme] .jz-site .jz-page .jz-table-shell::after {
      transition: none;
    }
  }
}

/* ===== CONTROLS ===== */
/* refine17: contained controls, visible keyboard focus and short-screen access. */
html[data-jz-theme] .jz-site .jz-call-dialog {
 max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top));
 overscroll-behavior:contain;scroll-padding:16px;
 scrollbar-width:thin;scrollbar-color:var(--jz-theme-scroll,var(--jz-muted)) var(--jz-paper);
}
html[data-jz-theme] .jz-site .jz-nav {scroll-padding:12px}
html[data-jz-theme] .jz-site .jz-case-track:focus-visible {
 outline:2px solid var(--jz-brand-deep);outline-offset:3px;box-shadow:none;
}
html[data-jz-theme] .jz-site .jz-pagination a {font-variant-numeric:tabular-nums}
html[data-jz-theme] .jz-site .jz-pagination a:focus-visible {outline-offset:3px}
html[data-jz-theme] .jz-site .jz-image-viewer {
 padding-top:max(16px,env(safe-area-inset-top));
 padding-right:max(28px,env(safe-area-inset-right));
 padding-bottom:max(24px,env(safe-area-inset-bottom));
 padding-left:max(28px,env(safe-area-inset-left));
}
@media(max-width:680px) {
 html[data-jz-theme] .jz-site .jz-image-viewer {
  padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
 }
}
@media(max-height:500px) {
 html[data-jz-theme] .jz-site .jz-call-dialog {padding-top:22px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 html[data-jz-theme] .jz-site .jz-dialog-icon {width:42px;height:42px;margin:0 auto 10px;border-radius:14px}
 html[data-jz-theme] .jz-site .jz-dialog-icon svg {width:22px;height:22px}
 html[data-jz-theme] .jz-site .jz-dialog-phone {margin:8px 0 12px}
 html[data-jz-theme] .jz-site .jz-dialog-actions {padding-top:12px}
 html[data-jz-theme] .jz-site .jz-image-viewer[open] {gap:10px}
 html[data-jz-theme] .jz-site .jz-image-viewer {padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
}


/* sky18: preserve responsive navigation spacing after removing the colour chooser. */
@media(min-width:961px) {
 .jz-site .jz-header-row {gap:20px}
 .jz-site .jz-nav {margin-left:auto;gap:24px}
}
@media(min-width:961px) and (max-width:1200px) {
 .jz-site .jz-header-row {gap:14px}
 .jz-site .jz-nav {gap:18px}
 .jz-site .jz-nav>a {font-size:14px}
}
@media(max-width:960px) {
 .jz-site .jz-header-row {gap:10px}
 .jz-site .jz-logo {margin-right:auto}
}
@media(max-width:680px) {
 .jz-site .jz-header-row {gap:8px}
 .jz-site .jz-logo {flex:1 1 auto;min-width:0;max-width:226px}
 .jz-site .jz-logo img {width:100%;max-width:226px}
 .jz-site .jz-header-row>.jz-menu-toggle>span:last-child {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .jz-site .jz-header-row>.jz-menu-toggle {flex:0 0 44px;width:44px;min-width:44px;min-height:44px;justify-content:center;padding:9px;gap:0}
}

/* logo21: one complete lockup, original emblem with consistently outlined lettering. */
.jz-site .jz-logo>img {aspect-ratio:648/120;object-fit:contain}
