/* ============================================================
   Kyyte Help Portal — front-end styles
   Layout, homepage grid, single-article, callout, TOC.
   Header + Footer live in their own template parts.
============================================================ */

:root{
    --kyyte-navy:        #0209a8;
    --kyyte-navy-deep:   #01044f;
    --kyyte-gray-bg:     #f5f5f5;
    --kyyte-line:        #e2e2e2;
    --kyyte-text:        #1a1a1a;
    --kyyte-muted:       #6b6b6b;
    --kyyte-link:        #0209a8;

    --kyyte-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                  "Helvetica Neue", Arial, sans-serif;

    --kyyte-container-w:   90%;
    --kyyte-container-max: 1600px;
}

.kyyte-container{
    width: var(--kyyte-container-w);
    max-width: var(--kyyte-container-max);
    margin: 0 auto;
}

/* ============================================================
   FRONT PAGE
============================================================ */
.kyyte-front__hero{
    background-color: #0209a8 !important;
    background-image: url('https://ummdigital.tech/kyytehelp/wp-content/uploads/2026/07/bginner.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
}
.kyyte-front__hero h1{ font-size: 40px; font-weight: 500; margin: 0 0 32px; }
.kyyte-front__search{
    max-width: 720px;
    margin: 0 auto 16px;
    display: flex;
    background: transparent;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    padding: 5px 6px 5px 28px;
    height: 62px;
    align-items: center;
}
.kyyte-front__search input{
    flex: 1; background: transparent; border: 0; outline: 0;
    color: #fff; font: inherit; font-size: 15px;
}
.kyyte-front__search input::placeholder{ color: rgba(255,255,255,.75); }
.kyyte-front__search button{
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border: 0; border-radius: 0;
    background: transparent; cursor: pointer;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none;
}
.kyyte-front__search button img{ width: 52px; height: 52px; display: block; }
.kyyte-front__lead{ font-size: 18px; opacity: .9; margin: 0; }

.kyyte-front__ribbon{
    background: #000539;
    color: #fff;
    padding: 16px 0;
}
.kyyte-front__filters{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.kyyte-front__filters select{
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px; padding: 8px 14px; margin: 0; font-size: 13px;
    min-width: 130px;
}
.kyyte-front__filters select option{ color: #111; }
.kyyte-front__ribbon .kyyte-container{
    display: flex; justify-content: space-between; align-items: center;
}
.kyyte-front__notice-icon{ display: inline-flex; flex: 0 0 auto; }
.kyyte-front__notice{ margin: 0; font-size: 13px; opacity: .95; display: inline-flex; align-items: center; gap: 10px; }
.kyyte-front__notice a{ color: #7fb0ff; text-decoration: underline; }

.kyyte-front__section{ background: #fff; padding: 56px 0; }
.kyyte-front__section-head{
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px;
}
body .kyyte-front__section-head h2{
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    color: #1a1a1a !important;
}
body .kyyte-front__section-links a{
    color: #1a1a1a !important; text-decoration: underline; margin-left: 24px; font-size: 15px;
}

.kyyte-grid{ margin: 0 0 48px; }
body .kyyte-grid__section{
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin: 0 0 22px !important;
    color: #1a1a1a !important;
}
body .kyyte-grid__cards{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    justify-content: start;      /* don't stretch a lone card across the row */
    background: var(--kyyte-gray-bg);
    border-radius: 6px;
    padding: 28px;
    gap: 0;
}
body .kyyte-card{
    padding: 6px 28px;
    border-right: 1px solid var(--kyyte-line);
}
body .kyyte-grid__cards > .kyyte-card:last-child{ border-right: 0; }
body .kyyte-grid__cards > .kyyte-card:nth-child(3n){ border-right: 0; }
.kyyte-card:last-child{ border-right: 0; }
body .kyyte-card__title{
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 16px !important;
    color: #1a1a1a !important;
}
body .kyyte-card__title a{
    color: #1a1a1a !important;
    text-decoration: none !important;
}
body .kyyte-card__title a:hover{ color: var(--kyyte-navy) !important; }

body .kyyte-card__links{ list-style: none !important; padding: 0 !important; margin: 0 !important; }
body .kyyte-card__links li{
    position: relative;
    padding: 7px 0 7px 18px !important;
    margin: 0 !important;
    list-style: none !important;
}
/* bullet marker, as in the Figma */
body .kyyte-card__links li::before{
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9aa0ad;
}
body .kyyte-card__links a{
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #3d4149 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}
body .kyyte-card__links a:hover{ color: var(--kyyte-navy) !important; text-decoration: underline !important; }
body .kyyte-card__links li:hover::before{ background: var(--kyyte-navy); }

/* ============================================================
   SINGLE ARTICLE  (rules body-scoped + !important on criticals
   so the active theme's stylesheet cannot override them)
============================================================ */
body .kyyte-single__hero{
    background-color: #0209a8 !important;
    background-image: url('https://ummdigital.tech/kyytehelp/wp-content/uploads/2026/07/bginner.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    color: #fff;
    padding: 150px 0 110px;
    text-align: center;
}
body .kyyte-single__title{
    font-size: 64px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
    color: #fff !important;
}
body .kyyte-single__subtitle{
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 52px;
    color: #fff !important;
    opacity: .95;
}
body .kyyte-single__search{
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 66px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    padding: 5px 6px 5px 30px;
    box-shadow: none;
}
body .kyyte-single__search input{
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit;
    font-size: 18px;
    padding: 0;
    margin: 0;
    height: auto;
}
body .kyyte-single__search input::placeholder{ color: rgba(255,255,255,.8); }
body .kyyte-single__search button{
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
body .kyyte-single__search button img{ width: 54px; height: 54px; display: block; }

/* breadcrumb / version bar */
body .kyyte-single__crumb{
    background: #000539 !important;
    color: #fff;
    padding: 15px 0;
}
body .kyyte-single__crumb .kyyte-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
body .kyyte-crumb{ font-size: 13px; color: rgba(255,255,255,.85); }
body .kyyte-crumb a{
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body .kyyte-crumb a:hover{ opacity: .85; }
body .kyyte-crumb .sep{ margin: 0 8px; opacity: .5; }
body .kyyte-crumb .current{ color: rgba(255,255,255,.7); }
body .kyyte-crumb__meta{
    display: flex; align-items: center; gap: 20px;
    font-size: 13px; color: rgba(255,255,255,.85);
}
body .kyyte-crumb__version{
    background: rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 5px 16px;
    color: #fff;
}

.kyyte-single__body{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 96px;
    padding: 40px 0 80px;
    align-items: start;
}
body .kyyte-single__aside{
    align-self: start;
    position: sticky;
    top: 24px;                        /* sticks 24px below the top on scroll */
    max-height: calc(100vh - 48px);   /* never taller than the viewport */
    overflow-y: auto;                 /* long TOCs scroll internally */
    background: #f7f7f7 !important;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 0;
}
body .kyyte-single__content{
    min-width: 0;
    max-width: 800px !important;   /* Figma reading measure */
    font-size: 15px;
    line-height: 1.65;
    color: var(--kyyte-text);
}
.kyyte-single__lead{
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    margin: 0 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--kyyte-line);
}
.kyyte-single__lead p{ margin: 0 0 12px; }
.kyyte-single__lead p:last-child{ margin-bottom: 0; }
.kyyte-single__content p{ margin: 0 0 16px; }
.kyyte-single__content img{ max-width: 100%; height: auto; }

/* ---- In-page article search ---- */
mark.kyyte-hit{
    background: #fff3b0;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
mark.kyyte-hit.is-current{
    background: #ffb703;
    box-shadow: 0 0 0 2px rgba(255,183,3,.45);
}
@keyframes kyytePulse{
    0%   { box-shadow: 0 0 0 0 rgba(255,183,3,.85); }
    100% { box-shadow: 0 0 0 14px rgba(255,183,3,0); }
}
mark.kyyte-hit.kyyte-pulse{ animation: kyytePulse .7s ease-out; }

/* results dropdown */
body .kyyte-single__search{ position: relative; }
body .kyyte-sd{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff !important;
    border: 1px solid #e2e2e4;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    max-height: 380px;
    overflow-y: auto;
    z-index: 60;
    text-align: left;
    padding: 6px !important;
    font-family: var(--kyyte-font);
}
body .kyyte-sd__head{
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a8a8a !important;
    padding: 10px 12px 8px !important;
    margin: 0 !important;
}
body .kyyte-sd__item{
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    cursor: pointer;
    font-family: inherit !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
body .kyyte-sd__item:hover,
body .kyyte-sd__item.is-active{ background: #f2f6ff !important; }
body .kyyte-sd__sec{
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: var(--kyyte-navy) !important;
    margin: 0 0 2px !important;
}
body .kyyte-sd__count{
    background: #e8f0ff;
    color: var(--kyyte-navy);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
}
body .kyyte-sd__txt{
    display: block !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #555 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body .kyyte-sd__txt b{
    color: #111;
    background: #fff3b0;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 700;
}
body .kyyte-sd__empty{
    padding: 18px 14px !important;
    font-size: 14px !important;
    color: #777 !important;
}
body .kyyte-toc{
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 15px;
    display: block;
}
body .kyyte-toc__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ececec !important;
    padding: 18px 22px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 2;
}
body .kyyte-toc__title{
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #1a1a1a !important;
    margin: 0;
}
body .kyyte-toc__toggle{
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
}
body .kyyte-toc__toggle span{
    display: block;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
}

body .kyyte-toc__list{
    list-style: none;
    margin: 0;
    padding: 28px 0 28px;
    position: relative;
    background: #f7f7f7;
}
/* vertical guide line down the left */
body .kyyte-toc__list::before{
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #d9d9d9;
}
/* single sliding blue indicator (smoothly moves + resizes between sections) */
body .kyyte-toc__indicator{
    position: absolute;
    left: 15px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--kyyte-navy);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(0);
    transition: transform .3s cubic-bezier(.4,0,.2,1),
                height .3s cubic-bezier(.4,0,.2,1),
                opacity .2s ease;
    will-change: transform, height;
    z-index: 1;
    pointer-events: none;
}
body .kyyte-toc__indicator.is-visible{ opacity: 1; }

body .kyyte-toc__sub{ list-style: none; margin: 4px 0 8px; padding: 0; }

body .kyyte-toc__item{ position: relative; }
body .kyyte-toc a{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 20px 12px 46px;   /* number starts 30px from the guide line */
    color: #8c8c8c;
    text-decoration: none;
    line-height: 1.35;
    transition: color .15s ease;
}
body .kyyte-toc a:hover{ color: #555; }
body .kyyte-toc__item--h2 > a{ font-size: 18px; }
body .kyyte-toc__item--h3 > a{ font-size: 15px; padding-left: 62px; gap: 12px; }
body .kyyte-toc__num{
    color: #b3b3b3;
    min-width: 22px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

/* active sub-item */
body .kyyte-toc a.is-active{ color: var(--kyyte-navy) !important; font-weight: 600; }
body .kyyte-toc a.is-active .kyyte-toc__num{ color: var(--kyyte-navy) !important; }

/* current main section: bold black (bar is now the sliding indicator) */
body .kyyte-toc__item--h2.is-current > a{ color: #1a1a1a !important; font-weight: 700; }
body .kyyte-toc__item--h2.is-current > a .kyyte-toc__num{ color: #1a1a1a !important; }

/* collapsed (hamburger) state */
body .kyyte-toc.is-collapsed .kyyte-toc__list{ display: none; }

/* collapsed (hamburger) state */
body .kyyte-toc.is-collapsed .kyyte-toc__list{ display: none; }

/* nameless content blocks flow under the heading above */
.kyyte-block{ margin: 0 0 16px; }
.kyyte-block:last-child{ margin-bottom: 0; }

/* ============================================================
   STRUCTURED SECTIONS (rendered by inc/render.php)
============================================================ */
.kyyte-sec{ margin: 0 0 36px; scroll-margin-top: 90px; }
.kyyte-sec__title{
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--kyyte-line);
    color: #111;
}
.kyyte-sec__title--sub{
    font-size: 18px;
    border-bottom: 0;
    padding-bottom: 0;
    margin-top: 24px;
}
.kyyte-sec__title--subsub{
    font-size: 15px;
    font-weight: 700;
    border-bottom: 0;
    padding-bottom: 0;
    margin-top: 20px;
}
.kyyte-sec__title--subsubsub{
    font-size: 14px;
    font-weight: 700;
    color: #444;
    border-bottom: 0;
    padding-bottom: 0;
    margin-top: 18px;
}
.kyyte-sec__num{ color: var(--kyyte-navy); font-weight: 600; }
.kyyte-sec__dot{ color: #1a1a1a; }
.kyyte-sec__num--sub{ color: #1a1a1a; font-weight: 700; margin-right: 4px; }

/* ---- Icon boxes (feature grid) ---- */
.kyyte-iconboxes{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    margin: 20px 0 8px;
}
.kyyte-iconbox__icon{
    margin-bottom: 14px;
    line-height: 0;
}
/* No background / radius — the uploaded SVG carries its own styling. */
.kyyte-iconbox__icon img{
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
}
.kyyte-iconbox__title{
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.kyyte-iconbox__desc{
    font-size: 14px;
    line-height: 1.5;
    color: #8a8a8a;
    margin: 0;
}

/* ---- Rich numbered steps ---- */
.kyyte-steps{
    list-style: none;
    counter-reset: kyyte-step;
    padding: 0;
    margin: 16px 0;
}
.kyyte-steps > li{
    counter-increment: kyyte-step;
    position: relative;
    padding-left: 44px;
    margin-bottom: 22px;
}
.kyyte-steps > li::before{
    content: counter(kyyte-step);
    position: absolute;
    left: 0; top: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--kyyte-navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
}
.kyyte-step__title{ font-weight: 700; color: #1a1a1a; }
.kyyte-step__desc{ color: #555; }
.kyyte-step__body{ font-size: 15px; line-height: 1.6; padding-top: 3px; }

/* images attached to a step */
.kyyte-step__figures{ margin: 14px 0 4px; }
.kyyte-step__figure{
    margin: 0 0 14px;
    border: 1px solid var(--kyyte-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.kyyte-step__figure img.kyyte-step__img{
    display: block;
    width: 100%;
    height: auto;
}
.kyyte-step__figure figcaption{
    background: #fafafa;
    border-top: 1px solid var(--kyyte-line);
    padding: 10px 14px;
    font-size: 12px;
    font-style: italic;
    color: #8a8a8a;
}
.kyyte-sec__desc{ font-size: 15px; line-height: 1.7; }
.kyyte-sec__desc p{ margin: 0 0 14px; }
.kyyte-sec__figure{
    margin: 16px 0;
    border: 1px solid var(--kyyte-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.kyyte-sec__figure img.kyyte-sec__img{
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
}
.kyyte-sec__figure figcaption{
    background: #fafafa;
    border-top: 1px solid var(--kyyte-line);
    padding: 10px 14px;
    font-size: 12px;
    font-style: italic;
    color: #8a8a8a;
    text-align: left;
    margin: 0;
}
.kyyte-sec__list{ padding-left: 0; list-style: none; margin: 12px 0; }
.kyyte-sec__list li{ padding: 5px 0 5px 28px; position: relative; font-size: 15px; color: #444; line-height: 1.6; }
/* plain bullet */
.kyyte-sec__list--bullet li::before{
    content: "";
    position: absolute; left: 6px; top: 13px;
    width: 5px; height: 5px; border-radius: 50%;
    background: #888;
}
/* green checkmark */
.kyyte-sec__list--check li::before{
    content: "✓";
    position: absolute; left: 0; top: 6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #22a565; color: #fff;
    text-align: center; line-height: 18px;
    font-size: 11px; font-weight: 700;
}
.kyyte-tablewrap{ overflow-x: auto; margin: 14px 0; }
.kyyte-sec__table{ border-collapse: collapse; width: 100%; font-size: 14px; }
.kyyte-sec__table--kv{ border: 1px solid var(--kyyte-line); border-radius: 6px; overflow: hidden; }
.kyyte-sec__table--kv th{
    text-align: left; padding: 12px 18px;
    background: #fafafa; font-weight: 700; width: 30%; color: #1a1a1a;
    border-bottom: 1px solid var(--kyyte-line);
    vertical-align: top;
}
.kyyte-sec__table--kv td{
    padding: 12px 18px;
    border-bottom: 1px solid var(--kyyte-line);
    vertical-align: top; color: #555;
}
.kyyte-sec__table--kv tr:last-child th,
.kyyte-sec__table--kv tr:last-child td{ border-bottom: 0; }

.kyyte-sec__table--data{
    border: 1px solid var(--kyyte-line);
    border-radius: 6px;
    overflow: hidden;
}
.kyyte-sec__table--data th{
    background: #f4f4f4; color: #1a1a1a;
    text-align: left; padding: 12px 18px; font-weight: 700;
    border-bottom: 1px solid var(--kyyte-line);
}
.kyyte-sec__table--data td{
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    color: #555; vertical-align: top;
}
.kyyte-sec__table--data tr:last-child td{ border-bottom: 0; }
.kyyte-sec__code{
    background: #0d1117; color: #e6edf3;
    padding: 16px; border-radius: 4px;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.55;
    overflow-x: auto;
}
.kyyte-sec__divider{
    border: 0;
    border-top: 1px solid var(--kyyte-line);
    margin: 32px 0;
}

/* ============================================================
   CALLOUT BLOCK
============================================================ */
.kyyte-callout{
    display: flex; gap: 12px;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 24px 0;
    font-size: 14px; line-height: 1.6;
}
.kyyte-callout p{ margin: 0; }
.kyyte-callout__icon{
    flex: 0 0 20px; height: 20px; border-radius: 50%; background: currentColor;
    margin-top: 2px; opacity: .8;
}
.kyyte-callout--info{    background: #e8f0ff; color: #0a3a8a; }
.kyyte-callout--note{    background: #fff8db; color: #7a5a00; }
.kyyte-callout--warning{ background: #ffe5e5; color: #8a1414; }
.kyyte-callout--success{ background: #e5f6ea; color: #145a2a; }

/* ============================================================
   CORE BLOCK — style variations
   (register via block styles in a later pass; for now these
    apply automatically when .is-style-* class is present)
============================================================ */
/* checkmark bulleted list */
.wp-block-list.is-style-kyyte-check{ list-style: none; padding-left: 0; }
.wp-block-list.is-style-kyyte-check li{
    position: relative; padding-left: 28px; margin-bottom: 6px;
}
.wp-block-list.is-style-kyyte-check li::before{
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: #22a565; color: #fff; text-align: center;
    line-height: 20px; font-size: 12px; font-weight: 700;
}
/* numbered step blocks */
.wp-block-list.is-style-kyyte-steps{ list-style: none; padding-left: 0; counter-reset: kyyte-step; }
.wp-block-list.is-style-kyyte-steps > li{
    position: relative; padding-left: 40px; margin-bottom: 14px;
    counter-increment: kyyte-step;
}
.wp-block-list.is-style-kyyte-steps > li::before{
    content: counter(kyyte-step);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--kyyte-navy); color: #fff;
    text-align: center; line-height: 26px; font-size: 13px; font-weight: 600;
}

/* tables — striped 2-col & full data variants */
.wp-block-table.is-style-kyyte-keyvalue table{ border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-kyyte-keyvalue td{
    padding: 10px 16px; border-bottom: 1px solid var(--kyyte-line); vertical-align: top;
}
.wp-block-table.is-style-kyyte-keyvalue tr td:first-child{
    font-weight: 600; width: 30%; background: #fafafa;
}
.wp-block-table.is-style-kyyte-data table{ border-collapse: collapse; width: 100%; font-size: 13px; }
.wp-block-table.is-style-kyyte-data th{
    background: var(--kyyte-navy-deep); color: #fff; text-align: left;
    padding: 10px 14px; font-weight: 600;
}
.wp-block-table.is-style-kyyte-data td{
    padding: 10px 14px; border-bottom: 1px solid var(--kyyte-line);
}
.wp-block-table.is-style-kyyte-data tr:nth-child(even) td{ background: #fafafa; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px){
    body .kyyte-single__hero{ padding: 90px 0 60px; }
    body .kyyte-single__title{ font-size: 30px; }
    body .kyyte-single__subtitle{ font-size: 15px; margin-bottom: 24px; }
    body .kyyte-single__search{ height: 52px; padding-left: 18px; }
    body .kyyte-single__search input{ font-size: 15px; }
    body .kyyte-single__search button{ width: 46px; height: 46px; }
    body .kyyte-single__search button img{ width: 46px; height: 46px; }
    body .kyyte-single__crumb .kyyte-container{ flex-direction: column; align-items: flex-start; gap: 8px; }
    .kyyte-front__ribbon .kyyte-container{ flex-direction: column; align-items: flex-start; gap: 12px; }
    body .kyyte-grid__cards{ grid-template-columns: 1fr; padding: 0; background: transparent; }

    /* single column; TOC sits above the content, NOT sticky/full-height */
    .kyyte-single__body{ grid-template-columns: 1fr; gap: 24px; padding: 24px 0 60px; }
    body .kyyte-single__aside{
        position: static;
        align-self: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 8px;
    }
    body .kyyte-toc__head{ position: static; }
    body .kyyte-single__content{ max-width: 100% !important; }

    body .kyyte-card{ border-right: 0; border-bottom: 1px solid var(--kyyte-line); padding: 20px 0; }
    .kyyte-iconboxes{ grid-template-columns: 1fr; gap: 24px; }
    .kyyte-front__section-head{ flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Phones */
@media (max-width: 600px){
    :root{ --kyyte-container-w: 92%; }
    body .kyyte-single__hero{ padding: 76px 0 46px; }
    body .kyyte-single__title{ font-size: 24px; line-height: 1.25; }
    body .kyyte-single__subtitle{ font-size: 14px; }
    body .kyyte-single__search{ height: 48px; padding-left: 16px; }
    body .kyyte-single__search input{ font-size: 14px; }
    body .kyyte-single__search button{ width: 42px; height: 42px; }
    body .kyyte-single__search button img{ width: 42px; height: 42px; }

    body .kyyte-single__content{ font-size: 15px; }
    .kyyte-sec__title{ font-size: 20px; }
    .kyyte-sec__title--sub{ font-size: 16px; }

    /* Collapse the TOC list by default on phones — tap the hamburger to open */
    body .kyyte-toc.is-collapsed .kyyte-toc__list{ display: none; }

    /* Steps: numbers stay in a tidy column, text wraps under */
    .kyyte-steps > li{ padding-left: 38px; }
    .kyyte-steps > li::before{ width: 26px; height: 26px; font-size: 12px; }

    /* Wide tables scroll horizontally instead of breaking the layout */
    .kyyte-tablewrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .kyyte-sec__table{ min-width: 520px; }
    .kyyte-sec__table th, .kyyte-sec__table td{ padding: 10px 12px; font-size: 13px; }

    /* Breadcrumb + version badge stack cleanly */
    body .kyyte-single__crumb{ font-size: 12px; }
}

/* ============================================================
   LIGHTBOX (article images)
============================================================ */
body .kyyte-zoomable{ cursor: zoom-in; transition: opacity .15s ease; }
body .kyyte-zoomable:hover{ opacity: .92; }

body.kyyte-lb-open{ overflow: hidden; }

body .kyyte-lb{
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,5,57,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 70px;
    animation: kyyteLbIn .18s ease;
}
/* The [hidden] attribute must win over display:flex above. */
body .kyyte-lb[hidden]{ display: none !important; }
@keyframes kyyteLbIn{ from{ opacity: 0; } to{ opacity: 1; } }

body .kyyte-lb__figure{
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
body .kyyte-lb__stage{
    max-width: 100%;
    max-height: calc(100vh - 150px);
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
body .kyyte-lb__img{
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    cursor: zoom-in;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}
body .kyyte-lb__zoom{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}
body .kyyte-lb__cap{
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    max-width: 820px;
}
body .kyyte-lb__close{
    position: absolute;
    top: 18px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0 !important;
}
body .kyyte-lb__close:hover{ background: rgba(255,255,255,.24) !important; }

body .kyyte-lb__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0 !important;
}
body .kyyte-lb__nav:hover{ background: rgba(255,255,255,.26) !important; }
body .kyyte-lb__nav--prev{ left: 18px; }
body .kyyte-lb__nav--next{ right: 18px; }

@media (max-width: 600px){
    body .kyyte-lb{ padding: 20px 12px; }
    body .kyyte-lb__nav{ width: 40px; height: 40px; font-size: 24px; }
    body .kyyte-lb__nav--prev{ left: 6px; }
    body .kyyte-lb__nav--next{ right: 6px; }
    body .kyyte-lb__stage{ max-height: calc(100vh - 190px); }
    body .kyyte-lb__img{ max-height: calc(100vh - 190px); }
    body .kyyte-lb__zoom{ bottom: 12px; font-size: 11px; }
}

/* ============================================================
   CATEGORY (taxonomy) PAGE
============================================================ */
body .kyyte-tax__hero{ padding: 96px 0 56px; }
body .kyyte-tax__hero h1{ font-size: 38px; margin-bottom: 0; }
body .kyyte-tax__hero .kyyte-front__lead{ margin-top: 14px; }

body .kyyte-tax__crumb{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
body .kyyte-tax__crumb a{ color: #fff; text-decoration: underline; }
body .kyyte-tax__crumb .is-current{ color: rgba(255,255,255,.65); }

body .kyyte-card__desc{
    font-size: 13px;
    color: #8a8a8a;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* ---- Portal (home) search results ---- */
body .kyyte-front__search{ position: relative; }
body .kyyte-sd__item{ text-decoration: none !important; }
body .kyyte-sd__title{
    display: block !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 2px 0 3px !important;
}
body .kyyte-sd__title b{ background: #fff3b0; border-radius: 2px; padding: 0 2px; }
body .kyyte-sd__type{
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}
body .kyyte-sd__type--article{ background: #e8f0ff; color: var(--kyyte-navy); }
body .kyyte-sd__type--category{ background: #e9f7ef; color: #1a7f4b; }
