/* =========================================================================
   Mising Anu Lutad — News Portal design system
   Crimson red + gold, professional editorial layout
   ========================================================================= */

:root {
  --brand:       #C62828;
  --brand-dark:  #9B1C1C;
  --brand-deep:  #6D1212;
  --brand-soft:  #FDE8E8;
  --gold:        #FFB300;
  --gold-soft:   #FFF3CD;

  --red:         #D32F2F;
  --red-hover:   #B71C1C;

  --ink:    #111827;
  --ink-2:  #374151;
  --muted:  #6B7280;
  --line:   #E5E7EB;
  --line-2: #F3F4F6;
  --bg:     #F9FAFB;
  --card:   #FFFFFF;

  --ok:   #15803D;
  --warn: #B45309;
  --bad:  #B91C1C;
  --blue: #1D4ED8;

  --radius:   10px;
  --radius-sm: 7px;
  --shadow:   0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg:0 16px 40px rgba(92,10,10,.14);
  --grad:     linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  --grad-gold:linear-gradient(135deg, var(--gold) 0%, #C98A00 100%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: .86em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 999; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--brand-deep); color: #fff; font-size: .78rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-date { opacity: .85; }
.topbar-links { display: flex; gap: 14px; }
.topbar-links a { color: #fff; opacity: .85; }
.topbar-links a:hover { opacity: 1; }

/* ---------------- Header ---------------- */
.site-header { background: #fff; border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; letter-spacing: .5px; flex-shrink: 0; }
.brand-text strong { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.1; color: var(--brand); font-family: var(--font-serif); }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.header-search { flex: 1; max-width: 420px; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--line-2); }
.header-search input { flex: 1; border: 0; background: transparent; padding: 8px 16px; font-size: .9rem; outline: none; }
.header-search button { border: 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; }
.pub-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

.main-nav { background: var(--brand); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; padding: 0 20px; }
.main-nav a { color: #fff; padding: 11px 14px; font-size: .85rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; transition: background .15s; }
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main-nav a.active { background: rgba(0,0,0,.18); border-bottom-color: var(--gold); }
.accent-bar { height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }

.pub-overlay { display: none; }

/* ---------------- Hero / breaking ---------------- */
.breaking-bar { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 12px; padding: 8px 20px; font-size: .85rem; font-weight: 600; }
.breaking-label { background: #fff; color: var(--brand); padding: 2px 10px; border-radius: 4px; font-weight: 800; font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; flex-shrink: 0; }
.breaking-track { flex: 1; overflow: hidden; white-space: nowrap; }
.breaking-track span { display: inline-block; animation: tickerMove 40s linear infinite; padding-left: 100%; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 24px 0; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; min-height: 420px; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-main .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%); }
.hero-main .hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; color: #fff; }
.hero-main .hero-cat { display: inline-block; background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.hero-main h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 10px; color: #fff; }
.hero-main p { font-size: .95rem; opacity: .9; margin: 0 0 12px; max-width: 640px; }
.hero-main .hero-meta { font-size: .78rem; opacity: .8; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; gap: 12px; padding: 10px; }
.hero-side-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.hero-side-card .hs-body h3 { font-size: .92rem; margin: 0 0 4px; line-height: 1.3; }
.hero-side-card .hs-body .hs-meta { font-size: .72rem; color: var(--muted); }

/* ---------------- Section heads ---------------- */
.section { padding: 32px 0; }
.section--alt { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand); margin-bottom: 4px; }
.sec-head h2 { font-family: var(--font-serif); font-size: 1.6rem; margin: 0; color: var(--ink); }
.sec-head p { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }

/* ---------------- News cards ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .nc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--line-2); }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .nc-img img { transform: scale(1.05); }
.news-card .nc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.news-card .nc-cat { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--brand); margin-bottom: 6px; }
.news-card h3 { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3; margin: 0 0 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }
.news-card .nc-excerpt { font-size: .86rem; color: var(--ink-2); margin: 0 0 10px; flex: 1; }
.news-card .nc-meta { font-size: .72rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* list style cards */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-item { display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.news-list-item img { width: 120px; height: 84px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-list-item .nli-body h3 { font-size: .95rem; margin: 0 0 4px; line-height: 1.3; }
.news-list-item .nli-body h3 a { color: var(--ink); }
.news-list-item .nli-body .nli-meta { font-size: .72rem; color: var(--muted); }

/* ---------------- Sidebar ---------------- */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.sidebar-box { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-box h4 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.trending-list { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.trending-list li { counter-increment: t; padding: 10px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; }
.trending-list li:last-child { border-bottom: 0; }
.trending-list li::before { content: counter(t); font-family: var(--font-serif); font-size: 1.4rem; font-weight: 900; color: var(--brand-soft); min-width: 24px; line-height: 1; }
.trending-list li a { font-size: .88rem; color: var(--ink); line-height: 1.3; }
.trending-list li a:hover { color: var(--brand); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { background: var(--line-2); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.cat-chip:hover { background: var(--brand); color: #fff; }

/* ---------------- Article page ---------------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-head { margin-bottom: 20px; }
.article-cat { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; }
.article-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.article-meta .author { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.article-meta .author-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.article-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-featured-img img { width: 100%; }
.article-content { font-size: 1.05rem; line-height: 1.75; }
.article-content p { margin: 0 0 16px; }
.article-content h2, .article-content h3 { font-family: var(--font-serif); margin: 24px 0 10px; }
.article-content img { border-radius: var(--radius); margin: 16px 0; }
.article-content blockquote { border-left: 4px solid var(--brand); padding: 8px 16px; margin: 16px 0; background: var(--brand-soft); font-style: italic; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag { background: var(--line-2); color: var(--ink-2); padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.tag:hover { background: var(--brand); color: #fff; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.share-btn { padding: 8px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: #fff; background: var(--ink-2); }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }

/* comments */
.comments-section { margin-top: 40px; }
.comment { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment .c-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.comment .c-name { font-weight: 700; color: var(--ink); }
.comment .c-body { font-size: .92rem; }

.comment-form { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 20px; }
.comment-form h4 { margin: 0 0 14px; font-family: var(--font-serif); }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: .88rem; border: 0; cursor: pointer; transition: background .15s, transform .1s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--brand); color: #fff; }
.btn--red:hover { background: var(--brand-dark); color: #fff; }
.btn--gold { background: var(--gold); color: #1A1A1A; }
.btn--gold:hover { background: #E09A00; color: #1A1A1A; }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--sm { padding: 6px 12px; font-size: .78rem; }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { background: #991B1B; color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Alerts ---------------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .88rem; }
.alert--ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert--warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert--bad { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert--info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-x { background: none; border: 0; cursor: pointer; font-size: 1.1rem; margin-left: auto; color: inherit; opacity: .6; }

/* ---------------- Admin panel ---------------- */
.panel-shell { background: var(--bg); }
.accent-bar { height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }
.panel-layout { display: flex; min-height: 100vh; }
.panel-overlay { display: none; }
.sidebar { width: 260px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.sidebar-logo { width: 38px; height: 38px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.sidebar-logo--text { font-size: .85rem; }
.sidebar-brand strong { display: block; font-size: .95rem; color: var(--brand); }
.sidebar-brand small { font-size: .72rem; color: var(--muted); }
.sidebar-x { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; margin-left: auto; }
.side-nav { padding: 10px 8px; flex: 1; }
.side-group { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 14px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 500; margin-bottom: 2px; }
.side-link:hover { background: var(--line-2); color: var(--ink); }
.side-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.side-ic { width: 20px; text-align: center; }
.side-count { margin-left: auto; background: var(--line-2); color: var(--muted); font-size: .7rem; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.side-link.is-active .side-count { background: var(--brand); color: #fff; }
.side-link--out { color: var(--bad); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.who-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.who-txt strong { display: block; font-size: .85rem; }
.who-txt small { font-size: .72rem; color: var(--muted); }
.panel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.panel-top { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.panel-top-title h1 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.panel-top-title p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.panel-top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.panel-body { padding: 24px; flex: 1; }
.panel-actions { margin-bottom: 16px; }
.panel-foot { padding: 12px 24px; border-top: 1px solid var(--line); background: #fff; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.data th { background: var(--line-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); }
table.data tr:hover td { background: var(--bg); }
table.data td .actions { display: flex; gap: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.b-ok { background: #ECFDF5; color: #065F46; }
.b-info { background: #EFF6FF; color: #1E40AF; }
.b-warn { background: #FFFBEB; color: #92400E; }
.b-bad { background: #FEF2F2; color: #991B1B; }
.b-mute { background: var(--line-2); color: var(--muted); }

/* ---------------- Cards / panels ---------------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-body { padding: 18px; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 1.8rem; font-weight: 900; color: var(--brand); font-family: var(--font-serif); }
.stat-card .label { font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ---------------- Pagination ---------------- */
.pager { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pg, .pg-n { padding: 7px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.pg:hover, .pg-n:hover { background: var(--brand-soft); color: var(--brand); }
.pg.is-off { opacity: .4; pointer-events: none; }
.pg-n.is-cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-nums { display: flex; gap: 4px; }
.pg-ellipsis { padding: 7px 4px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-foot { background: var(--brand-deep); color: #fff; padding: 40px 0 0; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand strong { display: block; font-size: 1.1rem; color: #fff; }
.foot-brand small { font-size: .75rem; opacity: .7; }
.brand-mark--foot { background: var(--gold); color: var(--brand-deep); }
.foot-about { font-size: .85rem; opacity: .8; line-height: 1.6; }
.foot-social { display: flex; gap: 12px; margin-top: 10px; }
.foot-social a { color: #fff; opacity: .8; font-size: .8rem; }
.foot-social a:hover { opacity: 1; }
.site-foot h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; color: var(--gold); }
.site-foot a { display: block; color: #fff; opacity: .75; font-size: .85rem; padding: 3px 0; }
.site-foot a:hover { opacity: 1; color: var(--gold); }
.foot-addr { font-size: .8rem; opacity: .7; margin-top: 6px; }
.foot-bar { background: rgba(0,0,0,.25); padding: 12px 0; margin-top: 24px; font-size: .78rem; opacity: .7; text-align: center; }

/* ---------------- Install ---------------- */
.install-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.install-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; max-width: 640px; width: 100%; }
.install-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.install-head h1 { margin: 0; font-size: 1.4rem; color: var(--brand); }
.install-head p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.install-success { text-align: center; }
.install-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.install-accounts { background: var(--line-2); border-radius: var(--radius-sm); padding: 14px; margin: 14px 0; font-size: .88rem; }
.install-accounts div { padding: 3px 0; }
.install-pw { margin-top: 8px; font-weight: 700; }
.install-warn { color: var(--warn); font-size: .8rem; margin-top: 12px; }
.install-list { padding-left: 20px; font-size: .88rem; color: var(--ink-2); }
.install-list li { margin-bottom: 4px; }
.install-foot { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------------- Auth shell ---------------- */
.auth-shell { background: var(--bg); }
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.err-code { font-size: 6rem; font-weight: 900; color: var(--brand); font-family: var(--font-serif); line-height: 1; }
.err-page h1 { margin: 8px 0; }
.err-page p { color: var(--muted); max-width: 480px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%); }
.login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px; max-width: 420px; width: 100%; }
.login-card h1 { margin: 0 0 4px; color: var(--brand); font-family: var(--font-serif); }
.login-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.login-brand { text-align: center; margin-bottom: 20px; }
.login-brand .brand-mark { margin: 0 auto 10px; width: 60px; height: 60px; font-size: 1.3rem; }

/* ---------------- Misc ---------------- */
.text-muted { color: var(--muted); }
.small { font-size: .8rem; }
.mt-16 { margin-top: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .88rem; }
.kv dt { font-weight: 700; color: var(--ink-2); }
.kv dd { margin: 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.chip--gold { background: var(--gold-soft); color: #7A5A00; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.timeline { position: relative; padding-left: 20px; }
.tl-item { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.tl-item:last-child { border-bottom: 0; }
.tl-year { font-size: .78rem; font-weight: 700; color: var(--brand); }
.tl-title { font-weight: 700; margin: 2px 0; }
.tl-meta { font-size: .82rem; color: var(--muted); }
.tl-body { font-size: .88rem; margin-top: 6px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .pub-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); z-index: 40; }
  .main-nav.open { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 300px; }
  .sidebar { position: fixed; left: -280px; top: 0; z-index: 60; transition: left .25s; height: 100vh; }
  .sidebar.open { left: 0; }
  .panel-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .sidebar-x { display: block; }
}