/* KTC Terminal — component styles. Tokens come from theme.json presets. */
:root {
  --ktc-canvas: var(--wp--preset--color--canvas, #f1f2f5);
  --ktc-card: var(--wp--preset--color--card, #ffffff);
  --ktc-surface: var(--wp--preset--color--surface, #ecedf2);
  --ktc-ink: var(--wp--preset--color--ink, #191c25);
  --ktc-ink-2: var(--wp--preset--color--ink-2, #3c4250);
  --ktc-ink-3: var(--wp--preset--color--ink-3, #767a86);
  --ktc-line: var(--wp--preset--color--line, #dfe2e8);
  --ktc-acc: var(--wp--preset--color--accent, #f26a21);
  --ktc-acc-2: var(--wp--preset--color--accent-deep, #c82c1a);
  --ktc-acc-rgb: 242 106 33;
  --ktc-radius-sm: 11px;
  --ktc-radius: 16px;
  --ktc-radius-lg: 22px;
  --ktc-shadow-sm: 0 1px 3px rgba(18,22,38,.06), 0 1px 2px rgba(18,22,38,.04);
  --ktc-shadow-md: 0 8px 24px -8px rgba(18,22,38,.14), 0 2px 6px rgba(18,22,38,.05);
  --ktc-ease: cubic-bezier(.32,.72,.32,1);
  --ktc-dur: .22s;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ktc-acc-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- shared ---------- */
.ktc-card {
  background: var(--ktc-card);
  border: 1px solid var(--ktc-line);
  border-radius: var(--ktc-radius);
  box-shadow: var(--ktc-shadow-sm);
  overflow: hidden;
}
.ktc-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ktc-acc-2); margin: 0;
}
.ktc-section { padding-top: 44px; }
.ktc-section__head { margin-bottom: 14px; }
.ktc-section__head .wp-block-heading { margin: 2px 0 0; }
.ktc-section__more { font-size: 13px; font-weight: 640; white-space: nowrap; }
.ktc-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.ktc-btn-ghost .wp-block-button__link {
  background: var(--ktc-card); color: var(--ktc-ink); box-shadow: none;
  border: 1px solid var(--ktc-line);
}
.ktc-btn-ghost .wp-block-button__link:hover { border-color: var(--ktc-ink-3); background: var(--ktc-card); color: var(--ktc-ink); }

/* ---------- banner (photo first, page title on it) ---------- */
.ktc-banner {
  position: relative; color: #fff; display: flex; align-items: flex-end; min-height: 250px;
  background-size: cover; background-position: center 40%;
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 20px));
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 20px));
}
.ktc-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,15,22,.55) 0%, rgba(12,15,22,.15) 35%, rgba(12,15,22,.25) 60%, rgba(12,15,22,.85) 100%);
}
.ktc-banner__in { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 56px 20px 74px; }
.ktc-banner--home { min-height: 500px; }
.ktc-banner--home .ktc-banner__in { padding-bottom: 88px; }
.ktc-banner__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); margin: 0; }
.ktc-banner__title { color: #fff; margin: 8px 0 0; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.ktc-banner--home .ktc-banner__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; }
.ktc-banner__lede { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); margin: 12px 0 0; max-width: 46ch; }
.ktc-banner__loc {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85);
}
.ktc-banner__loc::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--ktc-acc); box-shadow: 0 0 0 3px rgb(var(--ktc-acc-rgb) / .3);
}

