/* One reading rhythm across content cards. Media, navigation and form controls
   keep their own layout and behavior. */
html body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.clarity-steps > article) {
  min-width: 0;
  padding: clamp(22px,2.4vw,30px);
  border-radius: 24px;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.contact-card,.career-job) {
  background: linear-gradient(155deg,#fff,#f3f7fc) !important;
  border: 1px solid var(--tk-ui-line) !important;
  box-shadow: inset 0 1px 0 #ffffffb3;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.career-job) > h3 { color: var(--tk-ui-ink) !important; }
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.career-job) > p:not(.eyebrow) { color: var(--tk-ui-secondary) !important; }
html body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.clarity-steps > article) > h3 {
  min-height: 0;
  font-size: clamp(21px,1.9vw,25px);
  line-height: 1.3;
  font-weight: 650;
  text-wrap: balance;
}
html body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.clarity-steps > article,.career-job) > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: manual;
}
html body main[data-tk-ui] .detail-card > p:not(.eyebrow) { hyphens: auto; }
html body main[data-tk-ui] .detail-card > :is(.number,.tkpr-step) {
  margin: 0;
  align-self: center;
  line-height: 1.4;
}
html body main[data-tk-ui] :is(.tk-local-card,.tkpr-related-card,.clarity-steps > article) > h3 { margin: 0 0 14px; }
html body main[data-tk-ui] .tkpr-related-card > img + h3 { margin-top: 20px; }
html body main[data-tk-ui] :is(.tk-local-card,.tkpr-related-card,.clarity-steps > article) > p { margin: 0; }

/* A linked heading is still a heading, not a second button inside a card. */
html body main[data-tk-ui] :is(.tk-local-card,.detail-card) h3 > a:not(.button) {
  --tk-action-bg: transparent;
  --tk-action-ink: currentColor;
  --tk-action-border: transparent;
  display: inline !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline !important;
  text-decoration-thickness: .055em;
  text-underline-offset: .2em;
}
html body main[data-tk-ui] :is(.tk-local-card,.detail-card) h3 > a:focus-visible {
  outline: 3px solid var(--tk-ui-blue);
  outline-offset: 5px;
}
html body main[data-tk-ui] :is(.tk-local-card,.detail-card) h3 > a:not(.button):not(.contact-card):not(.service-card):not(.tkpr-related-card):not(.cinema-image-link) {
  text-decoration: underline !important;
  text-decoration-thickness: .055em;
  text-underline-offset: .2em;
}

