/* ═══════════════════════════════════════════════════════════════
   Ragnabra — Theme CSS  (v2 — tighter layout, rubinot-inspired)
   Naval blue · Pastel pink accent
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg-page:          transparent;
  --bg-box:           rgba(255,255,255,0.70);
  --bg-box-inner:     rgba(214,239,255,0.50);
  --bg-box-content:   rgba(214,255,247,0.40);
  --bg-hover:         rgba(255,222,222,0.50);

  --box-header-from:  #005aec;
  --box-header-mid:   #52acf5;
  --box-header-to:    #bce4f6;
  --box-border:       #9ac4dc;
  --box-sep:          #b8dff0;

  --pink:             #c02848;
  --pink-mid:         #ffdede;
  --pink-glow:        rgba(255,222,222,0.40);

  --text:             #606060;
  --text-bright:      #333333;
  --text-muted:       #999999;
  --text-header:      #444444;

  --link:             #1a6090;
  --link-hover:       #c02848;

  --gold:             #a06010;
  --gold-light:       #c88020;

  --rarity-common:    #506070;
  --rarity-uncommon:  #0a7a1a;
  --rarity-rare:      #1a5a9a;
  --rarity-epic:      #7a10b0;
  --rarity-legendary: #a06010;

  --online:           #0a9040;

  --sidebar-w:        190px;
  --right-w:          185px;
  --radius:           4px;

  --box-inner-border: var(--box-sep);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body + background ───────────────────────────────────────── */
body {
  font-family: Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at top left,    rgba(255,222,222,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at center,      rgba(214,239,255,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right,rgba(255,222,222,0.20) 0%, transparent 55%),
    url('layout/site-bg.jpg');
  background-size: 400px 400px, cover, cover, cover, cover;
  background-position: center;
  background-attachment: fixed;
}

body::before, body::after { content: none; }

a { color: var(--link); text-decoration: none; transition: color .12s; }
a:hover { color: var(--link-hover); }
img { display: block; max-width: 100%; }

/* ── Page wrapper ────────────────────────────────────────────── */
.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

/* ── Site banner ─────────────────────────────────────────────── */
.site-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  overflow: visible;
}

.site-logo-wrap {
  display: inline-block;
  position: relative;
  height: 170px;
  width: 340px;
}
.site-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(240,250,255,0.95) 0%, rgba(180,220,255,0.7) 30%, rgba(120,190,255,0.3) 60%, transparent 80%);
  filter: blur(18px);
  z-index: 9;
}
.site-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 260px;
  width: auto;
  z-index: 10;
  filter: none;
}

/* Decorative line under the logo */
.logo-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--box-border), var(--pink-mid), var(--box-border), transparent);
  margin: 4px auto 0;
  width: 260px;
}

.banner-left, .banner-right {
  flex: 1;
  display: flex; align-items: center; gap: 5px;
}
.banner-right { flex-direction: column; align-items: flex-end; justify-content: center; }