/* ---------- rail: one floating capsule, sticks to the top on scroll ---------- */
.ktc-rail {
  position: sticky; top: 10px; z-index: 30;
  max-width: 1080px; margin: -32px auto 0 !important;
  background: var(--ktc-card); border: 1px solid var(--ktc-line); border-radius: 16px;
  box-shadow: var(--ktc-shadow-lg); padding: 10px 14px; gap: 14px;
}
.ktc-rail .custom-logo { height: 32px; width: auto; display: block; }
.ktc-rail .wp-block-site-logo { line-height: 0; flex-shrink: 0; }
.ktc-rail .wp-block-navigation { margin: 0 auto; }
.ktc-rail .wp-block-buttons { flex-shrink: 0; }
.ktc-rail .wp-block-button__link { padding: 9px 16px; font-size: 13.5px; }
.ktc-rail .wp-block-navigation__container {
  gap: 2px; padding: 4px; background: var(--ktc-surface); border-radius: 12px; flex-wrap: nowrap;
}
.ktc-rail .wp-block-navigation-item__content {
  display: inline-block; padding: 7px 12px; border-radius: 9px; white-space: nowrap;
  color: var(--ktc-ink-2); font-size: 13px; font-weight: 620; text-decoration: none;
  transition: background var(--ktc-dur) var(--ktc-ease), color var(--ktc-dur), box-shadow var(--ktc-dur);
}
.ktc-rail .wp-block-navigation-item__content:hover { color: var(--ktc-ink); text-decoration: none; }
.ktc-rail .current-menu-item > .wp-block-navigation-item__content { background: var(--ktc-card); color: var(--ktc-ink); box-shadow: var(--ktc-shadow-sm); }
.ktc-rail .wp-block-navigation__responsive-container.is-menu-open { background: var(--ktc-card); padding: 24px; }
.ktc-rail .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { background: none; padding: 0; flex-direction: column; align-items: stretch; gap: 4px; }
.ktc-rail .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; font-size: 17px; padding: 12px 14px; }
.ktc-rail .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { background: var(--ktc-surface); box-shadow: none; }
.ktc-rail .wp-block-navigation__responsive-container-open, .ktc-rail .wp-block-navigation__responsive-container-close { color: var(--ktc-ink); }
main.wp-block-group { padding-top: 26px; }
main.wp-block-group > .ktc-section:first-child { padding-top: 18px; }
@media (max-width: 900px) {
  .ktc-rail .wp-block-navigation-item__content { padding: 7px 9px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .ktc-banner { min-height: 200px; }
  .ktc-banner--home { min-height: 400px; }
  .ktc-banner__in { padding: 40px 20px 62px; }
  .ktc-banner--home .ktc-banner__in { padding-bottom: 74px; }
  .ktc-rail { padding: 8px 10px; gap: 10px; margin-top: -28px !important; top: 8px; }
  .ktc-rail .custom-logo { height: 28px; }
  .ktc-rail .wp-block-button__link { padding: 8px 12px; font-size: 12.5px; }
}

/* ---------- announcements (query loop) ---------- */
.ktc-notices .wp-block-post-template { list-style: none; padding: 0; margin: 0; display: block; }
.ktc-notices .wp-block-post { margin: 0; }
.ktc-notice {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--ktc-line); position: relative;
}
.ktc-notices .wp-block-post:first-child .ktc-notice { border-top: 0; }
.ktc-notices .wp-block-post:first-child .ktc-notice { background: color-mix(in srgb, var(--ktc-acc) 5%, var(--ktc-card)); }
.ktc-notice:hover { background: var(--ktc-surface); }
.ktc-notice__date { font-size: 12.5px; font-weight: 600; color: var(--ktc-ink-3); font-variant-numeric: tabular-nums; margin: 0; }
.ktc-notice__t { font-size: 14px; font-weight: 640; line-height: 1.35; margin: 0; }
.ktc-notice__t a { color: var(--ktc-ink); text-decoration: none; }
.ktc-notice__t a::after { content: ""; position: absolute; inset: 0; }
.ktc-notice__t a:hover { text-decoration: none; }

/* ---------- vessel schedule ---------- */
.ktc-card.is-layout-flow > *, .ktc-vessels > * { margin-block-start: 0; }
.ktc-vessel {
  margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  padding: 14px 18px; border-top: 1px solid var(--ktc-line);
}
.ktc-vessel:first-child { border-top: 0; }
.ktc-vessel__name { font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; margin: 0; }
.ktc-vessel__name a { color: var(--ktc-ink); }
.ktc-vessel__line { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--ktc-ink-2); margin: 0; }
.ktc-vessel__line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9500f; }
.ktc-vessel__when {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; margin: 0;
  font-size: 12.5px; font-weight: 650; color: var(--ktc-ink); font-variant-numeric: tabular-nums;
}
.ktc-vessel__when small { display: block; font-weight: 600; color: var(--ktc-ink-3); }
.ktc-day { margin: 0; padding: 10px 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ktc-ink-3); background: var(--ktc-canvas); border-top: 1px solid var(--ktc-line); }
.ktc-vessels .ktc-day:first-child { border-top: 0; }
.ktc-vessels .ktc-day + .ktc-vessel { border-top: 1px solid var(--ktc-line); }
.ktc-empty { padding: 18px; font-size: 13.5px; color: var(--ktc-ink-3); margin: 0; }
.ktc-card__foot {
  border-top: 1px solid var(--ktc-line); padding: 11px 18px;
  font-size: 12px; color: var(--ktc-ink-3); display: flex; justify-content: space-between; margin: 0;
}

