/* ════════════════════════════════════════════════════════════════════════════
   THW Freising – Wissensportal • Stylesheet
   CI: Blau #003082 | Gelb #FFCC00 | Weiß #FFFFFF
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --thw-blue:        #003082;
  --thw-blue-mid:    #004BB4;
  --thw-blue-light:  #E8EEF8;
  --thw-yellow:      #FFCC00;
  --thw-yellow-dark: #E6B800;
  --thw-white:       #FFFFFF;
  --thw-gray-50:     #F7F8FA;
  --thw-gray-100:    #EEF0F4;
  --thw-gray-200:    #D5DAE6;
  --thw-gray-400:    #8B96AD;
  --thw-gray-600:    #4A5568;
  --thw-gray-800:    #1A202C;
  --thw-red:         #C0392B;
  --thw-green:       #1A7A4A;

  /* Level colors */
  --level-1: #2196F3;
  --level-2: #FF9800;
  --level-3: #4CAF50;
  --level-9: #9C27B0;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(0,48,130,.10);
  --shadow:      0 4px 16px rgba(0,48,130,.12);
  --shadow-lg:   0 10px 32px rgba(0,48,130,.16);

  --font-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --nav-height: 48px;
  --header-height: 80px;
  --topbar-height: 36px;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--thw-gray-800);
  background: var(--thw-gray-50);
}
a { color: var(--thw-blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--thw-blue); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--thw-yellow); color: var(--thw-blue);
  padding: 8px 16px; font-weight: 700; z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── Top Bar ──────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--thw-blue);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  height: var(--topbar-height);
  display: flex; align-items: center;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links a { color: rgba(255,255,255,.85); font-size: 12px; }
.topbar-links a:hover { color: var(--thw-yellow); text-decoration: none; }

