/* v1.0.5: coordinate alignment and exact branded navigation assets. */
/* Menu: retain the original logo imagery instead of typography recreation. */
.site-nav .nav-links > li.nav-links__item--case-logo,
.site-nav .nav-links > li.nav-links__item--dictionary-logo {display:flex; align-items:center; flex:none;}
.site-nav .nav-links a:has(>img.nav-logo),
.mobile-nav .nav-links a:has(>img.nav-logo) {display:flex;align-items:center;justify-content:center;line-height:1;padding:0;min-height:42px;text-decoration:none;}
.nav-logo {display:block;max-width:none;height:auto;object-fit:contain;object-position:center;}
.nav-logo--case {width:142px;height:auto;max-height:47px;}
.nav-logo--dictionary {width:132px;height:auto;max-height:40px;}
.site-nav .nav-links {gap:clamp(9px,1vw,16px);}
@media (max-width:1170px) {
  .mobile-nav .nav-links a:has(>img.nav-logo) {justify-content:flex-start; padding:8px 3px;min-height:45px;}
  .mobile-nav .nav-logo--case {width:150px;max-height:49px;}
  .mobile-nav .nav-logo--dictionary {width:140px;max-height:42px;}
}
/* Home video cards: 3 explicit grid rows ensure both iframes begin at the same Y.
   The source page has different nested wrappers for the two title groups. */
.front-content .content-shell .urikata-section--videos > .wp-block-columns {
  align-items:start !important;
}
.front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:64px auto 1fr;
  align-content:start;
  align-items:start;
  gap:0 !important;
}
.front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column > .wp-block-group:first-child {
  grid-row:1;display:flex;align-items:center;justify-content:flex-start;
  height:64px;min-height:64px;max-height:64px;
  width:100%;margin:0 !important;padding:0 !important;
}
.front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column > figure.urikata-video {
  grid-row:2;align-self:start;
  width:100%;margin:0 !important;padding:0 !important;
}
.front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column > figure.urikata-video > .urikata-video__ratio {aspect-ratio:16/9;width:100%;margin:0;}
.front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column > p {
  grid-row:3;align-self:start;margin:12px 0 0 !important;
}
.front-content .content-shell .urikata-section--videos .wp-block-group:has(> .wp-block-image) {margin:0 !important;padding:0 !important;min-height:0;}
.front-content .content-shell .urikata-section--videos h3.wp-block-heading {margin:0 !important;line-height:1.5 !important;}
/* Testimonials: the original nested Gutenberg constrained groups caused the
   first H3 and subsequent copy to have inconsistent left edges. Restrict
   normalisation to this section; other block layouts remain unchanged. */
.front-content .content-shell > .urikata-section--reviews {padding-top:28px !important;padding-bottom:38px !important;}
.front-content .content-shell .urikata-section--reviews > .wp-block-group {width:100% !important;max-width:1120px !important;margin:0 auto !important;padding-left:0 !important;padding-right:0 !important;}
.front-content .content-shell .urikata-section--reviews .wp-block-group:not(.is-layout-flex) {width:100%;max-width:100%;margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important;}
.front-content .content-shell .urikata-section--reviews .wp-block-group :is(h2.wp-block-heading,h3.wp-block-heading,p) {max-width:100% !important;width:100% !important;margin-left:0 !important;margin-right:0 !important;text-align:left !important;float:none !important;}
.front-content .content-shell .urikata-section--reviews h2.wp-block-heading {margin-top:28px !important;margin-bottom:18px !important;}
.front-content .content-shell .urikata-section--reviews h2#review {margin-top:0 !important;}
.front-content .content-shell .urikata-section--reviews h3.wp-block-heading {margin-top:23px !important;margin-bottom:8px !important;}
.front-content .content-shell .urikata-section--reviews p {margin-top:0 !important;margin-bottom:13px !important;}
/* Only the three feature columns retain columns within the review group. */
@media (max-width:900px) {
 .front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column {grid-template-rows:56px auto 1fr;}
 .front-content .content-shell .urikata-section--videos > .wp-block-columns > .wp-block-column > .wp-block-group:first-child {height:56px;min-height:56px;max-height:56px;}
}