/* ---------- services ---------- */
.ktc-services { display: grid; grid-template-columns: repeat(4, 1fr); }
.ktc-svc { padding: 22px 20px 24px; border-left: 1px solid var(--ktc-line); }
.ktc-svc:first-child { border-left: 0; }
.ktc-svc svg { width: 24px; height: 24px; color: var(--ktc-acc); display: block; }
.ktc-svc .wp-block-heading { font-size: 15.5px; margin: 12px 0 0; }
.ktc-svc p { font-size: 13px; color: var(--ktc-ink-2); margin: 6px 0 0; line-height: 1.5; }

/* ---------- equipment ---------- */
.ktc-fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ktc-fleet .wp-block-image { margin: 0; }
.ktc-fleet .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ktc-fleet .wp-element-caption {
  padding: 12px 18px 14px; margin: 0; text-align: left;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13.5px; font-weight: 640; color: var(--ktc-ink); border-top: 1px solid var(--ktc-line);
}
.ktc-fleet .wp-element-caption small { font-weight: 600; color: var(--ktc-ink-3); font-size: 12px; }
.ktc-fleet__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ktc-fleet__list li {
  font-size: 12.5px; font-weight: 640; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--ktc-line); background: var(--ktc-card); color: var(--ktc-ink-2); margin: 0;
}