/* ── Status pill ─────────────────────────────────────────────── */
.status-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--box-border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px; font-weight: 600;
  color: var(--text-bright);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 5px var(--online);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: all .13s; text-decoration: none;
}
.btn-primary {
  background: #d6efff;
  border-color: #9ac4dc; color: var(--text-header);
}
.btn-primary:hover {
  background: #b8dcf8;
  color: var(--text-bright); border-color: #6aaac8;
}
.btn-pink {
  background: #ffdede;
  border-color: #e0a0a8; color: var(--pink);
}
.btn-pink:hover { background: #ffc8c8; color: #8a1030; }
.btn-sm    { padding: 3px 9px; font-size: 9px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Top nav ─────────────────────────────────────────────────── */
.top-nav {
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
nav.top-nav .page-wrap {
  background: linear-gradient(135deg, transparent 0%, var(--box-header-mid) 20%, var(--box-header-mid) 80%, transparent 100%);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.top-nav-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 0 8px;
}
.top-nav a, .topnav-tab {
  color: var(--text-bright);
  font-size: 10px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 7px 13px;
  border-bottom: 2px solid transparent;
  transition: all .12s;
  cursor: pointer;
  user-select: none;
}
.top-nav a:hover, .top-nav a.active,
.topnav-tab:hover, .topnav-tab.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
  background: rgba(255,222,222,0.25);
}

/* ── Three-column layout ─────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--right-w);
  gap: 6px;          /* small gap between columns */
  align-items: start;
  position: relative; z-index: 1;
}

/* ── Sidebar column: boxes stack with NO gap ─────────────────── */
.sidebar-left  { display: flex; flex-direction: column; gap: 4px; }
.sidebar-right { display: flex; flex-direction: column; }

/* ── Left sidebar action buttons ────────────────────────────── */
.sidebar-actions {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 6px;
}
.sidebar-actions .btn { justify-content: center; font-size: 10px; padding: 6px 10px; }

/* ── MenuBox ─────────────────────────────────────────────────── */
.menu-box {
  background: var(--bg-box);
  border: 1px solid var(--box-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.menu-box-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px;
  background: linear-gradient(135deg, var(--box-header-from) 0%, var(--box-header-mid) 31.25%, var(--box-header-mid) 68.75%, var(--box-header-to) 100%);
  cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--box-sep);
}
.menu-box-header h3 {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-header);
}
.menu-box-header .chevron { color: var(--text-muted); font-size: 9px; transition: transform .18s; }
.menu-box.collapsed .chevron { transform: rotate(-90deg); }
.menu-box.collapsed .menu-box-body { display: none; }

.menu-box-body { padding: 2px 0; }

.menu-box-body a {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  color: var(--text); font-size: 11px;
  transition: all .1s;
  border-left: 2px solid transparent;
  line-height: 1.3;
}
.menu-box-body a:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
  border-left-color: var(--pink-mid);
}
.menu-box-body a.active {
  background: var(--pink-glow);
  color: var(--pink);
  border-left-color: var(--pink-mid);
}
.menu-box-body .icon { width: 12px; text-align: center; color: var(--text-muted); font-size: 10px; }
.menu-box-body a:hover .icon,
.menu-box-body a.active .icon { color: var(--pink-mid); }

/* Badges */
.menu-badge {
  margin-left: auto; font-size: 8px; font-weight: 700;
  padding: 1px 4px; border-radius: 2px; letter-spacing: .3px;
}
.badge-new  { background:#d6fff7; color:#0a7a1a; border:1px solid #88d8b0; }
.badge-hot  { background:#ffdede; color:#b03020; border:1px solid #e0a090; }
.badge-pink { background:#ffdede; color:var(--pink); border:1px solid #e0a0a8; }

/* ── Content box (main + right sidebar panels) ───────────────── */
.content-box {
  background: var(--bg-box);
  border: 1px solid var(--box-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Stacked boxes inside <main> share borders and flatten inner corners */
main .content-box             { border-radius: 0; border-top: none; }
main .content-box:first-child { border-top: 1px solid var(--box-border); border-radius: var(--radius) var(--radius) 0 0; }
main .content-box:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
main .content-box:only-child  { border-radius: var(--radius); }

/* Standalone boxes (not stacked) keep full border */
.content-box.standalone {
  border: 1px solid var(--box-border);
  border-radius: var(--radius);
}

.content-box-header {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--box-header-from) 0%, var(--box-header-mid) 31.25%, var(--box-header-mid) 68.75%, var(--box-header-to) 100%);
  border-bottom: 1px solid var(--box-sep);
}
.content-box-header h2 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-header);
}
.content-box-header .header-icon { color: var(--pink-mid); font-size: 11px; }
.content-box-body { padding: 10px; }

/* ── Main content stacking (no gaps) ────────────────────────── */
main { display: flex; flex-direction: column; }

main .content-box-header {
  background: linear-gradient(135deg, #005aec 0%, #52acf5 50%, #bce4f6 100%);
}

/* ── News items ──────────────────────────────────────────────── */
.news-item {
  padding: 9px 10px;
  border-bottom: 1px solid var(--box-sep);
}
.news-item:last-child { border-bottom: none; }

.news-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.news-category {
  font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 1px 5px; border-radius: 2px;
  background: #ffdede; color: var(--pink); border: 1px solid #e0a0a8;
}
.news-date { font-size: 10px; color: var(--text-muted); }

.news-title { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 4px; line-height: 1.35; }
.news-title a:hover { color: var(--pink); }
.news-excerpt { font-size: 11px; color: var(--text); line-height: 1.55; }

/* ── Right sidebar: same stacking, no gaps ───────────────────── */
.server-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px; border-bottom: 1px solid var(--box-sep);
  font-size: 11px;
}
.server-stat:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); }
.stat-value { color: var(--text-bright); font-weight: 600; }
.stat-value.online { color: var(--online); }

