:root {
  --ink: #14213d;
  --muted: #5a6b86;
  --line: #e3e9f2;
  --paper: #f4f7fc;
  --card: #ffffff;
  --navy: #102a5c;
  --navy-dark: #0b1f45;
  --navy-soft: #eaf0fb;
  --orange: #f47b20;
  --orange-soft: #fff3e9;
  --orange-line: #fbd9bd;
  --shadow: 0 16px 42px rgba(16, 42, 92, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar { height: 76px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 6vw; gap: 56px; position: sticky; top: 0; z-index: 9; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-by { font-size: 9px; font-weight: 700; letter-spacing: .2px; color: var(--muted); padding-left: 2px; }
nav { display: flex; gap: 28px; height: 100%; }
nav a { display: grid; place-items: center; position: relative; text-decoration: none; color: #6a7794; font-size: 13px; font-weight: 600; }
nav a:hover { color: var(--navy); }
nav a.active { color: var(--navy); }
nav a.active:after { content: ""; position: absolute; bottom: 0; width: 100%; height: 3px; background: var(--orange); border-radius: 3px 3px 0 0; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status-chip { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 8px 13px; border-radius: 30px; }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: #34b27b; }
.status-chip.err i { background: #e0563e; }

main { max-width: 1280px; margin: auto; padding: 44px 30px 70px; }
.hero { display: flex; justify-content: space-between; gap: 50px; padding: 12px 0 40px; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--orange); font-size: 10px; letter-spacing: 1.7px; font-weight: 700; }
.eyebrow span { width: 22px; height: 2px; background: var(--orange); }
h1 { margin: 13px 0 11px; font: 700 56px/1.02 "Fraunces"; letter-spacing: -2px; color: var(--navy); }
h1 em { color: var(--orange); font-weight: 600; font-style: normal; }
.hero-copy { color: var(--muted); line-height: 1.65; max-width: 600px; font-size: 15px; }
.hero-card { width: 290px; padding: 22px 24px; border-radius: 12px; background: linear-gradient(155deg, #1b3b7a, var(--navy-dark)); color: #fff; box-shadow: var(--shadow); align-self: flex-start; }
.hero-card p { margin: 0 0 8px; font-size: 9px; letter-spacing: 1.4px; opacity: .72; }
.hero-card strong { font: 700 46px "Fraunces"; }
.hero-card > span { display: block; opacity: .8; font-size: 12px; margin-top: -2px; }
.hero-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.2); font-size: 11px; }
.hero-card-bottom b { color: var(--orange); font-size: 14px; }
.live { font-size: 8px; letter-spacing: .8px; opacity: .95; display: inline-flex; align-items: center; }
.live i { width: 7px; height: 7px; display: inline-block; background: var(--orange); border-radius: 50%; margin-right: 5px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding-bottom: 20px; }
.search { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 15px; }
.search span { font-size: 24px; color: #8a96ad; margin-top: -3px; }
.search input { height: 47px; border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; }
.outline-button, .digest-button { border-radius: 8px; padding: 0 18px; font-size: 12px; font-weight: 700; }
.outline-button { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.outline-button:hover { border-color: var(--navy); }
.digest-button { background: var(--orange); border: 1px solid var(--orange); color: #fff; }
.digest-button:hover { background: #e06d14; }

.content-grid { display: grid; grid-template-columns: 240px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sidebar { position: relative; padding: 22px 14px 90px; border-right: 1px solid var(--line); background: #fbfcfe; }
.side-title { display: flex; justify-content: space-between; padding: 0 9px 12px; color: #7c89a3; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.category { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 9px; margin: 2px 0; border: 0; border-radius: 7px; background: transparent; color: #5d6a85; text-align: left; font-size: 12px; font-weight: 600; }
.category:hover, .category.active { background: var(--navy-soft); color: var(--navy); }
.category .count { margin-left: auto; font-size: 10px; background: #eef2f8; padding: 2px 7px; border-radius: 10px; }
.category.active .count { background: #fff; color: var(--orange); }
.category .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sidebar-footer { position: absolute; bottom: 18px; left: 16px; right: 14px; display: flex; gap: 9px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); color: #7c89a3; font-size: 10px; line-height: 1.5; }
.sidebar-footer b { color: var(--navy); }
.shield { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; flex: none; background: var(--navy-soft); color: var(--navy); font-weight: 700; }

.feed { padding: 24px 28px; min-height: 650px; }
.feed-head { display: flex; justify-content: space-between; align-items: end; }
.feed-head p { margin: 0; color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
h2 { margin: 5px 0 0; font: 700 28px "Fraunces"; color: var(--navy); }
.sort { display: flex; align-items: center; gap: 6px; color: #7886a1; font-size: 11px; }
.sort select { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; outline: 0; color: var(--ink); background: #fff; font-weight: 600; font-size: 11px; }
.feed-meta { display: flex; justify-content: space-between; padding: 16px 0 11px; color: #7e8ba4; font-size: 10px; border-bottom: 1px solid var(--line); }
.feed-meta i { width: 7px; height: 7px; display: inline-block; background: #34b27b; border-radius: 50%; margin-right: 5px; }

.update-card { display: grid; grid-template-columns: 120px 1fr 170px; gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); transition: .18s; }
.update-card:hover { background: #fbfcff; }
.update-type b { display: block; width: max-content; padding: 5px 9px; border-radius: 4px; margin-bottom: 8px; color: #fff; font-size: 8px; letter-spacing: .5px; font-weight: 700; }
.update-type small { display: block; color: #7a8aa6; font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.update-type span { display: block; margin-top: 8px; color: #9aa6bd; font-size: 10px; font-weight: 500; }
.update-content h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.update-content p { margin: 0; color: #6b788f; font-size: 12px; line-height: 1.55; }
.update-content .tag { display: inline-block; color: #61708c; background: #eef2f8; border-radius: 4px; padding: 4px 7px; margin-top: 11px; margin-right: 5px; font-size: 9px; font-weight: 600; }
.update-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.update-refs .ref { font-size: 10.5px; color: #6b788f; }
.update-refs .ref b { color: var(--navy); font-weight: 700; }
.badge-new { display: inline-block; background: var(--orange-soft); color: #c4611a; border: 1px solid var(--orange-line); border-radius: 4px; padding: 4px 7px; margin-top: 11px; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.source-link { display: inline-block; margin-left: 4px; color: var(--navy); font-size: 10px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--navy-soft); }
.source-link:hover { border-color: var(--navy); }
.card-actions { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.analysis-button, .download-button { height: 36px; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 0 10px; }
.analysis-button { border: 0; color: #fff; background: var(--navy); }
.analysis-button:hover { background: var(--navy-dark); }
.download-button { border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; display: grid; place-items: center; }
.download-button:hover { border-color: var(--orange); color: var(--orange); }
.empty { padding: 70px 0; text-align: center; color: #7c89a3; }
.empty h3 { color: var(--navy); }

.drawer-backdrop { visibility: hidden; opacity: 0; position: fixed; inset: 0; background: rgba(11,31,69,.34); transition: .25s; z-index: 10; }
.analysis-drawer { position: fixed; top: 0; right: -640px; width: min(580px, 100%); height: 100vh; z-index: 11; padding: 34px 40px; overflow-y: auto; background: #fff; box-shadow: -8px 0 40px rgba(11,31,69,.18); transition: .32s ease; }
body.drawer-open .drawer-backdrop { visibility: visible; opacity: 1; }
body.drawer-open .analysis-drawer { right: 0; }
.drawer-close { position: absolute; right: 24px; top: 22px; border: 0; background: #eef2f8; color: var(--navy); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.analysis-drawer h2 { margin-top: 18px; font-size: 26px; line-height: 1.18; }
.drawer-authority { display: inline-block; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .5px; padding: 5px 9px; border-radius: 4px; margin-top: 14px; }
.drawer-meta { color: #7e8ba4; font-size: 11px; margin: 12px 0 22px; }
.summary-box { padding: 17px; background: var(--navy-soft); border-left: 3px solid var(--navy); color: #34466b; line-height: 1.65; font-size: 13px; border-radius: 0 8px 8px 0; }
.analysis-drawer h4 { margin: 24px 0 10px; color: var(--orange); font-size: 10px; letter-spacing: 1px; }
.analysis-drawer ul { margin: 0; padding-left: 17px; color: #54627d; font-size: 13px; line-height: 1.75; }
.impact-row { display: flex; gap: 8px; flex-wrap: wrap; }
.impact-pill { padding: 7px 10px; border-radius: 5px; color: #c4611a; background: var(--orange-soft); font-size: 11px; font-weight: 700; }
.drawer-download { display: grid; place-items: center; width: 100%; margin-top: 26px; height: 44px; border: 0; border-radius: 8px; color: #fff; background: var(--navy); font-size: 12px; font-weight: 700; text-decoration: none; }
.drawer-download:hover { background: var(--navy-dark); }

.toast { position: fixed; bottom: 26px; left: 50%; z-index: 20; transform: translate(-50%, 20px); opacity: 0; color: #fff; background: var(--navy-dark); padding: 12px 20px; border-radius: 8px; font-size: 12px; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.page-view { display: none; }
.page-view.active-view { display: block; }
.info-view { min-height: calc(100vh - 76px); }
.info-hero { padding: 40px 0 26px; max-width: 740px; }

/* Calendar */
.calendar-hero { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding: 40px 0 24px; }
.month-picker { display: flex; flex-direction: column; gap: 9px; min-width: 210px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.month-picker span { color: #7c89a3; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.month-picker select { border: 1px solid var(--line); border-radius: 6px; padding: 8px; outline: 0; color: var(--ink); background: #fff; font-weight: 700; }
.calendar-primary-download { margin-top: 4px; padding: 11px; border: 0; border-radius: 7px; color: #fff; background: var(--orange); font-size: 11px; font-weight: 700; }
.calendar-primary-download:hover { background: #e06d14; }
.calendar-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 18px; }
.calendar-stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.calendar-stat span { display: block; color: #7c89a3; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.calendar-stat strong { display: block; margin-top: 6px; color: var(--navy); font: 700 27px "Fraunces"; }
.calendar-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calendar-head { padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.calendar-head p { margin: 0; color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.calendar-head h2 { margin-top: 4px; font-size: 23px; }
.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th { padding: 12px 15px; color: #7c89a3; background: #fbfcfe; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.calendar-table td { padding: 15px; color: #59667e; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; vertical-align: top; }
.calendar-table tr:last-child td { border-bottom: 0; }
.date-cell { width: 84px; color: var(--navy) !important; font-weight: 700; }
.law-pill { display: inline-block; padding: 4px 8px; border-radius: 4px; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.calendar-note { margin: 14px 2px; color: #7c89a3; font-size: 11px; }

/* Weekly insight */
.digest-controls { display: flex; gap: 12px; align-items: center; margin: 6px 0 20px; }
.digest-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.digest-kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.digest-kpi span { display: block; color: #7c89a3; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.digest-kpi strong { display: block; margin-top: 6px; color: var(--navy); font: 700 30px "Fraunces"; }
.week-block { margin-bottom: 22px; }
.week-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.week-head h3 { margin: 0; font: 700 18px "Fraunces"; color: var(--navy); }
.week-head .gcount { font-size: 11px; font-weight: 700; color: var(--orange); background: var(--orange-soft); padding: 4px 11px; border-radius: 20px; }
.insight-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.insight-table th:nth-child(1), .insight-table td:nth-child(1) { width: 150px; }
.insight-table th:nth-child(2), .insight-table td:nth-child(2) { width: 96px; }
.insight-table th:nth-child(4), .insight-table td:nth-child(4) { width: 30%; }
.ref-cell { line-height: 1.5; }
.ref-cell .law-pill { font-size: 8px; padding: 3px 6px; margin-bottom: 5px; }
.ref-cell b { display: block; color: var(--navy); font-size: 11px; }
.ref-cell small { display: block; color: #8090a8; font-size: 10px; }
.ref-cell .ref-link { display: inline-block; margin-top: 5px; color: var(--orange); font-size: 10px; font-weight: 700; text-decoration: none; }
.ref-cell .ref-link:hover { text-decoration: underline; }
.action-cell { color: #34466b; }
.digest-empty { padding: 50px; text-align: center; color: #7c89a3; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }

.source-table-wrap, .calendar-table-wrap { overflow-x: auto; }
.status-ok { color: #1f8a5b; font-weight: 700; }
.status-bad { color: #c4521a; font-weight: 700; }

@media (max-width: 860px) {
  .topbar { padding: 0 18px; gap: 16px; } nav { display: none; }
  main { padding: 28px 16px; } h1 { font-size: 42px; } .hero { flex-direction: column; }
  .hero-card { width: 100%; } .toolbar { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; } .sidebar { padding: 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  #categoryList { display: flex; gap: 6px; overflow-x: auto; } .category { white-space: nowrap; width: auto; }
  .category .count, .sidebar-footer, .side-title { display: none; } .feed { padding: 20px 14px; }
  .update-card { grid-template-columns: 92px 1fr; } .card-actions { grid-column: 2; flex-direction: row; }
  .analysis-button, .download-button { flex: 1; }
  .calendar-hero { flex-direction: column; } .calendar-stats { grid-template-columns: repeat(2, 1fr); }
  .calendar-table { min-width: 720px; }
}
@media print {
  .topbar, .toolbar, .sidebar, .card-actions, .digest-controls, .month-picker, .status-chip { display: none !important; }
  body { background: #fff; } .page-view { display: none !important; } .page-view.active-view { display: block !important; }
  main { padding: 0; max-width: 100%; }
}

/* ===== Main-site link in header ===== */
.mainsite-link { color: var(--navy); font-size: 12px; font-weight: 700; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.mainsite-link:hover { border-color: var(--orange); color: var(--orange); }

/* ===== Free Tools ===== */
.tools-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-head h3 { margin: 0; font-family: "Fraunces", serif; font-size: 20px; color: var(--navy); }
.tool-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--orange); background: var(--orange-soft); border: 1px solid var(--orange-line); padding: 3px 9px; border-radius: 999px; }
.tool-note { margin: 8px 0 16px; color: var(--muted); font-size: 12.5px; }
.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 11px; font-weight: 700; color: var(--navy); }
.field input, .field select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { outline: 2px solid rgba(244,123,32,.25); border-color: var(--orange); }
.field.checkbox { grid-auto-flow: column; align-items: center; justify-content: start; gap: 8px; }
.field.checkbox input { width: 18px; height: 18px; }
.field.checkbox span { font-size: 13px; }
.tool-out:not(:empty) { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.out-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2f8; }
.out-row:last-child { border-bottom: 0; }
.out-row span { color: var(--muted); font-size: 13px; }
.out-row b { color: var(--navy); font-size: 15px; }
.out-row.total { margin-top: 4px; padding: 11px 12px; background: #eef4ff; border: 1px solid #dce7fb; border-radius: 9px; }
.out-row.total b { color: var(--orange); font-size: 17px; }
.out-tip { display: block; margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.out-table { display: grid; gap: 2px; }
.out-th, .out-tr { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; align-items: center; padding: 9px 10px; }
.out-th { background: var(--navy); color: #fff; border-radius: 8px 8px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.out-tr { border-bottom: 1px solid #eef2f8; font-size: 13px; color: var(--muted); }
.out-tr b { color: var(--navy); text-align: right; }
.out-flag { padding: 10px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.out-flag.good { background: #e9f9f0; color: #157347; border: 1px solid #b7e4c7; }
.out-flag.bad { background: #fdecec; color: #b02a37; border: 1px solid #f5c2c7; }
.tool-cite { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-style: italic; line-height: 1.5; }

/* ===== WhatsApp channel popup ===== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border: 0; border-radius: 50%; background: #25d366; box-shadow: 0 12px 30px rgba(37,211,102,.45); display: grid; place-items: center; cursor: pointer; transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-popup { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(320px, calc(100vw - 44px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(16,42,92,.24); padding: 18px 18px 20px; opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.wa-popup.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-popup-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.wa-popup-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.wa-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.wa-popup-head strong { display: block; color: var(--navy); font-size: 15px; }
.wa-popup-head span { color: var(--muted); font-size: 11.5px; }
.wa-popup p { margin: 0 0 14px; color: #3a4a63; font-size: 13px; line-height: 1.55; }
.wa-join { display: block; text-align: center; background: #25d366; color: #fff; font-weight: 800; text-decoration: none; padding: 11px 14px; border-radius: 10px; }
.wa-join:hover { background: #1fb457; }
.tg-join { display: block; text-align: center; background: #229ed9; color: #fff; font-weight: 800; text-decoration: none; padding: 11px 14px; border-radius: 10px; margin-top: 9px; }
.tg-join:hover { background: #1c87ba; }

/* ===== Site footer ===== */
.ce-footer { margin-top: 44px; padding: 38px 6vw 24px; background: var(--navy-dark); color: #c3cfe6; }
.ce-footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.ce-footer-brand strong { display: block; color: #fff; font-family: "Fraunces", serif; font-size: 20px; }
.ce-footer-brand p { margin: 6px 0 0; color: #9fb0d0; font-size: 12.5px; font-weight: 600; max-width: 460px; }
.ce-footer-meta { color: #8093b6 !important; }
.ce-footer-links { display: flex; flex-wrap: wrap; gap: 22px; height: auto; }
.ce-footer-links a { color: #d3ddee; font-size: 13px; font-weight: 700; text-decoration: none; }
.ce-footer-links a:hover { color: #fff; }
.ce-footer-home { color: var(--orange) !important; }
.ce-footer-home:hover { color: #ff9a52 !important; }
.ce-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #8093b6; font-size: 12px; font-weight: 600; }
.ce-footer-bottom a { color: #c3cfe6; text-decoration: none; }
.ce-footer-bottom a:hover { color: #fff; }
.ce-visitors { color: #7fe9c6; font-weight: 800; letter-spacing: .01em; }

@media (max-width: 720px) {
  .tools-wrap { grid-template-columns: 1fr; }
  .tool-form { grid-template-columns: 1fr; }
  .mainsite-link { display: none; }
}

/* Ensure the [hidden] attribute wins over .field display:grid */
.field[hidden], [hidden] { display: none !important; }
