/* Extra styles for journalist, article, profile and admin-review pages */
.badge { background: #e8f5ee; color: var(--ok); font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.badge.warn { background: #fff4d6; color: #8a5a00; }
.badge.bad { background: #fdecea; color: var(--danger); }
.badge.grey { background: #eee; color: #555; }
.card .tagrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.wide { max-width: 760px; margin-left: auto; margin-right: auto; }

.notice { border-radius: 10px; padding: 14px 16px; margin: 14px 0; font-size: 0.92rem; background: #f1f0ea; }
.notice.ok { background: #e8f5ee; color: var(--ok); }
.notice.warn { background: #fff3d1; color: #5a3d00; }
.notice.bad { background: #fdecea; color: var(--danger); }
.notice a { text-decoration: underline; }

.tabs { display: flex; gap: 8px; margin: 22px 0 6px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 7px; }
.btn-grey { background: #e9e8e2; color: var(--ink); }
.btn-grey:hover { background: #dcdbd3; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #e4b5ad; }
.btn-danger:hover { background: #fdecea; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.item h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; margin-top: 10px; font-size: 0.88rem; }
.item .kv dt { color: var(--muted); }
.item .kv dd { word-break: break-word; white-space: pre-wrap; }
.item .small { font-size: 0.82rem; color: var(--muted); }

/* Article page */
.article { max-width: 720px; margin: 30px auto 50px; }
.article .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.5px; }
.article h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 12px; letter-spacing: -0.5px; }
.article .summary { font-size: 1.1rem; color: var(--muted); margin-bottom: 16px; }
.article .byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.article .byline small { color: var(--muted); display: block; }
.article .cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; background: var(--line); }
.article .content p { margin-bottom: 1.1em; font-size: 1.05rem; line-height: 1.75; }
.correction { background: #fff4d6; border-left: 4px solid #e0a100; padding: 10px 14px; border-radius: 6px; margin: 14px 0; font-size: 0.9rem; }
.sources { margin-top: 24px; font-size: 0.9rem; }
.sources h4 { margin-bottom: 6px; }
.sources li { margin-left: 18px; word-break: break-all; }
.sources a { color: var(--accent); text-decoration: underline; }
.report-box { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.88rem; }

/* Profile page */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 30px 0 10px; flex-wrap: wrap; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 1.8rem; }
.profile-head h1 { font-size: 1.6rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.profile-head p { color: var(--muted); }
.bio { max-width: 720px; margin: 6px 0 10px; }

.post-list .post-row { cursor: default; }

/* Like / report buttons on articles */
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 6px; font: 700 0.95rem var(--display); cursor: pointer; }
.act:hover { background: rgba(13, 23, 38, 0.07); }
.act[aria-pressed="true"] { background: var(--ink); color: #fff; }
.act b { font-variant-numeric: tabular-nums; font-weight: 700; }
.act.reported { border-color: var(--danger); color: var(--danger); }
.act.reported:hover { background: #fbe7e5; }
.act.reported[aria-pressed="true"] { background: var(--danger); color: #fff; }
#report-form { margin-top: 14px; max-width: 520px; }
#report-form[hidden] { display: none; }

/* ---------- Policy pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 36px 20px 20px; line-height: 1.7; }
.prose h1 { margin-bottom: 6px; }
.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; }
.prose .upd { color: var(--muted); font-size: 0.88rem; }

/* ---------- Picture help ---------- */
.help { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-top: 6px; }
.help.warn { color: var(--danger); }
#a-cover-prev { max-width: 240px; max-height: 150px; border-radius: 6px; margin-top: 8px; object-fit: cover; }
#a-cover-prev[hidden], .help[hidden] { display: none; }

/* ---------- Social icon links ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.soc { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.soc svg { width: 18px; height: 18px; flex: none; }
a.soc:hover { border-color: var(--ink); }
.soc.plain { font-weight: 500; color: var(--muted); }
#p-photo-prev { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-top: 8px; }
#p-photo-prev[hidden] { display: none; }
