/* =====================================================================
   NEWS EXPRESS :: newsroom (admin)
   ===================================================================== */

:root {
    --ink:       #131922;
    --ink-soft:  #55606f;
    --ink-faint: #8b95a5;
    --paper:     #ffffff;
    --bg:        #eef1f6;
    --rule:      #dee3ec;
    --brand:     #c8102e;
    --brand-dark:#9c0c23;
    --ok:        #0f7b52;
    --warn:      #a8600a;
    --radius:    11px;
    --shadow:    0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px -16px rgba(16, 24, 40, .28);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: #14386b; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }

/* --------------------------------------------------------------- bar */
.bar { background: var(--ink); color: #fff; }
.bar__inner {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 22px; min-height: 62px; flex-wrap: wrap;
}
.bar__brand { display: flex; align-items: center; gap: 11px; color: #fff; flex: 0 0 auto; }
.bar__brand:hover { text-decoration: none; }
.bar__mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(140deg, #2b3444 5%, var(--brand) 90%);
    font-weight: 900; font-size: 13px; letter-spacing: .04em;
}
.bar__brand strong { display: block; font-size: 15px; }
.bar__brand em { display: block; font-style: normal; font-size: 11px; color: #93a0b4; }

.bar__nav { display: flex; gap: 2px; flex-wrap: wrap; }
.bar__nav a {
    color: #c3ccdb; padding: 8px 13px; border-radius: 8px; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px;
}
.bar__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.bar__nav a.is-active { background: var(--brand); color: #fff; }
.pill {
    background: #fff; color: var(--brand); font-size: 11px; font-weight: 800;
    border-radius: 20px; padding: 1px 7px; line-height: 1.5;
}

.bar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.bar__ghost { color: #c3ccdb; }
.bar__who { color: #93a0b4; }
.bar__out { color: #ffb3bd; font-weight: 600; }

/* ------------------------------------------------------------ layout */
.sheet { max-width: 1280px; margin: 0 auto; padding: 26px 20px 60px; }
.sheet__title { font-size: 25px; letter-spacing: -.02em; margin-bottom: 20px; }

.barfoot { border-top: 1px solid var(--rule); background: var(--paper); }
.barfoot__inner {
    max-width: 1280px; margin: 0 auto; padding: 14px 20px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-faint);
}
.barfoot p { margin: 0; }

/* -------------------------------------------------------------- notes */
.note {
    margin: 0 0 14px; padding: 11px 15px; border-radius: 9px; font-size: 14px;
    background: #e7f6ee; color: #0a5d3c; border: 1px solid #bce3ce;
}
.note--bad { background: #fdeaea; color: #96130f; border-color: #f3c3c0; }

/* ------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--brand);
}
.stat span { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.stat strong { display: block; font-size: 29px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------- cards */
.cardbox {
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 20px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.cardbox--tight { padding: 16px; }
.cardbox__head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.cardbox__head h2 { font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }

.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.cols--side { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 1000px) { .cols, .cols--side { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-faint); padding: 8px 10px; border-bottom: 1px solid var(--rule); font-weight: 700;
}
.table td { padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; white-space: nowrap; }
.strong { font-weight: 700; }
.slug { font-size: 12px; color: var(--ink-faint); font-family: ui-monospace, Consolas, monospace; }

.tag {
    display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
    background: #eceff5; color: var(--ink-soft);
}
.tag--published, .tag--approved { background: #e2f5eb; color: var(--ok); }
.tag--draft, .tag--pending { background: #fdf3e2; color: var(--warn); }
.tag--lead { background: var(--brand); color: #fff; }
.tag--new { background: var(--brand); color: #fff; }

.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }

/* ------------------------------------------------------------ toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 9px; padding: 4px; }
.filters a { padding: 7px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.filters a:hover { text-decoration: none; background: var(--bg); }
.filters a.is-on { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn {
    display: inline-block; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 700;
    background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 9px; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--wide { width: 100%; margin-top: 6px; text-align: center; }
.btn--small { padding: 6px 12px; font-size: 12.5px; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink-faint); }
.btn--danger { background: #fff; color: #a3120e; border-color: #f0c2bf; }
.btn--danger:hover { background: #a3120e; border-color: #a3120e; color: #fff; }
.inline { display: inline-block; margin: 0 0 0 6px; }

/* ------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 15px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field input[type=number],
.field input[type=password], .field input[type=file], .field select, .field textarea {
    width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400;
    border: 1px solid var(--rule); border-radius: 9px; background: var(--bg); color: var(--ink);
}
.field textarea { line-height: 1.65; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--brand); outline-offset: 1px; background: var(--paper);
}
.field input:disabled { color: var(--ink-faint); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; margin: 4px 0 16px; }
.hint { font-size: 12.5px; color: var(--ink-faint); margin: 4px 0 0; }
.muted { color: var(--ink-faint); }

.editor { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor__main {
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.editor__main .field:last-child { margin-bottom: 0; }
.editor__main textarea[name=content] { font-size: 16px; min-height: 360px; }
.editor__side { display: grid; gap: 18px; }
.thumb { width: 100%; border-radius: 9px; border: 1px solid var(--rule); margin-bottom: 12px; }

/* ----------------------------------------------------------- comments */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.queue li {
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--rule);
}
.queue li.is-new { border-left-color: var(--brand); }
.queue__head p { margin: 0; font-size: 14.5px; }
.queue__head p + p { margin-top: 3px; }
.queue__body { margin: 11px 0 12px; color: var(--ink-soft); font-size: 15px; }
.queue__acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* -------------------------------------------------------------- meter */
.meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.meter li { display: grid; grid-template-columns: 1fr 90px 26px; align-items: center; gap: 11px; font-size: 13.5px; }
.meter__bar { height: 7px; border-radius: 20px; background: var(--bg); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--brand); border-radius: 20px; }
.meter strong { text-align: right; font-size: 13.5px; }

/* --------------------------------------------------------------- feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.feed li { padding-bottom: 13px; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed p { margin: 0 0 3px; font-size: 14.5px; }
.feed em { font-style: normal; font-size: 12px; color: var(--ink-faint); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-faint); }
.facts strong { font-weight: 600; text-align: right; }

/* -------------------------------------------------------------- login */
.loginpage {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: linear-gradient(150deg, #131922 0%, #2b1720 55%, #4a0f1c 100%);
}
.loginbox {
    width: 100%; max-width: 390px; background: var(--paper); border-radius: 16px;
    padding: 30px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
.loginbox__head { text-align: center; margin-bottom: 22px; }
.loginbox__head .bar__mark { margin: 0 auto 12px; width: 44px; height: 44px; font-size: 16px; }
.loginbox__head h1 { font-size: 21px; margin: 0 0 3px; }
.loginbox__head p { margin: 0; font-size: 13.5px; color: var(--ink-faint); }
.loginbox label { display: block; margin-bottom: 15px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.loginbox input {
    width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: 15px;
    border: 1px solid var(--rule); border-radius: 9px; background: var(--bg); color: var(--ink);
}
.loginbox input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: var(--paper); }
.loginbox__foot { text-align: center; margin: 16px 0 0; font-size: 13px; }