/* Contact cards use a single gap instead of stacked heading/list margins. */
html body main[data-tk-ui] .contact-grid { gap: 20px; align-items: stretch; }
html body main[data-tk-ui] .contact-grid > .contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px,3vw,36px);
  border-radius: 24px;
}
html body main[data-tk-ui] .contact-grid > .contact-card > :is(h2,p,.number,.check-list) { margin: 0; }
html body main[data-tk-ui] .contact-grid > .contact-card > .number {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .07em;
}
html body main[data-tk-ui] .contact-grid > .contact-card > h2 {
  font-size: clamp(25px,2.6vw,34px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
html body main[data-tk-ui] .contact-grid > .contact-card > p { font-size: 16px; line-height: 1.6; }
html body main[data-tk-ui] .contact-grid > .contact-card > .caption { font-size: 14px; line-height: 1.6; }
html body main[data-tk-ui] .contact-help .check-list > li {
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.6;
  text-align: start;
}
html body main[data-tk-ui] .contact-grid > .contact-card > .text-link {
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
  border-radius: 16px;
}

/* The same type scale in answers, supporting notes and information sections. */
html body main[data-tk-ui] :is(.faq,.tk-local-faq) details > p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: start;
}
html body main[data-tk-ui] .tkpr-note { margin-top: 24px; padding: 20px 24px; border-radius: 20px; }
html body main[data-tk-ui] .tkpr-note > p { margin: 0; font-size: 15px; line-height: 1.65; }
html body main[data-tk-ui] .about-strip > div > h2 { font-size: clamp(28px,2.8vw,38px); line-height: 1.2; margin-bottom: 18px; }
html body main[data-tk-ui] .about-strip > div > p { font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
html body main[data-tk-ui] .service-grid .service-card .card-title > h3 { font-size: clamp(25px,2.3vw,32px); line-height: 1.25; }
html body main[data-tk-ui] .service-grid .service-card > p { font-size: 16px; line-height: 1.65; }
html body main[data-tk-ui] .career-job { border-radius: 24px; }
html body main[data-tk-ui] .career-job > h3 { font-size: clamp(22px,2.1vw,28px); line-height: 1.3; }

/* The careers invitation on About follows the existing mail contact card. */
html body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) {
  width: min(780px,calc(100% - 40px));
  padding: clamp(28px,4vw,44px);
  margin: 40px auto 64px;
  border: 1px solid var(--tk-ui-line);
  border-radius: 28px;
  text-align: center;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) {
  background: linear-gradient(155deg,#fff,#f3f7fc) !important;
  box-shadow: inset 0 1px 0 #fff;
}
html body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) > h2 { font-size: clamp(28px,3vw,38px); line-height: 1.2; margin: 0 auto 18px; }
html body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) > p:not(.eyebrow) { max-width: 58ch; font-size: 16px; line-height: 1.65; margin: 0 auto 24px; }
html body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) > .eyebrow { margin: 0 0 14px; }
html body main[data-tk-ui] .career-contact > .button { max-width: 100%; white-space: normal; text-wrap: balance; }

@media (max-width: 640px) {
  html body main[data-tk-ui] :is(.detail-card,.tk-local-card,.tkpr-related-card,.clarity-steps > article) { padding: 22px; }
  html body main[data-tk-ui] .contact-grid > .contact-card { padding: 24px 22px; }
  html body main[data-tk-ui] .career-contact:not(:has(.tk-ui-contact-actions)) { padding: 26px 22px; margin-block: 32px 48px; border-radius: 26px; }
}

/* Restore deliberate contrast where the theme's pale/transparent actions merged
   with their containers. Action variables also cover the theme's hover rules. */
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main.home-premium[data-tk-ui] .about-strip > div > a.text-link {
  --tk-action-bg: #155d99;
  --tk-action-ink: #fff;
  --tk-action-border: #155d99;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main.home-premium[data-tk-ui] .check-entry {
  background: #e4ebf3 !important;
  border-color: #c4d1df !important;
  gap: 12px;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main.home-premium[data-tk-ui] .check-entry > a {
  --tk-action-bg: #224b70;
  --tk-action-ink: #fff;
  --tk-action-border: #345f83;
  border-radius: 16px !important;
  border-top-color: var(--tk-action-border) !important;
  min-height: 52px;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main.home-premium[data-tk-ui] .check-entry > a::after { color: currentColor; }
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] .clarity-steps > article {
  background: #203242 !important;
  border: 1px solid #496073 !important;
  box-shadow: inset 0 1px 0 #ffffff0f;
}
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] .clarity-steps > article > h3 { color: #fff !important; }
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body main[data-tk-ui] .clarity-steps > article > p:not(.eyebrow) { color: #dde5ef !important; }

/* Keep these actions readable in the explicit high-contrast modes, too. */
html.a11y-high body main.home-premium[data-tk-ui] :is(.about-strip > div > a.text-link,.check-entry > a) {
  --tk-action-bg: #000;
  --tk-action-ink: #ffec70;
  --tk-action-border: #fff;
}
html.a11y-light body main.home-premium[data-tk-ui] :is(.about-strip > div > a.text-link,.check-entry > a) {
  --tk-action-bg: #fff;
  --tk-action-ink: #172635;
  --tk-action-border: #172635;
}