/* ── Role Badge ─────────────────────────────────────────────────────────────*/
.role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.role-badge--1 { background: var(--level-1); color: #fff; }
.role-badge--2 { background: var(--level-2); color: #fff; }
.role-badge--3 { background: var(--level-3); color: #fff; }
.role-badge--9 { background: var(--level-9); color: #fff; }

/* ── Header ─────────────────────────────────────────────────────────────────*/
.site-header {
  background: var(--thw-white);
  height: var(--header-height);
  display: flex; align-items: center;
  border-bottom: 3px solid var(--thw-yellow);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; width: 100%;
}
.logo-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.logo-link:hover { text-decoration: none; }
.logo-emblem svg { width: 54px; height: 54px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-org { font-size: 11px; color: var(--thw-gray-400); text-transform: uppercase; letter-spacing: 1px; }
.logo-ov  { font-size: 20px; font-weight: 700; color: var(--thw-blue); letter-spacing: -.3px; }

.header-search {
  display: flex; align-items: center;
  background: var(--thw-gray-100);
  border: 2px solid var(--thw-gray-200);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--thw-blue-mid); }
.header-search input {
  border: none; background: transparent;
  padding: 8px 16px; font-size: 14px;
  width: 240px; outline: none;
  font-family: var(--font-sans);
}
.header-search button {
  border: none; background: transparent;
  padding: 8px 16px; cursor: pointer;
  color: var(--thw-blue); font-size: 14px;
}
.header-search button:hover { color: var(--thw-blue-mid); }

/* ── Main Nav ────────────────────────────────────────────────────────────────*/
.main-nav {
  background: var(--thw-blue);
  position: sticky; top: 0; z-index: 100;
}
.nav-list {
  display: flex; align-items: center;
  gap: 0; overflow-x: auto;
}
.nav-list li a {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.85);
  padding: 0 18px;
  height: var(--nav-height);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-list li a:hover, .nav-list li a.active {
  background: rgba(255,255,255,.1);
  color: var(--thw-yellow);
  border-bottom-color: var(--thw-yellow);
  text-decoration: none;
}
.nav-divider { color: rgba(255,255,255,.2); padding: 0 4px; }

/* ── Flash Alerts ─────────────────────────────────────────────────────────── */
.flash-container { padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border-left: 4px solid transparent;
  position: relative;
}
.alert--success { background: #ECFDF5; color: #065F46; border-color: var(--thw-green); }
.alert--danger  { background: #FEF2F2; color: #991B1B; border-color: var(--thw-red); }
.alert--warning { background: #FFFBEB; color: #92400E; border-color: #F59E0B; }
.alert--info    { background: var(--thw-blue-light); color: var(--thw-blue); border-color: var(--thw-blue-mid); }
.alert__close {
  margin-left: auto; border: none; background: none;
  cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px;
  color: inherit; opacity: .6;
}
.alert__close:hover { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--thw-blue) 0%, var(--thw-blue-mid) 100%);
  color: var(--thw-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,5 55,17.5 55,42.5 30,55 5,42.5 5,17.5' fill='none' stroke='rgba(255,204,0,0.06)' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
  opacity: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
  font-size: 2.4rem; font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-content p { font-size: 1.1rem; opacity: .9; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--thw-yellow); color: var(--thw-blue);
  padding: 4px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--thw-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--thw-gray-200);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--thw-gray-100);
  display: flex; align-items: flex-start; gap: 14px;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--thw-blue-light);
  color: var(--thw-blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--thw-blue); line-height: 1.3;
}
.card-title a { color: inherit; }
.card-title a:hover { text-decoration: none; color: var(--thw-blue-mid); }

.card-body { padding: 16px 24px; flex: 1; }
.card-body p { color: var(--thw-gray-600); font-size: 14px; line-height: 1.6; }

.card-footer {
  padding: 12px 24px;
  background: var(--thw-gray-50);
  border-top: 1px solid var(--thw-gray-100);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--thw-gray-400);
}

/* Level indicator on card */
.level-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.level-pill--1 { background: #EBF5FF; color: var(--level-1); }
.level-pill--2 { background: #FFF7ED; color: var(--level-2); }
.level-pill--3 { background: #ECFDF5; color: #15803D; }
.level-pill--9 { background: #FAF5FF; color: var(--level-9); }

/* ── Section Headings ─────────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--thw-yellow);
}
.section-header h2 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--thw-blue);
  display: flex; align-items: center; gap: 10px;
}

/* ── Category Cards ──────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--thw-white);
  border: 1px solid var(--thw-gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  color: var(--thw-gray-800);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.cat-card:hover {
  background: var(--thw-blue);
  color: var(--thw-white);
  border-color: var(--thw-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-card i { font-size: 28px; color: var(--thw-blue-mid); }
.cat-card:hover i { color: var(--thw-yellow); }
.cat-card strong { font-size: 13px; font-weight: 700; }

/* ── Article Detail ──────────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0;
}
.article-main {}
.article-aside {}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--thw-yellow);
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 600;
  color: var(--thw-blue);
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--thw-gray-400);
  align-items: center;
}

.content-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--thw-gray-200);
  margin-bottom: 24px;
}
.content-tab {
  padding: 10px 20px; cursor: pointer;
  font-size: 14px; font-weight: 600;
  color: var(--thw-gray-400);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .15s;
}
.content-tab.active, .content-tab:hover {
  color: var(--thw-blue);
  border-bottom-color: var(--thw-blue);
}

.article-content {
  line-height: 1.75;
  color: var(--thw-gray-800);
}
.article-content h1,.article-content h2,.article-content h3 {
  color: var(--thw-blue);
  margin: 24px 0 10px;
  font-family: var(--font-serif);
}
.article-content h2 { font-size: 1.3rem; border-bottom: 1px solid var(--thw-gray-200); padding-bottom: 6px; }
.article-content h3 { font-size: 1.1rem; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 12px 0; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: 5px 0; }
.article-content p { margin: 12px 0; }
.article-content strong { font-weight: 700; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
.article-content th {
  background: var(--thw-blue); color: var(--thw-white);
  padding: 10px 14px; text-align: left;
}
.article-content td { padding: 9px 14px; border-bottom: 1px solid var(--thw-gray-200); }
.article-content tr:hover td { background: var(--thw-blue-light); }

/* ── Aside Widgets ───────────────────────────────────────────────────────── */
.widget {
  background: var(--thw-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--thw-gray-200);
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-header {
  background: var(--thw-blue);
  color: var(--thw-white);
  padding: 12px 18px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px 18px; }

/* Level info box */
.level-info {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 10px;
}
.level-info--1 { background: #EBF5FF; border-left: 3px solid var(--level-1); }
.level-info--2 { background: #FFF7ED; border-left: 3px solid var(--level-2); }
.level-info--3 { background: #ECFDF5; border-left: 3px solid #15803D; }
.level-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.dot-1 { background: var(--level-1); }
.dot-2 { background: var(--level-2); }
.dot-3 { background: var(--level-3); }

/* ── Attachments ─────────────────────────────────────────────────────────── */
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--thw-gray-50);
  border: 1px solid var(--thw-gray-200);
  border-radius: var(--radius);
  transition: background .15s;
}
.attachment-item:hover { background: var(--thw-blue-light); }
.attachment-item .att-icon { font-size: 20px; color: var(--thw-blue-mid); flex-shrink: 0; }
.attachment-item .att-info { flex: 1; min-width: 0; }
.attachment-item .att-name {
  font-size: 13px; font-weight: 600; color: var(--thw-blue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.attachment-item .att-meta { font-size: 11px; color: var(--thw-gray-400); }
.attachment-item .att-level { flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--thw-blue); color: var(--thw-white); border-color: var(--thw-blue); }
.btn-primary:hover { background: var(--thw-blue-mid); border-color: var(--thw-blue-mid); color: #fff; }
.btn-yellow { background: var(--thw-yellow); color: var(--thw-blue); border-color: var(--thw-yellow); }
.btn-yellow:hover { background: var(--thw-yellow-dark); border-color: var(--thw-yellow-dark); }
.btn-outline { background: transparent; color: var(--thw-blue); border-color: var(--thw-blue); }
.btn-outline:hover { background: var(--thw-blue); color: var(--thw-white); }
.btn-danger { background: var(--thw-red); color: #fff; border-color: var(--thw-red); }
.btn-danger:hover { background: #A93226; border-color: #A93226; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--thw-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--thw-gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.form-card-header {
  background: var(--thw-blue);
  color: var(--thw-white);
  padding: 18px 28px;
  display: flex; align-items: center; gap: 12px;
}
.form-card-header h2 { font-size: 1.2rem; font-weight: 700; color: #fff; }
.form-card-body { padding: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--thw-gray-600); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .4px;
}
.form-control {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--thw-gray-200);
  border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-sans);
  color: var(--thw-gray-800);
  transition: border-color .2s;
  background: var(--thw-white);
}
.form-control:focus {
  outline: none;
  border-color: var(--thw-blue-mid);
  box-shadow: 0 0 0 3px rgba(0,75,180,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* Rich text tabs */
.tabs-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--thw-gray-200);
  margin-bottom: 0;
}
.tab-btn {
  padding: 8px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; background: none;
  color: var(--thw-gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-sans);
  transition: all .15s;
}
.tab-btn.active { color: var(--thw-blue); border-bottom-color: var(--thw-blue); }
.tab-btn.tab-l1.active { border-bottom-color: var(--level-1); color: var(--level-1); }
.tab-btn.tab-l2.active { border-bottom-color: var(--level-2); color: var(--level-2); }
.tab-btn.tab-l3.active { border-bottom-color: var(--level-3); color: #15803D; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.level-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 8px;
}
.level-label--1 { background: #EBF5FF; color: var(--level-1); }
.level-label--2 { background: #FFF7ED; color: var(--level-2); }
.level-label--3 { background: #ECFDF5; color: #15803D; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
table.data-table th {
  background: var(--thw-blue); color: var(--thw-white);
  padding: 12px 16px; text-align: left; font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
}
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--thw-gray-100); }
table.data-table tr:hover td { background: var(--thw-blue-light); }

/* ── Login Page ──────────────────────────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - var(--topbar-height) - var(--header-height) - var(--nav-height) - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--thw-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-card-header {
  background: linear-gradient(135deg, var(--thw-blue), var(--thw-blue-mid));
  color: var(--thw-white);
  padding: 36px 32px 28px;
  text-align: center;
}
.login-card-header .login-logo svg { width: 70px; height: 70px; }
.login-card-header h1 { font-size: 1.4rem; margin-top: 12px; font-family: var(--font-serif); }
.login-card-header p { font-size: 13px; opacity: .85; }
.login-card-body { padding: 32px; }
.login-card-footer {
  padding: 16px 32px;
  background: var(--thw-gray-50);
  border-top: 1px solid var(--thw-gray-100);
  text-align: center;
  font-size: 13px; color: var(--thw-gray-400);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--thw-gray-400);
  padding: 12px 0 4px;
}
.breadcrumb a { color: var(--thw-blue-mid); }
.breadcrumb-sep { color: var(--thw-gray-200); }

/* ── Page Header ─────────────────────────────────────────────────────────── */
.page-header {
  background: var(--thw-white);
  border-bottom: 1px solid var(--thw-gray-200);
  padding: 24px 0;
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 1.8rem; font-weight: 700;
  color: var(--thw-blue);
  display: flex; align-items: center; gap: 12px;
}

/* ── Tag / Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-blue    { background: var(--thw-blue-light); color: var(--thw-blue); }
.badge-green   { background: #ECFDF5; color: var(--thw-green); }
.badge-red     { background: #FEF2F2; color: var(--thw-red); }
.badge-yellow  { background: #FFFBEB; color: #92400E; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--thw-blue);
  color: rgba(255,255,255,.8);
  margin-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px 36px;
}
.footer-logo {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 700; color: var(--thw-white);
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--thw-yellow);
  margin-bottom: 14px;
}
.footer-col ul li { margin: 7px 0; font-size: 13px; }
.footer-col ul li a { color: rgba(255,255,255,.75); }
.footer-col ul li a:hover { color: var(--thw-yellow); text-decoration: none; }
.level-1 { color: var(--level-1); }
.level-2 { color: var(--level-2); }
.level-3 { color: var(--level-3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 20px;
  font-size: 12px; color: rgba(255,255,255,.5);
  text-align: center;
}

/* ── Attachment upload ────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--thw-gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--thw-gray-400);
}
.upload-zone:hover { border-color: var(--thw-blue-mid); color: var(--thw-blue); }
.upload-zone i { font-size: 32px; margin-bottom: 8px; }
.upload-zone p { font-size: 13px; }

.att-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px;
  background: var(--thw-gray-50);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--thw-gray-400); font-size: 13px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--thw-gray-400);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { color: var(--thw-gray-600); margin-bottom: 8px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-search input { width: 160px; }
  .hero-content h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .topbar .container { flex-direction: column; gap: 4px; height: auto; padding: 8px 20px; }
  .topbar { height: auto; }
  .logo-ov { font-size: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .att-row { grid-template-columns: 1fr; }
}
