/* assets/css/wiki.css — Wikipedia-inspired article styling */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: sans-serif;
  color: #202122;
  background: #f8f9fa;
  font-size: 14px;
  line-height: 1.6;
}
a { color: #3366cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.wiki-topbar {
  background: #fff;
  border-bottom: 1px solid #a2a9b1;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wiki-logo { font-weight: bold; font-size: 18px; color: #202122; }
.wiki-logo span { color: #3366cc; }
.wiki-topbar .links a { margin-left: 14px; font-size: 13px; }

/* Layout */
.wiki-wrap { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid #a7d7f9; border-top: none; }
.wiki-content { padding: 18px 24px 40px; }
.wiki-title {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 28px;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 4px;
  margin: 0 0 4px;
}
.wiki-sub { color: #54595d; font-style: italic; margin-bottom: 16px; font-size: 13px; }

/* Infobox */
.infobox {
  float: right;
  clear: right;
  width: 300px;
  margin: 0 0 16px 18px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 13px;
  padding: 0;
}
.infobox .ib-name {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  background: #cedff2;
  padding: 8px 6px;
}
.infobox .ib-photo { text-align: center; padding: 8px; }
.infobox .ib-photo img { max-width: 100%; height: auto; border: 1px solid #ccc; }
.infobox .ib-caption { text-align: center; font-size: 12px; color: #54595d; padding: 0 8px 8px; }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td { text-align: left; vertical-align: top; padding: 5px 8px; border-top: 1px solid #c8ccd1; }
.infobox th { width: 38%; font-weight: bold; color: #202122; }
.infobox .ib-section { background: #cedff2; text-align: center; font-weight: bold; padding: 5px; }

/* Body */
.wiki-body h2 {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 3px;
  margin: 24px 0 10px;
}
.wiki-body p { margin: 0 0 12px; }

/* TOC */
.wiki-toc {
  display: inline-block;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 10px 18px;
  margin: 10px 0 18px;
  font-size: 13px;
}
.wiki-toc .toc-title { font-weight: bold; text-align: center; margin-bottom: 6px; }
.wiki-toc ol { margin: 0; padding-left: 20px; }

.wiki-footer {
  border-top: 1px solid #a2a9b1;
  padding: 12px 24px;
  font-size: 12px;
  color: #54595d;
  text-align: center;
}

/* Index/list page */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.profile-card { border: 1px solid #c8ccd1; padding: 12px; background: #f8f9fa; }
.profile-card img { width: 100%; height: 150px; object-fit: cover; border: 1px solid #ccc; }
.profile-card h3 { margin: 8px 0 2px; font-size: 16px; }
.profile-card .pc-tag { color: #54595d; font-size: 12px; }

@media (max-width: 720px) {
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
}

/* ===================== Portal homepage (Wikipedia.org style) ===================== */
.portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.portal-head {
  text-align: center;
  margin-bottom: 28px;
}
.portal-logo {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  margin: 0;
}
.portal-logo .lw-mark { color: #202122; }
.portal-tagline { color: #54595d; font-size: 15px; margin-top: 2px; }

/* central search */
.portal-search { max-width: 640px; margin: 22px auto 0; }
.portal-search form { display: flex; border: 1px solid #a2a9b1; border-radius: 2px; overflow: hidden; }
.portal-search input[type=search] {
  flex: 1; border: 0; padding: 11px 12px; font-size: 15px; outline: none;
}
.portal-search button {
  border: 0; background: #3366cc; color: #fff; padding: 0 18px; font-size: 14px; cursor: pointer;
}
.portal-search button:hover { background: #2a4b8d; }
.portal-search .lang-inline {
  border: 0; border-left: 1px solid #c8ccd1; background: #f8f9fa; padding: 0 8px; font-size: 13px; cursor: pointer;
}

/* language ring (top languages around the globe) */
.lang-ring {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 36px;
  max-width: 760px;
  margin: 30px auto 0;
}
.lang-ring a {
  display: block; text-align: center; padding: 8px; border-radius: 4px;
}
.lang-ring a:hover { background: #f0f3ff; text-decoration: none; }
.lang-ring .lr-native { font-size: 17px; color: #202122; }
.lang-ring .lr-count { font-size: 12px; color: #72777d; }

.portal-rule {
  max-width: 760px; margin: 30px auto; border: 0; border-top: 1px solid #e0e0e0;
}

/* verticals grid */
.verticals-title {
  text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #72777d; margin: 8px 0 16px;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.vert-card {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #c8ccd1; border-radius: 6px; padding: 12px 14px; background: #fff;
}
.vert-card:hover { background: #f8f9fa; text-decoration: none; border-color: #a2a9b1; }
.vert-icon { font-size: 22px; line-height: 1; }
.vert-name { font-size: 15px; color: #202122; font-weight: 600; }
.vert-desc { font-size: 12px; color: #72777d; margin-top: 2px; }
.vert-count { font-size: 11px; color: #3366cc; margin-top: 4px; }

/* language bar (full list) */
.lang-bar {
  max-width: 900px; margin: 30px auto 0; text-align: center; font-size: 13px; color: #54595d;
}
.lang-bar a { margin: 0 8px; white-space: nowrap; }

/* search results page */
.results-wrap { max-width: 820px; margin: 0 auto; padding: 16px 20px 50px; }
.result-item { padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.result-item h3 { margin: 0 0 2px; font-size: 18px; font-weight: 400; }
.result-item .ri-meta { font-size: 12px; color: #72777d; }
.result-item .ri-snip { font-size: 13px; color: #202122; margin-top: 4px; }
.result-badge {
  display: inline-block; font-size: 11px; background: #eaf3ff; color: #2a4b8d;
  padding: 1px 7px; border-radius: 10px; margin-left: 6px;
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.filter-bar select, .filter-bar input { padding: 7px 9px; border: 1px solid #a2a9b1; border-radius: 3px; font-size: 13px; }
mark { background: #ffe9a8; padding: 0 1px; }

/* Nominate CTA + nomination form */
.nominate-btn {
  display: inline-block; background: #14866d; color: #fff !important; text-decoration: none;
  padding: 12px 26px; border-radius: 4px; font-size: 16px; font-weight: 600;
}
.nominate-btn:hover { background: #0f6b56; text-decoration: none; }
.nom-wrap { max-width: 640px; margin: 0 auto; padding: 24px 20px 60px; }
.nom-wrap h1 { font-family: 'Linux Libertine', Georgia, serif; font-weight: 400; border-bottom: 1px solid #a2a9b1; padding-bottom: 6px; }
.nom-form label { display:block; font-weight:600; margin:14px 0 4px; font-size:14px; }
.nom-form input, .nom-form select, .nom-form textarea {
  width:100%; padding:9px; border:1px solid #a2a9b1; border-radius:3px; font-size:14px; font-family:inherit;
}
.nom-form textarea { min-height:90px; resize:vertical; }
.nom-fee { background:#f0f7f4; border:1px solid #b9e0d2; border-radius:6px; padding:14px; margin:18px 0; }
.nom-fee b { color:#14866d; }
.nom-row { display:flex; gap:12px; } .nom-row > div { flex:1; }
.nom-note { font-size:12px; color:#72777d; margin-top:2px; }
.clout-badge { display:inline-block; background:#fff4e5; color:#ac6600; border-radius:10px; padding:2px 9px; font-size:12px; font-weight:600; }

/* Nomination tier selection cards */
.tier-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin:6px 0 6px; }
.tier-card {
  position:relative; display:flex; flex-direction:column; gap:3px;
  border:2px solid #e0e0e0; border-radius:10px; padding:14px 12px; cursor:pointer;
  background:#fff; transition:border-color .15s, box-shadow .15s; font-weight:400;
}
.tier-card:hover { border-color:var(--tier); }
.tier-card input { position:absolute; top:10px; right:10px; accent-color:var(--tier); }
.tier-card:has(input:checked) { border-color:var(--tier); box-shadow:0 0 0 3px color-mix(in srgb, var(--tier) 18%, transparent); }
.tier-badge { font-size:26px; line-height:1; }
.tier-name { font-weight:700; color:var(--tier); font-size:15px; }
.tier-price { font-size:18px; font-weight:800; color:#202122; }
.tier-tagline { font-size:12px; color:#54595d; font-weight:600; }
.tier-blurb { font-size:11px; color:#72777d; line-height:1.4; margin-top:2px; }

/* Tier chip (badge shown on profiles, lists) */
.tier-chip {
  display:inline-block; font-size:12px; font-weight:700; color:#fff;
  background:var(--tier,#2a4b8d); padding:2px 10px; border-radius:11px; white-space:nowrap;
}

/* Product grid on company pages */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; margin-top:10px; }
.product-card { border:1px solid #c8ccd1; border-radius:8px; padding:13px; background:#fafbfc; }
.product-card img { width:100%; height:130px; object-fit:contain; background:#fff; border:1px solid #eee; border-radius:6px; margin-bottom:8px; }
.product-card .pc-name { font-weight:700; font-size:15px; color:#202122; }
.product-card .pc-price { font-size:12px; color:#14866d; font-weight:700; margin-left:4px; }
.product-card .pc-tag { font-size:12px; color:#54595d; margin-top:2px; font-weight:600; }
.product-card .pc-desc { font-size:12px; color:#72777d; margin-top:6px; line-height:1.5; }
.product-card .pc-desc p { margin:0; }

/* Portal top navigation tabs (People / Companies / Products) */
.portal-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  flex-wrap: wrap;
}
.portal-nav-tab {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #c8ccd1;
  border-radius: 999px;
  font-size: 14px;
  color: #54595d;
  background: #fff;
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
}
.portal-nav-tab:hover {
  background: #f0f3ff;
  border-color: #a2a9b1;
  text-decoration: none;
}
.portal-nav-tab.is-active {
  background: #3366cc;
  border-color: #3366cc;
  color: #fff;
  font-weight: 600;
}

/* Portal nav as bordered boxes (People / Companies / Products) */
.portal-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 22px auto 0;
}
.portal-nav-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #c8ccd1;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.portal-nav-box:hover {
  background: #f8f9fa;
  border-color: #3366cc;
  box-shadow: 0 1px 4px rgba(51,102,204,.12);
  text-decoration: none;
}
.portal-nav-box .pnb-icon { font-size: 26px; line-height: 1; }
.portal-nav-box .pnb-text { display: flex; flex-direction: column; }
.portal-nav-box .pnb-title { font-size: 17px; font-weight: 700; color: #202122; }
.portal-nav-box .pnb-desc { font-size: 12px; color: #72777d; margin-top: 2px; }
@media (max-width: 640px) {
  .portal-nav { grid-template-columns: 1fr; }
}

/* Awards, references, translation banner */
.award-list { list-style:none; padding:0; margin:8px 0; }
.award-list li { padding:6px 0; border-bottom:1px solid #f0f0f0; }
.award-ico { margin-right:6px; }
.award-year { color:#72777d; font-size:13px; }
.ref-list { list-style:none; padding:0; margin:8px 0; }
.ref-list li { padding:6px 0; border-bottom:1px solid #f0f0f0; font-size:14px; }
.ref-type { display:inline-block; min-width:74px; font-size:11px; color:#54595d; background:#f3f4f6; border-radius:4px; padding:1px 6px; margin-right:8px; }
.mt-banner { background:#fff8e6; border:1px solid #f0d98c; border-radius:6px; padding:8px 12px; font-size:13px; margin:0 0 12px; }
.lang-switch { font-size:13px; color:#54595d; margin:0 0 14px; }
.lang-switch a { margin:0 6px; }

/* Per-result language switcher in search */
.ri-langs { font-size:12px; color:#72777d; margin-top:5px; }
.ri-langs a { margin:0 5px; }
