/* ==========================================================
   Shared by landing and registration pages.
   ========================================================== */

/* TAU-Marutham (Tamil Unicode font). Place the font file in public/assets/fonts/tau-marutham/ */
@font-face {
    font-family: 'TAU-Marutham';
    src: url('../fonts/tau-marutham/TAU-Marutham.woff2') format('woff2'),
         url('../fonts/tau-marutham/TAU-Marutham.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: 'TAU-Marutham', 'Noto Sans Tamil', 'Noto Sans', system-ui, sans-serif;
    --font-body:    'Noto Sans', 'Noto Sans Tamil', system-ui, sans-serif;

    --maroon:        #7a0c1b;
    --maroon-dark:   #5a0813;
    --red:           #c8102e;
    --yellow:        #ffc72c;
    --yellow-soft:   #fff6d6;
    --page-bg:       #fffbef;
    --text:          #2b1a1c;
    --text-muted:    #6b5557;
    --card-bg:       #ffffff;
    --card-border:   #f1dfb0;
}

body {
    font-family: var(--font-body);
    background: var(--page-bg);
    color: var(--text);
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 55%, var(--red));
    color: #fff;
}
.header-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    border: 3px solid var(--yellow);
    flex-shrink: 0;
}
.dept-name {
    font-size: clamp(1.1rem, 2.6vw, 1.9rem);
    font-weight: 700;
    letter-spacing: .3px;
}
.project-name {
    font-size: clamp(.9rem, 1.8vw, 1.15rem);
    color: var(--yellow);
    font-weight: 600;
}
/* Yellow band under the header, echoing the flag's center stripe */
.header-band {
    height: 6px;
    background: var(--yellow);
    box-shadow: 0 3px 0 var(--red);
}

/* ---------- Component cards ---------- */
.landing {
    background:
        radial-gradient(circle at top left, var(--yellow-soft), transparent 60%),
        var(--page-bg);
}
.comp-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: 5px solid var(--maroon);
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.comp-card:hover,
.comp-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(122, 12, 27, .15);
    border-top-color: var(--yellow);
}
.comp-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.comp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--yellow-soft);
    color: var(--maroon);
    font-size: 1.6rem;
}
.comp-title { color: var(--maroon); font-weight: 700; }
.comp-desc  { color: var(--text-muted); font-size: .95rem; }
.comp-link  { color: var(--red); font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--maroon-dark);
    color: #f5e9c9;
    border-top: 4px solid var(--yellow);
}

/* ---------- Closed components ---------- */
.comp-card--closed { opacity: .75; cursor: not-allowed; }
.comp-card--closed:hover { transform: none; box-shadow: none; border-top-color: var(--maroon); }
.comp-badge { background: var(--yellow-soft); color: var(--maroon); border: 1px solid var(--card-border); font-weight: 600; }