/* ---------- contact ---------- */
.ktc-contacts { display: grid; grid-template-columns: repeat(4, 1fr); }
.ktc-dept { padding: 18px 18px 20px; border-left: 1px solid var(--ktc-line); }
.ktc-dept:first-child { border-left: 0; }
.ktc-dept .wp-block-heading {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ktc-ink-3); margin: 0;
}
.ktc-dept p { margin: 0; }
.ktc-dept .ktc-tel { display: block; font-size: 17px; font-weight: 700; color: var(--ktc-ink); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ktc-dept .ktc-mail { display: block; font-size: 13px; margin-top: 4px; word-break: break-all; }

/* ---------- footer ---------- */
.ktc-foot { margin-top: 48px !important; border-top: 1px solid var(--ktc-line); background: var(--ktc-card); }
.ktc-foot__in { padding: 20px 0 26px; font-size: 12.5px; color: var(--ktc-ink-3); gap: 12px 24px; }
.ktc-foot__in p { margin: 0; }
.ktc-foot__in strong { color: var(--ktc-ink-2); font-weight: 650; }
.ktc-foot__links { display: flex; gap: 16px; }
.ktc-foot__links a { color: var(--ktc-ink-2); font-weight: 600; }
.ktc-foot__hours { font-variant-numeric: tabular-nums; }

/* ---------- inner pages ---------- */
.ktc-page { max-width: 760px; margin: 24px auto 0; padding: clamp(22px, 2.6vw, 32px); }
.ktc-page .wp-block-post-title { margin: 0 0 6px; font-size: 1.75rem; }
.ktc-page .wp-block-post-date { font-size: 12.5px; font-weight: 600; color: var(--ktc-ink-3); margin: 0 0 18px; }
.ktc-page .wp-block-post-content > * { max-width: 66ch; }
.ktc-page .wp-block-post-content p { color: var(--ktc-ink-2); }
.ktc-page .wp-block-post-content h2 { font-size: 1.25rem; margin-top: 1.6em; }
.ktc-page .wp-block-post-content h3 { font-size: 1.05rem; margin-top: 1.4em; }
.ktc-page .wp-block-post-content img { border-radius: var(--ktc-radius-sm); }
.ktc-page .wp-block-post-content .wp-block-gallery { gap: 10px; }
.ktc-page .wp-block-post-content .wp-block-file { padding: 12px 14px; border: 1px solid var(--ktc-line); border-radius: var(--ktc-radius-sm); background: var(--ktc-canvas); }
.ktc-page .wp-block-post-content .wp-block-file__button { background: var(--wp--preset--color--accent-button); border-radius: 9px; font-size: 13px; font-weight: 700; }
.ktc-page .wp-block-post-content a:not(.wp-block-file__button) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ktc-acc-2) 40%, transparent); }
.ktc-archive-title { margin: 24px 0 14px; }
.ktc-archive-title .wp-block-query-title { font-size: 1.5rem; margin: 2px 0 0; }
.ktc-pagination { margin-top: 16px; font-size: 13.5px; font-weight: 640; }
.ktc-pagination .wp-block-query-pagination-numbers .page-numbers { padding: 6px 10px; border-radius: 9px; }
.ktc-pagination .wp-block-query-pagination-numbers .page-numbers.current { background: var(--ktc-surface); color: var(--ktc-ink); }
.ktc-404 { text-align: center; padding: 64px 20px; }
.ktc-404 .wp-block-search__button { background: var(--wp--preset--color--accent-button); color: #fff; border: 0; border-radius: 9px; font-weight: 700; }
.ktc-404 .wp-block-search__input { border: 1px solid var(--ktc-line); border-radius: 9px; padding: 8px 12px; font: inherit; }

/* ---------- Events Calendar inside the theme ---------- */
.tribe-common .tribe-common-c-btn, .tribe-events .tribe-events-c-ical__link { border-radius: 9px; }
.tribe-events .tribe-events-l-container { padding-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ktc-services, .ktc-contacts { grid-template-columns: 1fr 1fr; }
  .ktc-svc:nth-child(3), .ktc-dept:nth-child(3) { border-left: 0; }
  .ktc-svc:nth-child(n+3), .ktc-dept:nth-child(n+3) { border-top: 1px solid var(--ktc-line); }
  .ktc-split, .ktc-fleet { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ktc-notice { grid-template-columns: 1fr; gap: 4px; }
  .ktc-services, .ktc-contacts { grid-template-columns: 1fr; }
  .ktc-svc, .ktc-dept { border-left: 0; }
  .ktc-svc:nth-child(n+2), .ktc-dept:nth-child(n+2) { border-top: 1px solid var(--ktc-line); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- single vessel (TEC single-event block) ---------- */
.ktc-event { padding-top: 24px; }
.ktc-event__eyebrow { margin-bottom: 6px; }
.single-tribe_events .tribe-common { --tec-color-accent-primary: var(--wp--preset--color--accent-button); --tec-color-accent-primary-hover: #b04a0e; --tec-color-accent-primary-active: #b04a0e; --tec-color-link-primary: var(--ktc-acc-2); --tec-font-family-sans-serif: var(--wp--preset--font-family--sans); }
.single-tribe_events .tribe-events-single { background: var(--ktc-card); border: 1px solid var(--ktc-line); border-radius: var(--ktc-radius); box-shadow: var(--ktc-shadow-sm); padding: clamp(22px, 2.6vw, 32px); }
.single-tribe_events .tribe-events-single-event-title { font-size: 1.75rem; margin: 0 0 6px; }
.single-tribe_events .tribe-events-schedule h2 { font-size: 15px; font-weight: 600; color: var(--ktc-ink-2); }
.single-tribe_events .tribe-events-back, .single-tribe_events .tribe-events-nav-pagination { font-size: 13.5px; font-weight: 640; }
.single-tribe_events .tribe-events-cal-links a { border-radius: 9px; }
/* TEC's legacy view factory prints a stray "no results" notice on single events under block themes. */
.single-tribe_events .tribe-events-notices { display: none; }

/* ---------- page-to-page transitions ----------
   Cross-document view transitions: the browser cross-fades between pages while the sticky
   header stays put, so tab-to-tab feels like one app. Pages are also prerendered on hover
   (see functions.php), so the swap is instant. Browsers without support just navigate. */
@view-transition { navigation: auto; }
.ktc-rail { view-transition-name: ktc-rail; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- wide section pages (Services, About) ---------- */
.ktc-wide { padding-bottom: 8px; }
.ktc-wide .ktc-section:first-child { padding-top: 28px; }
.ktc-wide .ktc-intro { max-width: 62ch; font-size: 16px; color: var(--ktc-ink-2); margin: 8px 0 0; }
.ktc-wide .ktc-svc p { font-size: 13.5px; }
.ktc-wide .ktc-fleet--4 { grid-template-columns: 1fr 1fr; }
.ktc-wide .ktc-statement { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ktc-wide .ktc-statement > .ktc-card { padding: clamp(22px, 2.6vw, 32px); }
.ktc-wide .ktc-statement .wp-block-heading { margin: 4px 0 10px; font-size: 1.25rem; }
.ktc-wide .ktc-statement p { color: var(--ktc-ink-2); margin: 0; font-size: 15px; line-height: 1.6; }
.ktc-wide .ktc-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.ktc-wide .ktc-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; }
.ktc-wide .ktc-cta p { margin: 0; color: var(--ktc-ink-2); font-size: 14px; }
.ktc-wide .ktc-cta .wp-block-buttons { margin-left: auto; }
@media (max-width: 720px) {
  .ktc-wide .ktc-statement { grid-template-columns: 1fr; }
}
/* wide pages: keep intros left-aligned, cards level, single column on phones */
.ktc-wide .ktc-intro { margin-left: 0 !important; margin-right: 0 !important; }
.ktc-wide .ktc-statement > * { margin-block-start: 0; }
.ktc-wide .ktc-statement { align-items: stretch; }
@media (max-width: 720px) {
  .ktc-wide .ktc-fleet--4 { grid-template-columns: 1fr; }
}
/* About: vision statement + numbered mission commitments */
.ktc-wide .ktc-vision { padding: clamp(24px, 3vw, 40px); }
.ktc-wide .ktc-vision__text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 560; line-height: 1.4; letter-spacing: -.01em; color: var(--ktc-ink); margin: 10px 0 0; max-width: 34em; }
.ktc-wide .ktc-mission { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; }
.ktc-wide .ktc-mission > * { margin: 0; }
.ktc-wide .ktc-mission__item { padding: 22px 20px 24px; border-left: 1px solid var(--ktc-line); }
.ktc-wide .ktc-mission__item:first-child { border-left: 0; }
.ktc-wide .ktc-mission__n { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ktc-acc-2); font-variant-numeric: tabular-nums; }
.ktc-wide .ktc-mission__n::before { content: "0"; }
.ktc-wide .ktc-mission__item .wp-block-heading { font-size: 15px; margin: 8px 0 0; }
.ktc-wide .ktc-mission__item p:not(.ktc-mission__n) { font-size: 13.5px; color: var(--ktc-ink-2); margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 1000px) {
  .ktc-wide .ktc-mission { grid-template-columns: repeat(2, 1fr); }
  .ktc-wide .ktc-mission__item:nth-child(3) { border-left: 0; }
  .ktc-wide .ktc-mission__item:nth-child(n+3) { border-top: 1px solid var(--ktc-line); }
  .ktc-wide .ktc-mission__item:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 640px) {
  .ktc-wide .ktc-mission { grid-template-columns: 1fr; }
  .ktc-wide .ktc-mission__item { border-left: 0; }
  .ktc-wide .ktc-mission__item:nth-child(n+2) { border-top: 1px solid var(--ktc-line); }
}

/* ---------- 0.2.0: status strip ---------- */
.ktc-status-wrap { padding-top: 22px; }
.ktc-status { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin: 0; }
.ktc-status__cell { padding: 14px 18px; border-left: 1px solid var(--ktc-line); display: grid; gap: 2px; }
.ktc-status__cell:first-child { border-left: 0; }
.ktc-status__k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ktc-ink-3); display: flex; align-items: center; gap: 7px; }
.ktc-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ktc-ink-3); box-shadow: 0 0 0 3px rgb(118 122 134 / .18); }
.is-open .ktc-status__dot { background: hsl(150 52% 34%); box-shadow: 0 0 0 3px hsl(150 52% 34% / .2); }
.is-closed .ktc-status__dot { background: hsl(0 68% 48%); box-shadow: 0 0 0 3px hsl(0 68% 48% / .18); }
.ktc-status__dot.is-wait { background: hsl(32 88% 45%); box-shadow: 0 0 0 3px hsl(32 88% 45% / .2); }
.ktc-status__v { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ktc-status__s { font-size: 12.5px; color: var(--ktc-ink-2); font-variant-numeric: tabular-nums; }
.ktc-status--inline { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ktc-line); }