.top-player {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-bottom: 1px solid var(--box-sep); font-size: 11px;
}
.top-player:last-child { border-bottom: none; }
.top-rank { width: 16px; text-align: center; font-weight: 700; color: var(--text-muted); font-size: 10px; }
.top-rank.gold { color: var(--gold); }
.top-player-name { flex: 1; color: var(--link); }
.top-player-level { color: var(--text-muted); font-size: 10px; }

/* Quick action buttons in right sidebar */
.quick-actions {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--box-border); border-radius: var(--radius); overflow: hidden;
}
.quick-actions .btn {
  border-radius: 0; border: none;
  border-bottom: 1px solid var(--box-sep);
  padding: 7px 10px; font-size: 10px;
}
.quick-actions .btn:last-child { border-bottom: none; }

/* ── Cards catalog ───────────────────────────────────────────── */
.cards-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px;
  background: var(--bg-box-inner);
  border-bottom: 1px solid var(--box-sep);
}
.filter-input, .filter-select {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--box-border);
  border-radius: 3px;
  color: var(--text-bright);
  padding: 4px 8px; font-size: 11px; outline: none;
  transition: border-color .12s;
}
.filter-input:focus, .filter-select:focus { border-color: var(--pink-mid); }
.filter-input { min-width: 130px; }
.filter-select { cursor: pointer; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0;
}

.card-tile {
  background: var(--bg-box-inner);
  border-right: 1px solid var(--box-sep);
  border-bottom: 1px solid var(--box-sep);
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
  text-decoration: none; display: block;
}
.card-tile:hover {
  background: var(--bg-hover);
  box-shadow: inset 0 0 0 1px var(--pink-mid);
  z-index: 1; position: relative;
  color: inherit;
}

