Template:Main page/styles.css

/* Save as: Template:Main page/styles.css  (content model: Sanitized CSS)
   Fonts (Inter + Source Serif 4) must be loaded in MediaWiki:Common.css - see instructions. */

.wg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #1f2328; }
.wg-wrap a { text-decoration: none; }
.wg-wrap a:hover { text-decoration: underline; }

/* HERO */
.wg-hero { padding: 56px 0 36px; }
.wg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #59636e; }
.wg-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 0; max-width: 780px; }
.wg-sub { font-size: 17px; color: #59636e; margin-top: 16px; max-width: 640px; line-height: 1.6; }
.wg-search { margin-top: 28px; max-width: 620px; }
.wg-search form { display: flex; gap: 8px; }
.wg-search input[type=search], .wg-search input[type=text] { flex: 1; padding: 12px 14px; border: 1px solid #b8c0c8; border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; }
.wg-search input[type=submit], .wg-search button { padding: 12px 22px; background: #0b4f8a; color: #fff; border: 1px solid #0b4f8a; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.wg-try { margin-top: 12px; font-size: 13px; color: #59636e; }

/* STATS STRIP */
.wg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid #d1d9e0; border-bottom: 1px solid #d1d9e0; }
.wg-stat { padding: 20px 20px; border-right: 1px solid #d1d9e0; }
.wg-stat:last-child { border-right: 0; }
.wg-stat-n { font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.wg-stat-l { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #59636e; margin-top: 6px; }

/* SECTION HEADER */
.wg-sh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #1f2328; margin: 56px 0 22px; padding-bottom: 10px; }
.wg-sh-t { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.wg-sh-l { font-size: 13px; font-weight: 500; }
.wg-sh-l a { color: #0b4f8a; }

/* GRIDS */
.wg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wg-split { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.wg-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }

/* CATEGORY CARD */
.wg-cat { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-cat:hover { border-color: #0b4f8a; }
.wg-cat-name { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 600; }
.wg-cat-name a { color: #1f2328; }
.wg-cat-desc { font-size: 14px; color: #59636e; margin-top: 6px; line-height: 1.55; }
.wg-cat-count { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #0b4f8a; }

/* ENTITY CARD (used by Template:Entity card) */
.wg-ec { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-ec:hover { border-color: #0b4f8a; }
.wg-ec-top { display: flex; align-items: center; gap: 12px; }
.wg-ec-mono { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #eef2f6; color: #0b4f8a; border-radius: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; font-weight: 700; }
.wg-ec-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #59636e; }
.wg-ec-title { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; margin-top: 14px; line-height: 1.25; }
.wg-ec-title a { color: #1f2328; }
.wg-ec-meta { font-size: 13px; color: #59636e; margin-top: 3px; }
.wg-ec-desc { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.wg-ec-link { font-size: 13px; font-weight: 600; margin-top: 12px; }

/* CONNECTIONS */
.wg-rel { border: 1px solid #d1d9e0; border-radius: 6px; background: #fff; }
.wg-rel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e6eaee; font-size: 14px; }
.wg-rel-row:last-child { border-bottom: 0; }
.wg-rel-role { color: #59636e; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.wg-note { font-size: 14px; color: #59636e; margin-bottom: 14px; max-width: 640px; }

/* BROWSE LINKS */
.wg-browse { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }

/* CONTRIBUTE */
.wg-act { border-top: 2px solid #1f2328; padding-top: 14px; }
.wg-act-t { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; }
.wg-act-d { font-size: 14px; color: #59636e; margin-top: 6px; }
.wg-act-l { font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ABOUT */
.wg-about { border-left: 3px solid #0b4f8a; padding: 4px 0 4px 24px; max-width: 820px; }
.wg-about-text { font-size: 16px; line-height: 1.7; }
.wg-links { margin-top: 12px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }

@media (max-width: 800px) {
  .wg-split { grid-template-columns: 1fr; }
  .wg-title { font-size: 34px; }
  .wg-hero { padding: 36px 0 28px; }
  .wg-stat { border-right: 0; border-bottom: 1px solid #d1d9e0; }
  .wg-stat:last-child { border-bottom: 0; }
  .wg-search form { flex-direction: column; }
}