/* ---------- 0.2.0: memo card + notice rows ---------- */
.ktc-section__head--flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ktc-section__head--flex > div > * { margin: 0; }
.ktc-notices .ktc-notice { display: grid; text-decoration: none; color: var(--ktc-ink); position: static; }
.ktc-notice--row { grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--ktc-line); }
.ktc-notice--row:hover { background: var(--ktc-surface); }
.ktc-notices .ktc-notice__t a::after { content: none; }
.ktc-memo { grid-template-columns: 132px 1fr; }
.ktc-memo__thumb { display: block; background: var(--ktc-surface); border-right: 1px solid var(--ktc-line); padding: 12px; }
.ktc-memo__thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--ktc-line); border-radius: 4px; box-shadow: var(--ktc-shadow-sm); background: #fff; }
.ktc-memo__thumb--blank { min-height: 120px; }
.ktc-memo__body { display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; }
.ktc-memo__tags { display: flex; align-items: center; gap: 10px; }
.ktc-tag { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ktc-surface); color: var(--ktc-ink-2); }
.ktc-tag--acc { background: rgb(var(--ktc-acc-rgb) / .14); color: var(--ktc-acc-2); }
.ktc-memo__date { font-size: 12.5px; font-weight: 600; color: var(--ktc-ink-3); }
.ktc-memo__t { font-size: 15.5px; font-weight: 680; line-height: 1.3; }
.ktc-memo__sum { font-size: 13.5px; color: var(--ktc-ink-2); line-height: 1.5; }
.ktc-memo__meta { font-size: 12.5px; font-weight: 650; color: var(--ktc-acc-2); margin-top: 2px; }
.ktc-memo:hover .ktc-memo__meta { text-decoration: underline; }
.ktc-vessel__voy { font-weight: 600; color: var(--ktc-ink-3); font-size: 12.5px; margin-left: 4px; }