/* ---------- Forms ---------- */
.breadcrumb a { color: var(--maroon); }
.form-card { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(122, 12, 27, .06); }
.form-card-head { background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); color: #fff; padding: 1.1rem 1.5rem; border-bottom: 4px solid var(--yellow); }
.form-card-head p { color: var(--yellow); font-weight: 600; }
.form-section { font-size: 1rem; font-weight: 700; color: var(--maroon); padding-bottom: .4rem; margin-bottom: 1rem; border-bottom: 2px solid var(--yellow-soft); }
.form-label { font-weight: 600; font-size: .92rem; }
.req { color: var(--red); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--maroon); box-shadow: 0 0 0 .2rem rgba(122, 12, 27, .15); }
.form-check-input:checked { background-color: var(--maroon); border-color: var(--maroon); }
.btn-maroon { background: var(--maroon); color: #fff; border: 1px solid var(--maroon); font-weight: 600; }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); color: var(--yellow); border-color: var(--maroon-dark); }
.btn-maroon:disabled { background: #b08a8f; border-color: #b08a8f; color: #fff; }
.photo-preview { width: 130px; height: 150px; margin: 0 auto; border: 2px dashed var(--card-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--yellow-soft); color: var(--maroon); font-size: 2.5rem; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Success ---------- */
.success-icon { font-size: 3.5rem; color: #1e8e3e; }
.reg-no { display: inline-block; background: var(--yellow-soft); border: 2px dashed var(--maroon); border-radius: 10px; padding: .8rem 1.6rem; }
.reg-no small { display: block; color: var(--text-muted); }
.reg-no strong { font-size: 1.6rem; letter-spacing: 2px; color: var(--maroon); }

@media print {
    .site-footer, .breadcrumb { display: none !important; }
    body, .landing { background: #fff !important; }
}

.area-subdesc { display: block; margin-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--maroon); line-height: 1.5; overflow-wrap: anywhere; }
.area-subdesc .bi { margin-right: .2rem; }

/* ---------- TAU-Marutham for headings ----------
   Used for titles only. Form fields, numbers
   and body text stay in Noto Sans for readability.
   font-synthesis: none stops the browser faking a bold weight. */
.dept-name,
.project-name,
.comp-title,
.form-card-head h2,
.form-section,
.success-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-synthesis: none;
}
/* Heading sizes */
.dept-name          { /* font-size: clamp(1.5rem, 3.4vw, 2.5rem); */ letter-spacing: .5px; }
.project-name       { font-size: clamp(1.1rem, 2.2vw, 1.45rem); }
.comp-title         { font-size: 1.55rem; }
.form-card-head h2  { font-size: 1.75rem; }
.form-section       { font-size: 1.4rem; }
.success-title      { font-size: 1.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
    .header-logo { width: 48px; height: 48px; padding: 4px; border-width: 2px; }
    .comp-card .card-body { padding: 1.1rem !important; }
    .comp-icon { width: 46px; height: 46px; font-size: 1.3rem; }
}

/* ---------- Officer pages ---------- */
.officer-nav { background: var(--maroon-dark); border-bottom: 3px solid var(--yellow); padding-top: 0; padding-bottom: 0; }
.officer-nav .navbar-brand,
.officer-nav .navbar-toggler { color: #fff; }
.officer-nav .navbar-toggler { border-color: rgba(255, 255, 255, .4); font-size: 1.4rem; }
.officer-nav .nav-link { color: rgba(255, 255, 255, .85); font-weight: 600; padding: .85rem 1rem; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.officer-nav .nav-link:hover,
.officer-nav .nav-link:focus-visible { color: #fff; }
.officer-nav .nav-link.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.officer-who { color: #fff; }
.officer-role { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(255, 199, 44, .2); color: var(--yellow); font-size: .75rem; font-weight: 600; }
.page-title { font-family: var(--font-display); color: var(--maroon); font-size: 1.75rem; }
.stat-tile { background: var(--card-bg); border: 1px solid var(--card-border); border-left: 4px solid var(--maroon); border-radius: 10px; padding: .9rem 1rem; height: 100%; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--maroon); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-muted); font-size: .85rem; }
.officer-table thead th { background: var(--yellow-soft); color: var(--maroon); font-size: .85rem; white-space: nowrap; }
.officer-table td { font-variant-numeric: tabular-nums; }
.login-tabs { flex-wrap: nowrap; gap: .5rem; }
.login-tabs .nav-link { color: var(--maroon); font-weight: 600; border: 1px solid var(--card-border); height: 100%; padding: .55rem .5rem; line-height: 1.25; }
.login-tabs .nav-link.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.otp-input { letter-spacing: .5em; font-weight: 700; }
@media (max-width: 767.98px) {
    .officer-nav .nav-link { border-bottom: 0; margin-bottom: 0; padding: .6rem 0; }
    .officer-nav .nav-link.active { border-left: 3px solid var(--yellow); padding-left: .6rem; }
}
.form-card .card-body a:not(.btn),
.form-card .btn-link { color: var(--maroon); font-weight: 600; }

/* ==========================================================
   Landing: Urban / Rural choice and the kit list
   ========================================================== */
.page-wrap { max-width: 1040px; }
.min-w-0 { min-width: 0; }
.section-title { font-family: var(--font-display); color: var(--maroon); font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0; overflow-wrap: anywhere; }
.section-sub { color: var(--text-muted); margin: .25rem 0 0; overflow-wrap: anywhere; font-weight: bold;}
.btn-outline-maroon { color: var(--maroon); border: 1px solid var(--maroon); font-weight: 600; background: #fff; }
.btn-outline-maroon:hover, .btn-outline-maroon:focus { background: var(--maroon); color: #fff; }

/* Area cards */
.area-card {
    display: flex; gap: 1.1rem; align-items: flex-start; height: 100%; padding: 1.5rem;
    background: #fff; border: 1px solid var(--card-border); border-top: 5px solid var(--maroon); border-radius: 16px;
    color: var(--text); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.area-card:hover, .area-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(122, 12, 27, .14); border-top-color: var(--yellow); color: var(--text); }
.area-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.area-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center;
             background: var(--yellow-soft); color: var(--maroon); font-size: 2rem; }
.area-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; flex: 1; }
.area-title { font-family: var(--font-display); color: var(--maroon); font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.area-desc { color: var(--text-muted); line-height: 1.55; overflow-wrap: anywhere; }
.area-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; }
.area-count { background: var(--yellow-soft); border: 1px solid var(--card-border); color: var(--maroon); font-weight: 700; font-size: .85rem;
              padding: .15rem .7rem; border-radius: 999px; }
.area-go { color: var(--red); font-weight: 700; }
@media (max-width: 575.98px) {
    .area-card { padding: 1.1rem; gap: .85rem; }
    .area-icon { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 12px; }
    .area-title { font-size: 1.35rem; }
}

/* Kit picture: whole image visible, tap to enlarge */
.item { grid-template-columns: 170px minmax(0, 1fr) 230px; }
.item-thumb { background: #fff; border: 1px solid #eadfc4; }
.item-thumb img { object-fit: contain; }
.thumb-zoom { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.thumb-zoom:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.zoom-hint { position: absolute; right: .35rem; bottom: .35rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
             display: flex; align-items: center; justify-content: center; background: rgba(90, 8, 19, .85); color: #fff; font-size: .9rem; }
.img-modal .modal-title { font-family: var(--font-display); color: var(--maroon); }
.img-modal img { max-width: 100%; max-height: 80vh; object-fit: contain; }
@media (max-width: 991.98px) { .item { grid-template-columns: 140px minmax(0, 1fr); } }
@media (max-width: 575.98px) { .item { grid-template-columns: 96px minmax(0, 1fr); } }

/* Area switch on the kit list */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { border: 1px solid var(--card-border); background: #fff; color: var(--maroon); font-weight: 600; font-size: .85rem;
          border-radius: 999px; padding: .35rem .9rem; line-height: 1.3; text-decoration: none; }
.filter:hover { border-color: var(--maroon); color: var(--maroon); }
.filter[aria-current="page"] { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Kit list: one row per kit
   Wide : [image] [name, status, description, chips] [contribution + buttons]
   Tablet: contribution + buttons under the text.  Phone: small image beside the name. */
.list { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 0 1.25rem; }
.item { display: grid; grid-template-columns: 136px minmax(0, 1fr) 230px; gap: 1rem 1.25rem; align-items: start;
        padding: 1.25rem 0; border-bottom: 1px solid #eadfc4; }
.item:last-of-type { border-bottom: 0; }
.item-thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--yellow-soft); }
.item-thumb img { 
    width: 100%; 
    height: 100%; 
    /*object-fit: cover; */
    display: block; 
}

.kit-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .5rem; margin: .75rem 0 0; }
.kit-amounts > div { border: 1px solid #eadfc4; border-radius: 10px; padding: .45rem .7rem; background: #fff; min-width: 0; }
.kit-amounts dt { font-size: .78rem; font-weight: 700; color: var(--text-muted); overflow-wrap: anywhere; }
.kit-amounts dd { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-amounts .share { border-color: var(--maroon); }
.kit-amounts .share dt, .kit-amounts .share dd { color: var(--maroon); }

.item-thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--maroon); font-size: 2.2rem; }
.item--closed .item-thumb img { filter: grayscale(.6); }
.item-main { min-width: 0; }
.item-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0 0 .35rem; line-height: 1.35; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 6px; margin-bottom: .5rem; line-height: 1.4; }
.pill-open { background: #e3f4e8; color: #1e7a3a; }
.pill-soon { background: #fdecd9; color: #b4520f; }
.item-desc { margin: 0 0 .6rem; line-height: 1.6; overflow-wrap: anywhere; }
.item-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; background: var(--yellow-soft); border: 1px solid var(--card-border);
        color: var(--text-muted); font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; line-height: 1.35; }
.chip i { color: var(--maroon); }
.chip span { overflow-wrap: anywhere; }
.chip-note { background: #fdecd9; border-color: #f6cfa6; color: #8a3f0b; }
.item-aside { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.contribution { display: flex; flex-direction: column; align-items: flex-start; background: var(--yellow-soft);
                border: 1px dashed #e6c873; border-radius: 10px; padding: .5rem .8rem; }
.contribution .label { font-size: .78rem; color: var(--text-muted); font-weight: 600; overflow-wrap: anywhere; }
.contribution .amount { font-size: 1.4rem; font-weight: 700; color: var(--maroon); font-variant-numeric: tabular-nums; line-height: 1.3; }
.contribution .amount small { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.contribution .amount.free { color: #1e7a3a; }
.item-actions { display: flex; flex-direction: column; gap: .5rem; }
.item-actions .btn { white-space: normal; line-height: 1.25; padding: .5rem .6rem; display: flex; flex-direction: column; justify-content: center; text-align: center; }
@media (max-width: 991.98px) {
    .item { grid-template-columns: 120px minmax(0, 1fr); }
    .item-aside { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
    .contribution { flex: 1 1 12rem; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: .75rem; }
    .item-actions { flex: 1 1 14rem; flex-direction: row; }
    .item-actions .btn { flex: 1 1 0; }
}
@media (max-width: 575.98px) {
    .list { padding: 0 .9rem; border-radius: 12px; }
    .item { grid-template-columns: 84px minmax(0, 1fr); gap: .75rem; padding: 1rem 0; }
    .item-thumb { border-radius: 10px; grid-row: span 2; }
    .item-title { font-size: 1.05rem; align-self: end; margin: 0; }
    .item-main { display: contents; }                     /* description and chips span under the image */
    .item-title, .item-main > .pill { grid-column: 2; }
    .item-main > .pill { align-self: start; justify-self: start; margin: 0; }
    .item-desc, .item-chips, .item-aside { grid-column: 1 / -1; }
    .item-aside { flex-direction: column; }
    .contribution, .item-actions { flex: 0 0 auto; }      /* undo the tablet sizes, which would act as heights here */
    .item-actions { flex-direction: row; flex-wrap: wrap; }
    .item-actions .btn { flex: 1 1 auto; min-width: 7.5rem; }
}
.empty { padding: 2rem 0; text-align: center; color: var(--text-muted); margin: 0; }

/* Strip under the choices / list (Track Application) */
.track-strip { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--card-border);
               border-left: 5px solid var(--maroon); border-radius: 12px; padding: 1rem 1.25rem; }
.track-strip .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--yellow-soft); color: var(--maroon);
                     display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.track-strip .text { flex: 1 1 14rem; min-width: 0; }
.track-strip h2 { font-family: var(--font-display); color: var(--maroon); font-size: 1.3rem; margin: 0; overflow-wrap: anywhere; }
.track-strip .btn { white-space: normal; }
@media (max-width: 575.98px) { .track-strip .btn { flex: 1 1 100%; } }

/* Price details dialog */
.price-modal .modal-header { background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); color: #fff; border-bottom: 4px solid var(--yellow); align-items: flex-start; }
.price-modal .modal-title { font-family: var(--font-display); overflow-wrap: anywhere; min-width: 0; }
.price-table th { font-weight: 600; color: var(--text-muted); overflow-wrap: anywhere; }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tr.total th, .price-table tr.total td { color: var(--maroon); font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--maroon); }

/* Registration form: the kit applied for */
.kit-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border: 1px solid var(--card-border); border-radius: 12px; padding: .9rem; background: #fff; }
.kit-summary-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--yellow-soft);
                     display: flex; align-items: center; justify-content: center; color: var(--maroon); font-size: 1.8rem; }
.kit-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kit-summary-text { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.kit-summary-qty { flex: 0 0 auto; min-width: 7rem; }

/* ---------- Kit row: costs as one line of label + value pairs (no box) ----------
   The kit name is the strongest text in the row; the costs stay light.
   On phones the pairs become a tidy two-column list. */
.item-title { font-family: var(--font-display); font-weight: 400; color: var(--maroon); font-size: 1.4rem; }
/* Dividers: every pair has one on its left; the list is pulled left and clipped,
   so the divider of whichever pair starts a line (also after wrapping) is hidden. */
/*.cost-line { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 0; margin: .3rem 0 .6rem calc(-.8rem - 1px); padding: 0;
             font-size: .88rem; overflow: hidden; }
.cost-line li { padding: 0 .8rem; margin-left: -1px; border-left: 1px solid #eadfc4; line-height: 1.5; min-width: 0; }
.cost-line .k { color: var(--text-muted); overflow-wrap: anywhere; font-weight:bold; }
.cost-line .v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-line .v small { font-weight: 400; color: var(--text-muted); }
.cost-line .is-share .v { color: var(--maroon); }
.cost-line .v.free { color: #1e7a3a; }*/

/* ---------- Kit row: eligibility bar + three outlined tiles ---------- */
.item-title { font-family: var(--font-display); font-weight: 400; color: var(--maroon); font-size: 1.4rem; }
.kit-figures { margin: .3rem 0 .6rem; }
.elig-bar { margin: 0 0 .6rem; padding: .4rem .7rem; border-left: 4px solid var(--maroon); background: #fffdf6;
            border-radius: 0 8px 8px 0; line-height: 1.5; overflow-wrap: anywhere; }
.elig-bar b, .elig-bar i { color: var(--maroon); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; }
.tile { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .55rem .75rem;
        background: #fff; border: 1.5px solid #eadfc4; border-radius: 12px; }
.t-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); line-height: 1.35; overflow-wrap: anywhere; }
.t-value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-share { border-color: var(--maroon); }
.tile-share .t-label, .tile-share .t-value { color: var(--maroon); }
.tile-share .t-value.free { color: #1e7a3a; }

.item-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin-bottom: .25rem; }
.item-title-row .item-title { margin: 0; }
.item-title-row .pill { margin: 0; }
.item-actions .btn i { margin-right: .25rem; }
.item-actions .btn { flex-direction: row; align-items: center; flex-wrap: wrap; }
@media (max-width: 991.98px) {
    .item-aside { flex-direction: row; }
    .item-actions { flex: 1 1 100%; }
}
@media (max-width: 575.98px) {
    .item-main > .item-title-row { grid-column: 2; align-self: center; }
    .item-thumb { grid-row: auto; }                     /* title fits beside the image on one line */
    .item-title { font-size: 1.2rem; }
    /*.cost-line { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; }*/
    /*.cost-line li { padding: 0; margin: 0; border-left: 0; }*/
    /*.cost-line .k { display: block; font-size: .78rem; }*/
    .kit-figures { grid-column: 1 / -1; margin: 0; }
    .tiles { grid-template-columns: 1fr; }
    .tile { flex-direction: row; justify-content: space-between; align-items: baseline; gap: .75rem; }
    .t-value { font-size: 1.2rem; }
    .item-actions { flex: 1 1 100%; min-width: 0; }      /* full width; the two buttons share it, or stack */
}

.status-track-btn {
    float: inline-end;
    animation: yellowOutlineBlink 1s infinite;
}

@keyframes yellowOutlineBlink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        border-color: var(--maroon);
    }
    50% {
        box-shadow: 0 0 8px 3px rgba(255, 193, 7, 0.8);
        border-color: #ffc107;
    }
}

/* ---------- Footer links + footer pages ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; font-size: .88rem; }
.footer-links a { color: inherit; text-decoration: none; font-weight: 600; opacity: .9; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; opacity: 1; }
.static-page h3 { color: var(--maroon); }
.static-page ul, .static-page ol { padding-left: 1.25rem; }
.static-page li { margin-bottom: .3rem; }

/* ---------- Officer: Target Section ---------- */
.target-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); white-space: nowrap; }
.target-table td, .target-table th { padding: .7rem .9rem; }
.target-table .num { font-variant-numeric: tabular-nums; }
.target-table tr.is-frozen td { background: #faf7f0; }

/* Contact Us: office table, stacked on phones */
.office-table td, .office-table th { padding: .6rem .75rem; }
@media (max-width: 767.98px) {
    .office-table thead { display: none; }
    .office-table, .office-table tbody, .office-table tr, .office-table td { display: block; width: 100%; }
    .office-table tr { border: 1px solid var(--bs-border-color); border-radius: .5rem; margin-bottom: .75rem; padding: .25rem .75rem; }
    .office-table td { border: 0; padding: .35rem 0; }
    .office-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); }
}
