/* Kissee Inspection Services SEO / AEO report pages. Ported from the North Central Utility / SafeSpace report set.
   Kissee tokens only: dark blue rooms, gold as the accent, paper grounds. Status colors are functional. */
.rpt { --brand: #1a1f6e; --brand-2: #002ebe; --accent: #FECB38; --ink: #0f1631; --paper: #f5f7fc; --line: #e0e6f4; --slate: #5a6478; --mist: #eef1f8; }
.rpt { background: var(--paper); color: var(--ink); padding-bottom: 80px; font-size: 1rem; font-weight: 400; line-height: 1.55; }
.rpt p { margin: 0 0 12px; }
.rpt a { color: var(--brand); font-weight: 500; }
.rpt .wrap-r { width: min(100% - 56px, 1240px); margin-inline: auto; }
.rpt h1, .rpt h2, .rpt h3 { letter-spacing: -.015em; }
.rpt-hero { position: relative; background: var(--brand); color: rgba(255,255,255,.86); padding: 64px 0 48px; overflow: hidden; }
.rpt-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 460px at 88% 0%, rgba(0,46,190,.45), transparent 60%); pointer-events: none; }
.rpt-hero > .wrap-r { position: relative; z-index: 1; }
.rpt-kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.rpt-kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.rpt-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.02; margin: 0 0 16px; max-width: 20ch; }
.rpt-hero .lede { overflow-wrap: anywhere; max-width: 780px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 300; color: rgba(255,255,255,.9); margin: 0 0 20px; }
.rpt-meta { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0 0 22px; }
.rpt-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rpt-nav li { margin: 0; }
.rpt-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 60px; color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.rpt-nav a:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.rpt-nav a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--brand); }
.rpt-sub { margin: 14px 0 0; font-size: .86rem; color: rgba(255,255,255,.7); }
.rpt-sub a { color: #fff; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.score { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 18px 18px 16px; }
.score h2 { color: #fff; font-size: 1.05rem; letter-spacing: .01em; margin: 0 0 12px; }
.score .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.score label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.score .num { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.score .num span { font-size: .5em; opacity: .7; font-weight: 500; }
.score .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 8px; overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 99px; }
.score .bar.live i { background: rgba(255,255,255,.55); }
.score .bar.proto i { background: var(--accent); }
.score .note { margin: 10px 0 0; font-size: .78rem; color: rgba(255,255,255,.65); }
.legend { margin: 18px 0 0; font-size: .88rem; color: rgba(255,255,255,.75); max-width: 900px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 28px 30px; margin-top: 28px; overflow-wrap: anywhere; }
.card h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 0 0 14px; }
.card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.card ul { padding-left: 1.2rem; margin: 0 0 8px; }
.card li { margin: 0 0 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pass { background: #e6f4ec; color: #1d6b3c; }
.badge.warn, .badge.opportunity { background: #fff3dc; color: #7a4d06; }
.badge.gap { background: #fde9e7; color: #a4221a; }
.badge.unknown { background: var(--mist); color: #4a4a4a; }
.badge.opp_nv { background: #fff3dc; color: #7a4d06; border: 1px dashed #c98a2a; }
.badge.not_measured { background: var(--mist); color: #4a4a4a; border: 1px dashed #999; }
.pri { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px 3px; border-radius: 3px; }
.pri.High { background: var(--brand); color: #fff; }
.pri.Med { background: #d6e9f5; color: var(--brand); }
.pri.Low { background: var(--mist); color: #3a3a3a; }
.owner { font-size: .78rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.src { font-size: .8rem; color: var(--slate); }
.tbl-wrap { overflow-x: auto; }
table.rt { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.rt th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); padding: 10px 12px; border-bottom: 2px solid var(--brand); background: var(--paper); }
table.rt td { vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
table.rt td p { margin: 0 0 6px; }
.group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 44px 0 0; }
.group-h h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0; }
.group-h span { color: var(--slate); font-size: .95rem; }
.dark-band { background: var(--brand); padding: 6px 24px 26px; margin-top: 28px; border-radius: 6px; }
ol.big { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 16px; }
ol.big li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; }
ol.big li::before { content: counter(n, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--brand); font-weight: 600; font-size: .8rem; letter-spacing: .06em; }
ol.big strong { display: block; color: var(--brand); font-size: 1.05rem; font-weight: 600; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.disclaimer { margin-top: 32px; font-size: .88rem; color: var(--slate); border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.disclaimer p { margin: 0 0 6px; }
.excl { margin: 0 0 14px; }
.qa { border-top: 1px solid var(--line); padding: 16px 0; }
.qa:first-of-type { border-top: 0; }
.qa .q { font-weight: 600; color: var(--brand); margin: 0 0 4px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 4px; }
.stat { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: var(--paper); }
.stat .n { font-size: 1.7rem; font-weight: 700; color: var(--brand); line-height: 1.05; }
.stat .l { font-size: .9rem; font-weight: 600; margin-top: 4px; }
.stat .d { font-size: .8rem; color: var(--slate); margin-top: 4px; }
/* Compare controls */
.controls { position: static; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.04); padding: 12px 0; }
.controls .row-c { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pills, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill, .chip { border: 1px solid rgba(28,28,28,.22); background: #fff; color: var(--ink); border-radius: 99px; padding: 8px 15px 7px; font: 600 .86rem 'Open Sans', system-ui, sans-serif; cursor: pointer; }
.pill:hover, .chip:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-c { flex: 1 1 220px; min-width: 0; }
.search-c input { width: 100%; height: 42px; border: 1px solid rgba(28,28,28,.22); border-radius: 60px; padding: 0 16px; font: 400 .95rem 'Open Sans', system-ui, sans-serif; background: var(--paper); }
.search-c input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.thead { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 16px; padding: 20px 20px 8px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.rows { display: grid; gap: 10px; }
.crow { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.crow:hover { border-color: rgba(0,46,190,.35); }
.crow.hidden { display: none; }
.crow-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 16px; padding: 16px 20px; cursor: pointer; align-items: start; }
.crow-main > * { min-width: 0; overflow-wrap: anywhere; }
.crow .topic { font-weight: 600; color: var(--brand); font-size: 1.02rem; }
.crow .topic small { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.crow .topic small::before { content: ""; width: 16px; height: 1px; background: var(--accent); flex: none; }
.crow .st { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: .9rem; color: #3a3a3a; }
.crow .st .lbl { display: none; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.crow .prev { font-size: .92rem; color: var(--ink); }
.crow .prev em { font-style: normal; font-weight: 600; color: var(--brand); font-size: .8rem; white-space: nowrap; }
.crow details { border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 6px 6px; }
.crow summary { list-style: none; cursor: pointer; padding: 10px 20px; font-size: .86rem; font-weight: 600; color: var(--brand); }
.crow summary::-webkit-details-marker { display: none; }
.crow summary::after { content: " +"; color: var(--accent); }
.crow details[open] summary::after { content: " -"; }
.crow .why { padding: 0 20px 16px; font-size: .95rem; }
.mode-live .col-proto, .mode-proto .col-live { display: none !important; }
.mode-live .crow-main, .mode-proto .crow-main, .mode-live .thead, .mode-proto .thead { grid-template-columns: 1.3fr 1.2fr 1.8fr; }
.empty { text-align: center; padding: 32px; background: #fff; border: 1px dashed rgba(28,28,28,.25); border-radius: 6px; color: var(--slate); }
.empty.hidden { display: none; }
.count-line { margin: 16px 0 0; font-size: .88rem; color: var(--slate); }
@media (max-width: 960px) {
  .scores { grid-template-columns: 1fr; }
  .thead { display: none; }
  .crow-main, .mode-live .crow-main, .mode-proto .crow-main { grid-template-columns: 1fr; gap: 10px; }
  .crow .st .lbl { display: block; }
  .two { grid-template-columns: 1fr; }
  .controls { position: static; }
}
@media (max-width: 720px) {
  .rpt .wrap-r { width: min(100% - 40px, 1240px); }
  .rpt-hero { padding: 40px 0 32px; }
  .card { padding: 20px; }
  .dark-band { padding: 4px 16px 20px; }
  table.rt { font-size: .92rem; }
  table.rt.stack thead { display: none; }
  table.rt.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.rt.stack td { display: block; border: 0; padding: 6px 0; }
  table.rt.stack td[data-l]::before { content: attr(data-l); display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
}
@media print {
  .controls, #proto-banner, #proto-perf-modal, #site-header, #site-footer, .mobile-cta-bar, #scroll-top { display: none !important; }
  .rpt-hero { padding-top: 32px; }
  .crow.hidden { display: block !important; }
  .crow details { display: block; }
}


/* Kissee additions */
.rpt { font-family: 'Open Sans', system-ui, sans-serif; }
.rpt h1, .rpt h2, .rpt h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--brand); line-height: 1.15; }
.rpt-hero h1, .score h2 { color: #fff; }
.rpt-hero { background: linear-gradient(135deg, #1a1f6e 0%, #243e90 100%); padding: 212px 0 48px; }
.rpt-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, #FECB38 35%, #FECB38 65%, transparent 100%); opacity: .7; }
.dark-band { background: linear-gradient(135deg, #1a1f6e 0%, #243e90 100%); }
.score .bar.proto i { background: #FECB38; }
.pri.Med { background: #dfe7ff; color: #1a1f6e; }
.chip.active { background: #002ebe; border-color: #002ebe; }
.card { border-radius: 14px; box-shadow: 0 0 60px rgba(26,31,110,.06); }
.crow, .stat, .score, .empty { border-radius: 12px; }
.rpt a:focus-visible, .rpt button:focus-visible { outline: 3px solid #002ebe; outline-offset: 2px; }
.rpt-hero a:focus-visible { outline-color: #FECB38; }
.rpt .src { overflow-wrap: anywhere; }
.rpt code { font-size: .88em; background: var(--mist); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.flag { border-left: 4px solid #FECB38; background: #fffaf0; }
@media (max-width: 720px) { .rpt .wrap-r { width: min(100% - 32px, 1240px); } .rpt-hero { padding: 176px 0 32px; } .rpt-nav a { min-height: 40px; padding: 0 14px; font-size: .72rem; } }
/* Phones (incl. landscape): report body copy at 16px (sources 14px) */
@media (max-width: 720px), (max-height: 500px) {
  table.rt, .crow .st, .crow .prev, .crow .why, .disclaimer { font-size: 1rem; }
  .src { font-size: .875rem; }
}
/* Touch layouts: 48px tap targets on report nav, filter pills / chips, search and row expanders */
@media (max-width: 900px) {
  .rpt-nav a { min-height: 48px; }
  .pill, .chip { min-height: 48px; }
  .search-c input { height: 48px; }
  .crow summary { display: flex; align-items: center; min-height: 48px; padding-top: 0; padding-bottom: 0; }
}