/* ---------- 0.2.0: notice modal ---------- */
.ktc-modal { border: 1px solid var(--ktc-line); border-radius: 18px; padding: 0; width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--ktc-card); color: var(--ktc-ink); box-shadow: var(--ktc-shadow-lg); }
.ktc-modal::backdrop { background: rgba(12,15,22,.55); backdrop-filter: blur(2px); }
.ktc-modal__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ktc-line); position: sticky; top: 0; background: var(--ktc-card); z-index: 1; }
.ktc-modal__close { border: 1px solid var(--ktc-line); background: var(--ktc-card); width: 34px; height: 34px; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ktc-ink); }
.ktc-modal__close:hover { border-color: var(--ktc-ink-3); }
.ktc-modal__body { padding: 18px 22px 26px; overflow: auto; max-height: calc(100vh - 120px); }
.ktc-modal__title { font-size: 1.4rem; margin: 0 0 12px; }
.ktc-modal__body .ktc-page { margin: 0; padding: 0; border: 0; box-shadow: none; max-width: none; }
.ktc-modal__loading { color: var(--ktc-ink-3); padding: 24px 0; }
html.ktc-modal-open { overflow: hidden; }
html.ktc-loading .ktc-rail { opacity: .92; }

/* ---------- 0.2.0: steps ---------- */
.ktc-steps-card { margin-top: 14px; }
.ktc-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.ktc-step { padding: 20px 20px 22px; border-left: 1px solid var(--ktc-line); }
.ktc-step:first-child { border-left: 0; }
.ktc-step__n { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ktc-acc-2); font-variant-numeric: tabular-nums; }
.ktc-step h3 { font-size: 15.5px; font-weight: 680; margin: 8px 0 0; }
.ktc-step p { font-size: 13px; color: var(--ktc-ink-2); margin: 6px 0 0; line-height: 1.5; }
.ktc-step a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 640; }
.ktc-soon { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 640; color: var(--ktc-ink-3); }
.ktc-soon--pill { margin: 0; padding: 7px 12px; border: 1px dashed var(--ktc-line); border-radius: 9px; white-space: nowrap; }
.ktc-steps__foot { border-top: 1px solid var(--ktc-line); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ktc-ink-2); }