.card-tile-img {
  width: 100%; height: 90px;
  background: linear-gradient(135deg, #d6efff 0%, #d6fff7 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  border-bottom: 1px solid var(--box-sep);
}

.card-tile-body { padding: 6px 7px; }

.card-rarity {
  display: inline-block; font-size: 8px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 1px 5px; border-radius: 2px; margin-bottom: 4px;
}
.rarity-common    { background:rgba(214,239,255,0.6); color:var(--rarity-common);    border:1px solid #9ac4dc; }
.rarity-uncommon  { background:rgba(214,255,247,0.7); color:var(--rarity-uncommon);  border:1px solid #80d8a8; }
.rarity-rare      { background:rgba(214,239,255,0.7); color:var(--rarity-rare);      border:1px solid #7ab0d8; }
.rarity-epic      { background:rgba(240,220,255,0.6); color:var(--rarity-epic);      border:1px solid #c090e0; }
.rarity-legendary { background:rgba(255,240,200,0.6); color:var(--rarity-legendary); border:1px solid #d0a040; }

.card-tile-name    { font-size: 11px; font-weight: 600; color: var(--text-bright); margin-bottom: 2px; line-height: 1.3; }
.card-tile-monster { font-size: 10px; color: var(--text-muted); margin-bottom: 3px; }
.card-tile-effect  {
  font-size: 10px; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Card detail ─────────────────────────────────────────────── */
.card-detail-layout {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 14px; padding: 12px;
}
.card-art-box {
  background: linear-gradient(135deg, #d6efff, #d6fff7);
  border: 1px solid var(--box-sep);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; font-size: 72px;
}
.card-info h1 { font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 6px; }
.card-detail-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 8px 0;
}
.detail-stat {
  background: var(--bg-box-inner); border: 1px solid var(--box-sep);
  border-radius: 3px; padding: 5px 8px;
}
.detail-stat-label { font-size: 8px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.detail-stat-value { font-size: 12px; font-weight: 600; color: var(--text-bright); }

.card-effect-box {
  background: var(--bg-box-inner);
  border: 1px solid var(--box-sep);
  border-left: 3px solid var(--pink-mid);
  border-radius: 3px; padding: 8px 10px; margin-top: 8px;
}
.card-effect-label { font-size: 8px; text-transform: uppercase; letter-spacing: .5px; color: var(--pink-mid); margin-bottom: 4px; font-weight: 700; }
.card-effect-text  { font-size: 12px; line-height: 1.6; color: var(--text-bright); }
.card-lore { font-size: 10px; font-style: italic; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }

/* ── Collection ──────────────────────────────────────────────── */
.collection-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 10px;
  background: var(--bg-box-inner); border-bottom: 1px solid var(--box-sep);
}
.progress-bar-wrap {
  flex: 1; min-width: 120px;
  background: rgba(255,255,255,0.6); border: 1px solid var(--box-border);
  border-radius: 20px; height: 8px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffdede, #d6efff);
  border-radius: 20px;
}
.progress-label { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.progress-pct   { font-weight: 700; color: var(--pink-mid); }

.card-tile.locked  { filter: saturate(0) brightness(.55); opacity: .5; }
.card-tile.locked:hover { background: var(--bg-box-inner); box-shadow: none; }
.card-tile.owned   { box-shadow: inset 0 0 0 1px var(--pink-mid); }
.card-tile.owned .card-tile-name { color: var(--pink); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  background: linear-gradient(135deg, #1a4d1a 0%, #2e7d2e 30%, #3a9e3a 60%, #4db84d 80%, #2e7d2e 100%);
  border-top: 2px solid #1a4d1a;
  padding: 9px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px; padding: 0 8px;
}
.footer-links { display: flex; gap: 12px; }
.footer-links a { font-size: 10px; color: #c8f0c8; font-weight: 600; }
.footer-links a:hover { color: #ffffff; text-shadow: 0 0 6px rgba(255,255,255,0.5); }
.footer-copy { font-size: 10px; color: #c8f0c8; font-weight: 600; flex: 1; text-align: center; }

/* ── Table ───────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th {
  text-align: left; padding: 5px 8px;
  border-bottom: 1px solid var(--box-border);
  font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted);
}
.data-table td { padding: 5px 8px; border-bottom: 1px solid var(--box-sep); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-body { padding: 0; }

.form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--box-sep);
  gap: 8px;
}
.form-row:last-child { border-bottom: none; }

.form-label {
  padding-top: 5px;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px;
  line-height: 1.4;
}
.form-label .required { color: var(--pink); margin-left: 2px; }

.form-field { display: flex; flex-direction: column; gap: 3px; }

.form-input, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--box-border);
  border-radius: 3px;
  color: var(--text-bright);
  padding: 5px 8px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.form-input:focus, .form-select:focus {
  border-color: #52acf5;
  box-shadow: 0 0 0 2px rgba(82,172,245,0.15);
}
.form-input.error, .form-select.error {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(192,40,72,0.10);
}
.form-select { cursor: pointer; }

.form-hint {
  font-size: 9px; color: var(--text-muted); line-height: 1.4;
}
.form-error-msg {
  font-size: 10px; color: var(--pink); font-weight: 600; display: none;
}
.form-error-msg.visible { display: block; }

.form-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 10px;
  background: var(--bg-box-inner);
  border-top: 1px solid var(--box-sep);
}

.form-notice {
  background: var(--bg-box-inner);
  border: 1px solid var(--box-sep);
  border-left: 3px solid #52acf5;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 11px; color: var(--text); line-height: 1.5;
  margin: 10px;
}
.form-notice strong { color: var(--text-bright); }

.form-success {
  background: rgba(214,255,247,0.6);
  border: 1px solid #80d8a8;
  border-left: 3px solid #0a7a1a;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 11px; color: #0a5a14; line-height: 1.5;
  margin: 10px; display: none;
}
.form-success.visible { display: block; }

/* ── Utility ─────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--box-sep); margin: 6px 0; }
.text-muted { color: var(--text-muted); }
.text-pink  { color: var(--pink-mid); }
.text-gold  { color: var(--gold); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #9ac4dc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ── MyAAC generated content ─────────────────────────────────── */

/* Paragraphs and headings inside content area */
.content-box-body p { font-size: 12px; line-height: 1.6; color: var(--text); margin-bottom: 8px; }
.content-box-body p:last-child { margin-bottom: 0; }
.content-box-body h3, .content-box-body h4 {
  font-size: 11px; font-weight: 700; color: var(--text-bright);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 10px 0 4px;
}

/* Generic tables (news, highscores, characters, etc.) */
.content-box-body table { width: 100%; border-collapse: collapse; font-size: 11px; }
.content-box-body table th {
  text-align: left; padding: 5px 8px;
  background: linear-gradient(135deg, var(--box-header-from) 0%, var(--box-header-mid) 31.25%, var(--box-header-mid) 68.75%, var(--box-header-to) 100%);
  border-bottom: 1px solid var(--box-border);
  font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-header);
  font-weight: 700;
}
.content-box-body table td {
  padding: 5px 8px; border-bottom: 1px solid var(--box-sep);
  color: var(--text);
}
.content-box-body table tr:last-child td { border-bottom: none; }
.content-box-body table tr:hover td { background: var(--bg-hover); }
.content-box-body table a { color: var(--link); }
.content-box-body table a:hover { color: var(--link-hover); }

/* MyAAC TableContainer / TableContent classes (older versions) */
.TableContainer, .TableContent, .InnerTableContainer { width: 100%; }
.TableContent td, .InnerTableContainer td {
  padding: 4px 8px; border-bottom: 1px solid var(--box-sep);
  font-size: 11px; color: var(--text);
}
.TableContent tr.TableRow2 td { background: var(--bg-box-inner); }

/* Forms inside content area */
.content-box-body input[type="text"],
.content-box-body input[type="password"],
.content-box-body input[type="email"],
.content-box-body select,
.content-box-body textarea {
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--box-border);
  border-radius: 3px;
  color: var(--text-bright);
  padding: 5px 8px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
}
.content-box-body input[type="text"]:focus,
.content-box-body input[type="password"]:focus,
.content-box-body input[type="email"]:focus,
.content-box-body select:focus,
.content-box-body textarea:focus {
  border-color: #52acf5;
  box-shadow: 0 0 0 2px rgba(82,172,245,0.15);
}
.content-box-body input[type="submit"],
.content-box-body button[type="submit"] {
  background: #d6efff;
  border: 1px solid #9ac4dc;
  border-radius: var(--radius);
  color: var(--text-header);
  padding: 5px 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer;
  transition: background .13s;
}
.content-box-body input[type="submit"]:hover,
.content-box-body button[type="submit"]:hover { background: #b8dcf8; }

/* News list (MyAAC default news output) */
.content-box-body .NewsHeadline { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 4px; }
.content-box-body .NewsHeadline a:hover { color: var(--pink); }
.content-box-body .NewsBody { font-size: 11px; line-height: 1.55; color: var(--text); }
.content-box-body .NewsDate { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }

/* Error / success messages */
.content-box-body .TableError   { color: var(--pink); font-size: 11px; font-weight: 600; padding: 4px 0; }
.content-box-body .TableSuccess { color: #0a7a1a;      font-size: 11px; font-weight: 600; padding: 4px 0; }

/* Horizontal rule */
.content-box-body hr { border: none; border-top: 1px solid var(--box-sep); margin: 8px 0; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
  .banner-left, .banner-right { position: static; transform: none; }
  .site-banner { flex-direction: column; gap: 8px; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .card-detail-layout { grid-template-columns: 1fr; }
}
