/* Trellis website theme. Colours come through Trellis's variables so the owner's brand colour and the editable
   colours still apply: palette names as --tr-p-<name>, the current surface's roles as --s-<role> (they change inside
   every data-surface element). The hex after each comma is the designed colour, used only if a variable is missing.
   Fonts: --tr-font-display (Nunito) and --tr-font-body (Nunito Sans). */
:root {
    --ts-green: var(--tr-p-green, #034f47);
    --ts-darkest: var(--tr-p-darkest, #032f2b);
    --ts-ink: var(--tr-p-ink, #0d2b27);
    --ts-soft: var(--tr-p-soft, #f3f7f6);
    --ts-line: var(--tr-p-line, #dbe6e2);
    --ts-teal: var(--tr-p-teal, #02957c);
    --ts-mint: var(--tr-p-mint, #39b993);
    --ts-orange: var(--tr-p-orange, #fc9655);
    --ts-deep-orange: var(--tr-p-deep-orange, #e2763a);
    /* The signature gradient, started a shade lighter than the symbol's teal so dark text on it passes AA (4.9:1). */
    --ts-gradient: linear-gradient(135deg, #2aa88a 0%, var(--ts-mint) 55%, var(--ts-orange) 100%);
    --ts-radius: 16px;
    --ts-radius-s: 12px;
    --ts-shadow: 0 1px 2px rgb(3 47 43 / .06), 0 12px 32px -12px rgb(3 47 43 / .18);
    --ts-wrap: 72rem;
}

/* ───────────── base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ts-body { margin: 0; font-family: var(--tr-font-body); font-size: 1.0625rem; line-height: 1.65; background: var(--s-bg); color: var(--s-text); -webkit-font-smoothing: antialiased; }
.ts-body h1, .ts-body h2, .ts-body h3 { font-family: var(--tr-font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
.ts-body [data-surface="light"] :is(h1, h2, h3), .ts-body [data-surface="soft"] :is(h1, h2, h3), .ts-header :is(h1, h2, h3) { color: var(--ts-ink); }
.ts-body h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
.ts-body h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.ts-body h3 { font-size: 1.2rem; }
.ts-body p { margin: 0 0 1em; }
.ts-body a { color: var(--s-accent); text-underline-offset: .18em; }
.ts-body :focus-visible { outline: 3px solid var(--ts-teal); outline-offset: 3px; border-radius: 6px; }
[data-surface="deep"] :focus-visible { outline-color: var(--ts-orange); }
.ts-body img { max-width: 100%; height: auto; }
.ts-wrap { width: 100%; max-width: var(--ts-wrap); margin-inline: auto; }
.ts-main > .tr-section:not([data-surface]), .ts-main > .tr-row > .tr-section:not([data-surface]) { padding-inline: 1.25rem; }
.ts-skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--s-bg); color: var(--s-text); padding: .6rem 1rem; border-radius: 8px; }
.ts-skip:focus { left: 1rem; }

.ts-eyebrow { display: inline-block; font-family: var(--tr-font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--s-accent); margin-bottom: .75rem; }
.ts-eyebrow::before { content: ""; display: inline-block; width: 1.4rem; height: .4rem; border-radius: 99px; background: var(--ts-orange); margin-right: .55rem; vertical-align: .12em; }
.ts-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--s-text-muted); max-width: 38rem; }
.ts-note { font-size: .9rem; color: var(--s-text-muted); margin-top: 1rem; }
.ts-accent-text { font-style: normal; color: var(--s-accent); }

/* ───────────── buttons and links */
.ts-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.9rem; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--s-accent);
    background: var(--s-accent); color: var(--s-accent-contrast) !important; font-family: var(--tr-font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.ts-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgb(3 47 43 / .55); }
.ts-btn--outline { background: transparent; color: var(--s-accent) !important; }
.ts-btn--small { min-height: 2.4rem; padding: .45rem 1rem; font-size: .92rem; }
.ts-btn--on-gradient { background: var(--ts-darkest); border-color: var(--ts-darkest); color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .ts-btn { transition: none; } .ts-btn:hover { transform: none; } }
.ts-link { display: inline-flex; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--s-accent); }
.ts-link:hover { text-decoration: underline; }
.ts-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.ts-actions--centre { justify-content: center; }

/* ───────────── header */
.ts-header { position: relative; z-index: 20; background: rgb(255 255 255 / .92); border-bottom: 1px solid var(--ts-line); backdrop-filter: saturate(1.4) blur(10px); }
.ts-sticky .ts-header { position: sticky; top: 0; }
.ts-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: .85rem 1.25rem; }
.ts-brand { display: inline-flex; align-items: center; }
.ts-brand img { display: block; height: 2.6rem; width: auto; }
.ts-menu__state { position: absolute; opacity: 0; pointer-events: none; }
.ts-menu__toggle { display: none; }
.ts-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.6rem; }
.ts-nav a:not(.ts-btn) { color: var(--ts-ink); font-family: var(--tr-font-display); font-weight: 700; text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.ts-nav a:not(.ts-btn):hover, .ts-nav a[aria-current="page"] { border-bottom-color: var(--ts-mint); }
.ts-nav__cta { margin-left: .4rem; }
@media (max-width: 52rem) {
    .ts-brand img { height: 2.2rem; }
    .ts-menu__toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 2px solid var(--ts-line); border-radius: 999px; font-family: var(--tr-font-display); font-weight: 700; color: var(--ts-ink); cursor: pointer; }
    .ts-menu__icon, .ts-menu__icon::before, .ts-menu__icon::after { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
    .ts-menu__icon::before, .ts-menu__icon::after { content: ""; position: absolute; left: 0; }
    .ts-menu__icon::before { top: -6px; } .ts-menu__icon::after { top: 6px; }
    .ts-menu__state:focus-visible + .ts-menu__toggle { outline: 3px solid var(--ts-teal); outline-offset: 3px; }
    .ts-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
    .ts-menu__state:checked ~ .ts-nav { display: flex; }
    .ts-nav a:not(.ts-btn) { padding: .8rem .25rem; border-bottom: 1px solid var(--ts-line); }
    .ts-nav__cta { margin: 1rem 0 0; }
}

/* ───────────── sections */
.ts-heading { display: grid; gap: .5rem 3rem; margin-bottom: 2.5rem; }
.ts-heading h2 { margin-bottom: .25rem; }
.ts-heading__intro { color: var(--s-text-muted); max-width: 40rem; }
.ts-heading__intro p:last-child { margin-bottom: 0; }
@media (min-width: 60rem) { .ts-heading { grid-template-columns: 1fr 1fr; align-items: end; } .ts-heading > .ts-link { grid-column: 2; justify-self: start; } }
[data-surface="soft"].tr-section--full, [data-surface="deep"].tr-section--full { position: relative; }
.ts-lattice, [data-surface="soft"].tr-section--full {
    background-image: linear-gradient(45deg, rgb(3 79 71 / .035) 1px, transparent 1px), linear-gradient(-45deg, rgb(3 79 71 / .035) 1px, transparent 1px);
    background-size: 28px 28px;
}
.ts-empty { padding: 5rem 1.25rem; text-align: center; max-width: 44rem; }
.ts-empty .ts-actions { justify-content: center; }

/* ───────────── hero */
.ts-hero { display: grid; gap: 3rem; align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem); }
.ts-hero h1 { max-width: 15ch; }
.ts-hero--centred { text-align: center; justify-items: center; }
.ts-hero--centred h1 { max-width: 20ch; margin-inline: auto; }
.ts-hero--centred .ts-lead { margin-inline: auto; }
.ts-hero--centred .ts-actions { justify-content: center; }
.ts-hero__art img { border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); }
@media (min-width: 60rem) { .ts-hero:not(.ts-hero--centred) { grid-template-columns: 1.05fr 1fr; } }

/* ───────────── strip (logo placeholders) */
.ts-strip { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.ts-strip__label { margin: 0; font-size: .95rem; color: var(--s-text-muted); font-weight: 600; }
.ts-strip__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; }
.ts-strip__items li { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--tr-font-display); font-weight: 700; color: var(--s-text-muted); }
.ts-strip__logo { width: 1.6rem; height: 1.6rem; border-radius: 8px; border: 2px dashed var(--s-border); }
.ts-strip--pills .ts-strip__items li { padding: .45rem 1rem; border-radius: 999px; background: var(--s-bg-elevated); color: var(--s-text); }

/* ───────────── cards */
.ts-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ts-card { position: relative; padding: 1.75rem; border-radius: var(--ts-radius); background: var(--s-bg-elevated); border: 1px solid var(--ts-line); }
[data-surface="soft"] .ts-card { background: #fff; }
[data-surface="deep"] .ts-card { border-color: var(--s-border); }
.ts-card h3 { margin-top: .25rem; }
.ts-card p { color: var(--s-text-muted); }
.ts-card p:last-of-type { margin-bottom: .5rem; }
.ts-card__img { display: block; width: calc(100% + 3.5rem); max-width: none; margin: -1.75rem -1.75rem 1.25rem; border-radius: var(--ts-radius) var(--ts-radius) 0 0; aspect-ratio: 16 / 10; object-fit: cover; }
.ts-card__mark { display: block; width: 3rem; height: .75rem; border-radius: 99px; margin-bottom: 1.25rem; background: var(--ts-teal); }
.ts-card__mark--2, .ts-card__mark--5 { background: var(--ts-orange); }
.ts-card__mark--3, .ts-card__mark--6 { background: var(--ts-mint); }
.ts-cards--plain .ts-card { background: transparent; border: 0; padding: 0; }

/* ───────────── steps */
.ts-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: none; }
.ts-step { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--ts-radius); background: var(--s-bg-elevated); }
[data-surface="soft"] .ts-step { background: #fff; box-shadow: var(--ts-shadow); }
.ts-step__num { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--s-accent); color: var(--s-accent-contrast); font-family: var(--tr-font-display); font-weight: 800; font-size: 1.1rem; }
.ts-step h3 { margin: .35rem 0 .35rem; }
.ts-step p { color: var(--s-text-muted); margin-bottom: 0; }
.ts-steps--list { grid-template-columns: 1fr; max-width: 46rem; }

/* ───────────── split (text & image, feature groups, colour checker) */
.ts-split { display: grid; gap: 2.5rem; align-items: center; }
.ts-split__art { margin: 0; }
.ts-split__art img { border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); }
.ts-split__copy > p { color: var(--s-text-muted); }
@media (min-width: 60rem) {
    .ts-split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
    .ts-split--left .ts-split__art, .ts-split:not(.ts-split--right):not(.ts-split--left) .ts-split__art { order: -1; }
}
.ts-ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.ts-ticks li { position: relative; padding-left: 2rem; }
.ts-ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: var(--ts-mint); }
.ts-ticks li::after { content: ""; position: absolute; left: .42rem; top: .55em; width: .3rem; height: .55rem; border: solid var(--ts-darkest); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ts-feature + .ts-feature { margin-top: 0; }
.ts-rich > :last-child { margin-bottom: 0; }

/* ───────────── icon grid */
.ts-icons { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.ts-icon-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.1rem; border-radius: var(--ts-radius-s); background: var(--s-bg-elevated); border: 1px solid var(--ts-line); }
[data-surface="soft"] .ts-icon-tile { background: #fff; }
[data-surface="deep"] .ts-icon-tile { border-color: var(--s-border); }
.ts-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--ts-soft); color: var(--ts-green); }
[data-surface="soft"] .ts-icon { background: var(--ts-soft); }
[data-surface="deep"] .ts-icon { background: rgb(255 255 255 / .08); color: var(--ts-mint); }
.ts-icon-tile:nth-child(3n+2) .ts-icon { color: #b4511b; }
[data-surface="deep"] .ts-icon-tile:nth-child(3n+2) .ts-icon { color: var(--ts-orange); }
.ts-icon-tile__name { font-family: var(--tr-font-display); font-weight: 700; line-height: 1.25; }
.ts-icon-tile__text { font-size: .9rem; color: var(--s-text-muted); line-height: 1.45; }

/* ───────────── call to action */
.ts-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; background: var(--s-bg-elevated); }
.ts-cta h2 { margin-bottom: .35rem; max-width: 22ch; }
.ts-cta p { margin: 0; max-width: 40rem; }
.ts-cta--gradient { background: var(--ts-gradient); color: var(--ts-darkest); }
.ts-cta--gradient h2, .ts-cta--gradient .ts-eyebrow { color: var(--ts-darkest) !important; }
.ts-cta--gradient .ts-eyebrow::before { background: var(--ts-darkest); }

/* ───────────── prose and code */
.ts-prose { max-width: 44rem; }
.ts-prose--wide { max-width: none; }
.ts-prose h2 { margin-top: .5rem; }
.ts-prose h3 { margin-top: 1.75rem; }
.ts-prose :is(ul, ol) { padding-left: 1.25rem; }
.ts-prose li { margin-bottom: .35rem; }
.ts-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--s-bg-elevated); padding: .1em .35em; border-radius: 6px; }
.ts-body pre code { background: none; padding: 0; }
.ts-code-block { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .ts-code-block { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.ts-code-block__copy > p { color: var(--s-text-muted); }
.ts-code { margin: 0; border-radius: var(--ts-radius); overflow: hidden; background: var(--ts-darkest); color: #e7f3ef; box-shadow: var(--ts-shadow); }
.ts-code figcaption { padding: .7rem 1.1rem; font-size: .85rem; font-weight: 700; color: #c9ddd7; background: rgb(255 255 255 / .06); border-bottom: 1px solid rgb(255 255 255 / .08); }
.ts-code pre { margin: 0; padding: 1.25rem 1.1rem; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.ts-code code { color: inherit; }

/* ───────────── FAQ */
.ts-faq { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .ts-faq { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.ts-faq__list details { border-bottom: 1px solid var(--ts-line); padding: 1rem 0; }
.ts-faq__list summary { cursor: pointer; font-family: var(--tr-font-display); font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ts-faq__list summary::-webkit-details-marker { display: none; }
.ts-faq__list summary::after { content: "+"; color: var(--s-accent); font-size: 1.4rem; line-height: 1; }
.ts-faq__list details[open] summary::after { content: "–"; }
.ts-faq__list details p { margin: .75rem 0 0; color: var(--s-text-muted); }

/* ───────────── form */
.ts-form-panel { display: grid; gap: 2rem 4rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; background: var(--s-bg-elevated); border: 1px solid var(--ts-line); }
[data-surface="soft"] .ts-form-panel { background: #fff; box-shadow: var(--ts-shadow); }
@media (min-width: 60rem) { .ts-form-panel:not(.ts-form-panel--sent) { grid-template-columns: .8fr 1.2fr; } }
.ts-form-copy > p { color: var(--s-text-muted); }
.ts-form { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .ts-form { grid-template-columns: 1fr 1fr; } .ts-field--wide, .ts-form__problem, .ts-form__foot, .ts-check { grid-column: 1 / -1; } }
.ts-field { display: grid; gap: .35rem; }
.ts-field label { font-weight: 700; font-size: .95rem; }
.ts-field small { font-weight: 400; color: var(--s-text-muted); }
.ts-field :is(input, select, textarea) { width: 100%; font: inherit; color: var(--s-text); background: #fff; border: 1.5px solid var(--s-border); border-radius: var(--ts-radius-s); padding: .7rem .9rem; }
.ts-field textarea { resize: vertical; min-height: 8rem; }
.ts-field :is(input, select, textarea):focus { outline: 3px solid rgb(2 149 124 / .35); outline-offset: 0; border-color: var(--ts-teal); }
.ts-field__help { font-size: .85rem; color: var(--s-text-muted); }
.ts-check { display: flex; gap: .6rem; align-items: flex-start; }
.ts-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-form__problem { margin: 0; padding: .8rem 1rem; border-radius: var(--ts-radius-s); background: #fdece3; color: #7a2e08; font-weight: 600; }
.ts-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.ts-form__foot .ts-note { margin: 0; }
.ts-form-panel--sent { text-align: center; justify-items: center; }

/* ───────────── theme gallery */
.ts-gallery { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.ts-theme-card { border-radius: var(--ts-radius); overflow: hidden; background: #fff; border: 1px solid var(--ts-line); box-shadow: var(--ts-shadow); display: flex; flex-direction: column; }
.ts-theme-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.ts-theme-card__body p { color: var(--s-text-muted); flex: 1; }
.mk-theme { --bg: #fff; --text: #1c2430; --accent: #034f47; --band: #032f2b; --band-text: #fff; --font: var(--tr-font-display);
    display: grid; gap: .55rem; align-content: start; padding: 1.1rem 1.2rem 0; height: 12rem; background: var(--bg); border-bottom: 1px solid var(--ts-line); }
.mk-theme__nav { display: flex; gap: .4rem; justify-content: flex-end; }
.mk-theme__nav i { width: 1.4rem; height: .35rem; border-radius: 3px; background: var(--text); opacity: .35; }
.mk-theme__h { height: .9rem; width: 70%; border-radius: 4px; background: var(--text); margin-top: .35rem; }
.mk-theme__h--short { width: 45%; margin-top: 0; }
.mk-theme__btn { width: 5rem; height: 1.3rem; border-radius: 999px; background: var(--accent); margin-top: .25rem; }
.mk-theme__band { display: flex; gap: .5rem; margin: .5rem -1.2rem 0; padding: .9rem 1.2rem; background: var(--band); }
.mk-theme__band i { flex: 1; height: 2.2rem; border-radius: 6px; background: var(--band-text); opacity: .16; }
.mk-theme--harbor { --bg: #fbfaf7; --text: #1c2430; --accent: #0f5f76; --band: #0d1b24; --band-text: #eef4f7; }
.mk-theme--hearth { --bg: #faf6ee; --text: #251f18; --accent: #a03e12; --band: #2b2118; --band-text: #f6efe3; }
.mk-theme--dark-hero { --bg: #f5f0e6; --text: #1a1d29; --accent: #856300; --band: #11131c; --band-text: #f5f0e6; }
.mk-theme--honored-service { --bg: #141d2e; --text: #f0ead6; --accent: #c9a961; --band: #0c1220; --band-text: #f0ead6; }
.mk-theme--tactical-operator { --bg: #141414; --text: #f5f5f5; --accent: #ef4560; --band: #050505; --band-text: #f5f5f5; }
.mk-theme--own { --bg: #fff; --text: #0d2b27; --accent: var(--ts-green); --band: var(--ts-gradient); --band-text: #032f2b; }

/* ───────────── drawn product mockups (decorative; each has a text alternative or is aria-hidden) */
.mk-product { position: relative; padding: 0 0 2.5rem; }
.mk-laptop { width: 84%; margin-left: 8%; }
.mk-screen { border: 10px solid #1f3a35; border-bottom-width: 14px; border-radius: 16px 16px 6px 6px; background: #fff; aspect-ratio: 16 / 10.5; overflow: hidden; }
.mk-laptop__base { height: 12px; margin: 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#c8d6d2, #9fb3ae); }
.mk-site { display: grid; gap: .8rem; padding: .9rem 1.1rem; height: 100%; background: linear-gradient(180deg, var(--ts-soft) 0 58%, #fff 58%); }
.mk-site__nav { display: flex; align-items: center; gap: .55rem; }
.mk-site__nav .mk-pill { margin-left: auto; }
.mk-site__hero { display: grid; gap: .45rem; justify-items: start; padding: .5rem 0; }
.mk-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mk-site__cards span { height: 3.6rem; border-radius: 10px; background: #fff; border: 1px solid var(--ts-line); box-shadow: 0 6px 14px -10px rgb(3 47 43 / .4); }
.mk-site__cards span:nth-child(2) { border-top: 4px solid var(--ts-orange); }
.mk-site__cards span:nth-child(1) { border-top: 4px solid var(--ts-teal); }
.mk-site__cards span:nth-child(3) { border-top: 4px solid var(--ts-mint); }
.mk-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 99px; background: var(--ts-mint); }
.mk-dot--logo { width: 1.3rem; height: 1.3rem; border-radius: 6px; background: var(--ts-gradient); }
.mk-dot--teal { background: var(--ts-teal); }
.mk-bar { display: block; height: .45rem; border-radius: 99px; background: #c9d8d4; }
.mk-bar--s { width: 2.2rem; }
.mk-bar--m { width: 62%; }
.mk-bar--h { width: 78%; height: .8rem; background: var(--ts-ink); }
.mk-bar--short { width: 52%; }
.mk-pill { display: inline-block; width: 3.6rem; height: 1.2rem; border-radius: 99px; border: 2px solid var(--ts-green); }
.mk-pill--accent { background: var(--ts-green); }
.mk-pill--ghost { border-color: #9fb3ae; }
.mk-editor { position: absolute; right: 0; top: 12%; width: 46%; min-width: 13rem; padding: 1rem; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -18px rgb(3 47 43 / .45), 0 0 0 1px var(--ts-line); font-size: .78rem; color: var(--ts-ink); display: grid; gap: .7rem; }
.mk-editor__title { display: flex; align-items: center; gap: .45rem; font-family: var(--tr-font-display); font-weight: 800; font-size: .85rem; }
.mk-field { display: grid; gap: .25rem; }
.mk-label { font-weight: 700; color: #556a65; font-size: .72rem; }
.mk-input { display: block; padding: .4rem .55rem; border: 1.5px solid var(--ts-line); border-radius: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-swatches { display: flex; gap: .35rem; }
.mk-sw { display: block; width: 1.4rem; height: 1.4rem; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px #9fb3ae; }
.mk-sw.is-on { box-shadow: 0 0 0 2px var(--ts-teal); }
.mk-sw--white { background: #fff; } .mk-sw--soft { background: var(--ts-soft); } .mk-sw--deep { background: var(--ts-darkest); }
.mk-sw--teal { background: var(--ts-teal); } .mk-sw--orange { background: var(--ts-orange); }
.mk-badge { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem .2rem .45rem; border-radius: 99px; background: #e3f5ee; color: #035e45; font-weight: 800; font-size: .75rem; }
.mk-badge::before { content: "✓"; display: grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 99px; background: var(--ts-mint); color: var(--ts-darkest); font-size: .65rem; }
.mk-editor__actions { display: flex; gap: .5rem; justify-content: flex-end; }
.mk-editor__actions .mk-pill { width: auto; height: auto; padding: .3rem .8rem; font-weight: 800; font-size: .72rem; line-height: 1.2; color: var(--ts-green); }
.mk-editor__actions .mk-pill--accent { color: #fff; }
.mk-phone { position: absolute; left: 0; bottom: 0; width: 22%; min-width: 6.5rem; aspect-ratio: 9 / 18; padding: 6px; border-radius: 22px; background: #1f3a35; box-shadow: 0 20px 40px -18px rgb(3 47 43 / .55); }
.mk-phone__screen { display: grid; align-content: start; gap: .45rem; height: 100%; padding: .8rem .6rem; border-radius: 17px; background: #fff; }
.mk-phone__screen .mk-pill { width: 2.8rem; height: 1rem; }
.mk-card { display: block; height: 3.2rem; margin-top: .4rem; border-radius: 10px; background: var(--ts-soft); border-top: 4px solid var(--ts-orange); }
@media (max-width: 40rem) { .mk-laptop__base { margin: 0; } .mk-editor { position: relative; top: auto; width: auto; margin: -2rem 0 0 18%; } .mk-phone { display: none; } .mk-laptop { width: 100%; margin-left: 0; } .mk-product { padding-bottom: 0; } }

/* colour checker */
.mk-checker { display: grid; gap: .9rem; padding: 1.5rem; border-radius: 20px; background: #fff; box-shadow: var(--ts-shadow), 0 0 0 1px var(--ts-line); color: var(--ts-ink); max-width: 30rem; }
.mk-checker__title { display: flex; align-items: center; gap: .5rem; font-family: var(--tr-font-display); font-weight: 800; }
.mk-checker__row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "chip hex tag" "chip ratio tag"; align-items: center; gap: 0 .9rem; padding: .8rem; border-radius: 14px; border: 1.5px solid var(--ts-line); }
.mk-checker__row--pass { border-color: var(--ts-mint); background: #f3fbf8; }
.mk-chip { grid-area: chip; width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.mk-chip--pale { background: #fc9655; } .mk-chip--strong { background: #b4511b; }
.mk-checker__hex { grid-area: hex; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mk-checker__ratio { grid-area: ratio; font-size: .85rem; color: #556a65; }
.mk-checker__row .mk-tag, .mk-checker__row .mk-badge { grid-area: tag; }
.mk-tag { display: inline-block; padding: .15rem .6rem; border-radius: 99px; background: #e9efed; color: #2f4540; font-weight: 700; font-size: .72rem; white-space: nowrap; }
.mk-tag--fail { background: #fdece3; color: #8a3410; }
.mk-tag--new { background: #fff1e7; color: #8a3410; }
.mk-checker__arrow { text-align: center; font-size: .8rem; font-weight: 700; color: #556a65; }
.mk-checker__arrow::before { content: "↓ "; color: var(--ts-teal); }
.mk-checker__sample { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: .4rem; border-top: 1px dashed var(--ts-line); }
.mk-checker__btn { padding: .5rem 1rem; border-radius: 99px; background: #b4511b; color: #fff; font-weight: 800; font-size: .85rem; }
.mk-checker__text { font-size: .85rem; color: #556a65; flex: 1; min-width: 10rem; }

/* editor panels (Features page) */
.mk-panel { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--ts-shadow), 0 0 0 1px var(--ts-line); color: var(--ts-ink); font-size: .8rem; }
.mk-panel__chrome { display: flex; align-items: center; gap: .35rem; padding: .6rem .9rem; background: var(--ts-soft); border-bottom: 1px solid var(--ts-line); }
.mk-panel__chrome i { width: .6rem; height: .6rem; border-radius: 99px; background: #c9d8d4; }
.mk-panel__chrome span { margin-left: .5rem; font-weight: 700; color: #556a65; }
.mk-panel__body { display: grid; grid-template-columns: 3.2rem 1fr; min-height: 15rem; }
.mk-panel__side { display: grid; align-content: start; gap: .7rem; padding: 1rem .9rem; background: var(--ts-darkest); }
.mk-panel__side span { height: 1.4rem; border-radius: 6px; background: rgb(255 255 255 / .14); }
.mk-panel__side span.is-on { background: var(--ts-mint); }
.mk-panel__main { display: grid; align-content: start; gap: .7rem; padding: 1.1rem; }
.mk-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.mk-row .mk-label { min-width: 6rem; }
.mk-row .mk-input { flex: 1; min-width: 8rem; }
.mk-row--head .mk-input { font-family: var(--tr-font-display); font-weight: 800; border: 0; padding-left: 0; font-size: .95rem; }
.mk-preview { display: grid; gap: .4rem; justify-items: start; padding: 1rem; border-radius: 12px; background: var(--ts-soft); }
.mk-block { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1.5px solid var(--ts-line); border-radius: 10px; font-weight: 700; }
.mk-block.is-on { border-color: var(--ts-teal); box-shadow: 0 0 0 3px rgb(2 149 124 / .15); }
.mk-block--add { justify-content: center; border-style: dashed; color: #556a65; }
.mk-handle { width: .8rem; height: .9rem; background: radial-gradient(circle, #9fb3ae 1.5px, transparent 1.6px) 0 0 / .4rem .3rem; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mk-thumb { aspect-ratio: 4 / 3; border-radius: 10px; }
.mk-thumb--a { background: linear-gradient(135deg, #cfe9e0, #8fd1b9); }
.mk-thumb--b { background: linear-gradient(135deg, #fde3d1, #fcb48a); }
.mk-thumb--c { background: linear-gradient(135deg, #d6e1de, #9fb3ae); }
.mk-msg, .mk-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; border: 1.5px solid var(--ts-line); }
.mk-msg.is-on { border-color: var(--ts-orange); background: #fffaf6; }
.mk-msg b, .mk-person b { width: 1.8rem; height: 1.8rem; border-radius: 99px; background: linear-gradient(135deg, var(--ts-mint), var(--ts-teal)); }
.mk-person:nth-child(2) b { background: linear-gradient(135deg, #fcb48a, var(--ts-orange)); }
.mk-tree { display: grid; gap: .35rem; padding: 1rem; border-radius: 12px; background: var(--ts-darkest); color: #e7f3ef; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.mk-tree__in { padding-left: 1.2rem; color: #c9ddd7; }
.mk-tree__in::before { content: "├ "; color: var(--ts-mint); }

/* ───────────── footer */
.ts-footer { background: var(--s-bg); color: var(--s-text); padding: 3.5rem 1.25rem 2rem; margin-top: 0; }
.ts-footer__grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 52rem) { .ts-footer__grid { grid-template-columns: 1.2fr 2fr; } }
.ts-footer .ts-footer__brand a { display: inline-flex; align-items: center; gap: .7rem; color: var(--s-text); text-decoration: none; }
.ts-footer__brand img { width: 2.75rem; height: auto; }
.ts-footer__word { font-family: var(--tr-font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.01em; }
.ts-footer__brand p { color: var(--s-text-muted); margin-top: 1rem; max-width: 22rem; }
.ts-footer__links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .75rem 2rem; }
.ts-footer .ts-footer__links a { color: var(--s-text); text-decoration: none; font-weight: 600; }
.ts-footer .ts-footer__links a:hover { color: var(--s-accent); text-decoration: underline; }
.ts-footer__cms { margin-top: 2rem; }
.ts-footer__credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--s-border); font-size: .9rem; color: var(--s-text-muted); }
.ts-footer__credit::before { content: ""; flex-basis: 100%; height: 4px; margin: -1.5rem 0 1.25rem; border-radius: 99px; background: var(--ts-gradient); opacity: .9; order: -1; display: none; }
.ts-announcement { padding: .6rem 1.25rem; text-align: center; font-weight: 600; }