/* ---------- 0.2.0: photo strip ---------- */
.ktc-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ktc-strip__item { flex: 0 0 340px; margin: 0; scroll-snap-align: start; }
.ktc-strip__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 14px; border: 1px solid var(--ktc-line); }
.ktc-strip__item figcaption { font-size: 12.5px; color: var(--ktc-ink-2); margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; }
.ktc-strip__item figcaption small { color: var(--ktc-ink-3); white-space: nowrap; }

/* ---------- 0.2.0: getting here + calling ---------- */
.ktc-here { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: stretch; }
.ktc-loc { display: grid; grid-template-columns: 1fr 1fr; }
.ktc-loc__map { position: relative; display: block; min-height: 280px; background-size: cover; background-position: center; border-right: 1px solid var(--ktc-line); }
.ktc-loc__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,15,22,0) 55%, rgba(12,15,22,.35)); }
.ktc-loc__pin { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; background: var(--ktc-acc); transform: rotate(-45deg); box-shadow: 0 10px 24px -6px rgb(var(--ktc-acc-rgb) / .7), 0 0 0 4px rgba(255,255,255,.6); z-index: 1; }
.ktc-loc__pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.ktc-loc__km { position: absolute; left: 50%; top: 46%; transform: translate(14px, 4px); background: var(--ktc-card); border: 1px solid var(--ktc-line); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; box-shadow: var(--ktc-shadow-md); white-space: nowrap; z-index: 1; color: var(--ktc-ink); }
.ktc-loc__body { padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.ktc-loc__body > * { margin: 0; }
.ktc-loc__addr { font-size: 16px; font-weight: 660; line-height: 1.35; }
.ktc-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 0; }
.ktc-kv dt { font-weight: 650; } .ktc-kv dd { margin: 0; color: var(--ktc-ink-2); }
.ktc-loc__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.ktc-btn-ghost-link { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--ktc-line); background: var(--ktc-card); color: var(--ktc-ink); font-size: 13.5px; font-weight: 700; }
.ktc-btn-ghost-link:hover { border-color: var(--ktc-ink-3); text-decoration: none; }
.ktc-calling { padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.ktc-calling > * { margin: 0; }
.ktc-calling h2 { font-size: 1.25rem; }
.ktc-calling__p { font-size: 13.5px; color: var(--ktc-ink-2); line-height: 1.55; }
.ktc-calling__contact { display: grid; gap: 2px; margin-top: 4px; }
.ktc-calling__tel { font-size: 20px; font-weight: 720; letter-spacing: -.01em; color: var(--ktc-ink); font-variant-numeric: tabular-nums; }
.ktc-calling__mail { font-size: 13.5px; }
.ktc-calling__fine { font-size: 11.5px; color: var(--ktc-ink-3); }

@media (max-width: 900px) {
  .ktc-status { grid-template-columns: 1fr 1fr; }
  .ktc-status__cell--wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ktc-line); }
  .ktc-steps { grid-template-columns: 1fr 1fr; }
  .ktc-step:nth-child(3) { border-left: 0; }
  .ktc-step:nth-child(n+3) { border-top: 1px solid var(--ktc-line); }
  .ktc-here { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ktc-status { grid-template-columns: 1fr; }
  .ktc-status__cell { border-left: 0; }
  .ktc-status__cell + .ktc-status__cell { border-top: 1px solid var(--ktc-line); }
  .ktc-steps { grid-template-columns: 1fr; }
  .ktc-step { border-left: 0; }
  .ktc-step:nth-child(n+2) { border-top: 1px solid var(--ktc-line); }
  .ktc-steps__foot { flex-direction: column; align-items: flex-start; }
  .ktc-memo { grid-template-columns: 96px 1fr; }
  .ktc-notice--row { grid-template-columns: 1fr; gap: 4px; }
  .ktc-loc { grid-template-columns: 1fr; }
  .ktc-loc__map { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--ktc-line); }
  .ktc-strip__item { flex-basis: 78vw; }
}
@media (max-width: 640px) {
  .ktc-section__head--flex, .ktc-section__head.is-layout-flex { flex-wrap: wrap; align-items: flex-start; }
  .ktc-section__more { white-space: normal; }
}
