/* AR Data Hub styles */
/* Palette and spacing match oie.uark.edu */
:root {
  --navy: #1E3A52;
  --navy-2: #26496a;
  --slate: #2B5269;
  --light-blue: #9fc3dc;
  --pale: #eef4f9;
  --gray: #f2f2f4;
  --line: #e3e8ed;
  --card-border: #d6e3ee;
  --text: #1b1b1b;
  --white: #ffffff;
  --ink: #1a1f24;        /* near-black for section and card headings */
  --gray-text: #4a5560;  /* dark gray for body text (7.6:1 on white) */
  --content: 1140px;
  --gutter: 24px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 58, 82, .06), 0 8px 24px rgba(30, 58, 82, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Public Sans", Inter, sans-serif; color: var(--navy); line-height: 1.15; margin: 0; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); border-radius: 4px; }
.site-footer a:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 2px var(--navy); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Header: wordmark + navigation, with OIE's slate line on top */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-top: 4px solid var(--slate); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: "Public Sans", Inter, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--navy); text-decoration: none; transition: background .15s ease; }
.site-nav a:hover { background: var(--pale); }

/* Title area with a faint data grid */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, #f3f7fb 0%, var(--white) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 58, 82, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 82, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; padding-top: 66px; padding-bottom: 48px; }
.hero h1 { font-size: 60px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; position: relative; padding-top: 24px; }
.hero h1::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--light-blue) 50% 100%); }
.tagline { margin: 16px 0 0; font-size: 24px; font-weight: 500; line-height: 1.35; color: var(--slate); max-width: 620px; }
.tagline span { color: var(--navy); font-weight: 700; box-shadow: inset 0 -0.38em 0 var(--pale); }

/* Co-branding: the two logos as a partner lockup */
.partners { margin-top: 32px; display: inline-flex; flex-direction: column; gap: 10px; }
.partners-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.partner-logos { display: inline-flex; align-items: center; gap: 22px; background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 14px 22px; box-shadow: var(--shadow); max-width: 100%; }
.partner-logos a { display: block; min-width: 0; }
.partner-logos .sep { width: 1px; align-self: stretch; background: var(--line); flex: none; }
.partner-logos .dese img { height: 44px; width: auto; }
.partner-logos .oie img { height: 36px; width: auto; }

/* At a glance panel */
.glance { background: var(--white); color: var(--navy); border: 1px solid var(--card-border); border-top: 4px solid var(--light-blue); border-radius: var(--radius); padding: 20px 22px 10px; box-shadow: var(--shadow); }
.glance h2 { color: var(--slate); font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li + li { border-top: 1px solid var(--line); }
.glance a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--navy); text-decoration: none; font-weight: 500; }
.glance a:hover .glance-name { text-decoration: underline; text-underline-offset: 3px; }
.glance-num { font-family: "Public Sans", Inter, sans-serif; font-size: 28px; font-weight: 700; line-height: 1; min-width: 2ch; text-align: right; }
.glance-num { color: var(--navy); }
.glance-num.zero { color: #6a7f90; }
.glance .note { font-size: 13px; color: var(--slate); margin: 4px 0 12px; }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
#reports { background: #f8fafc; }
.section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.count { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--gray); border-radius: 999px; padding: 5px 11px; }
.count.live { background: #e3f1ea; color: #145a32; }
.count.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1e8449; }
.section-intro { font-size: 17px; color: var(--slate); margin: 0 0 28px; max-width: 760px; }
/* Compact cards: as many 240px+ columns as fit (4 across on desktop), so new dashboards slot in */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.card { background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 20px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30, 58, 82, .08), 0 14px 32px rgba(30, 58, 82, .12); }
.card .icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); margin-bottom: 12px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; }
/* "Launch dashboard" as a button */
.card .more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; background: var(--navy); color: var(--white) !important; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s ease; }
.card .more:hover { background: var(--slate); }
.card.featured { background: linear-gradient(160deg, var(--pale) 0%, var(--white) 100%); border-color: var(--light-blue); border-left: 5px solid var(--navy); color: var(--navy); }
.card.featured h3 { color: var(--navy); }
.card.featured p { color: var(--slate); }
.card.featured .icon { background: var(--navy); color: var(--white); }
.card.featured .tag { background: var(--navy); color: var(--white); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tag { background: var(--light-blue); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; border-radius: 6px; padding: 5px 8px; font-size: 11px; }

.empty { grid-column: 1 / -1; border: 1.5px dashed #c3ccd6; background: repeating-linear-gradient(-45deg, #f7f9fb 0 12px, #f2f5f8 12px 24px); border-radius: var(--radius); padding: 32px 28px; display: flex; align-items: center; gap: 18px; color: var(--slate); }
.empty .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--white); border: 1px solid var(--card-border); display: grid; place-items: center; flex: none; color: var(--slate); }
.empty .icon svg { width: 24px; height: 24px; }
.empty strong { display: block; color: var(--navy); font-size: 17px; }

.updated { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); margin: 28px 0 0; }
.updated svg { width: 16px; height: 16px; }

/* Closing band */
.cta { background: var(--pale); color: var(--navy); padding: 56px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.cta p { font-size: 17px; margin: 0; color: var(--slate); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--light-blue); }

/* Footer: slate, like OIE. Two columns (logos | contact), then a one-line policy bar */
.site-footer { background: var(--slate); color: var(--white); font-size: 15px; }
.site-footer a { color: var(--white); font-weight: 600; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.footer-logos { display: flex; align-items: center; gap: 32px; }
.footer-logos .oie img { height: 84px; width: auto; }
.footer-logos .coehp img { height: 110px; width: auto; }
.footer-contact { display: grid; grid-template-columns: auto auto; gap: 8px 48px; justify-content: start; font-style: normal; }
.footer-contact address { font-style: normal; line-height: 1.6; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-contact .links { grid-column: 1 / -1; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; margin-top: 12px; }
.footer-policy { border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-policy p { margin: 0; padding: 16px 0 20px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.footer-policy a { font-weight: 600; }
@media (min-width: 1200px) { .footer-policy p { white-space: nowrap; } }

/* Text color mix: headings near-black, body text dark gray, navy kept for the title, links and accents */
.section-head h2, .card h3, .cta h2, .empty strong { color: var(--ink); }
.card.featured h3 { color: var(--ink); }
.section-intro, .card p, .card.featured p, .empty, .updated, .cta p, .glance .note { color: var(--gray-text); }
.tagline { color: var(--gray-text); }
.tagline span { color: var(--navy); }
.glance a { color: var(--ink); }
.glance h2, .partners-label { color: var(--gray-text); }

/* Tablet and phone */
@media (max-width: 991px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .glance { max-width: 420px; }
}
@media (max-width: 781px) {
  .site-header { position: static; }
  .site-nav { width: 100%; padding-bottom: 8px; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 8px 12px 8px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 40px; gap: 32px; }
  .hero h1 { font-size: 42px; padding-top: 18px; }
  .tagline { font-size: 20px; }
  .partners { display: flex; }
  .partner-logos { gap: 16px; padding: 12px 16px; }
  .partner-logos .dese img { height: 34px; }
  .partner-logos .oie img { height: 26px; }
  .section { padding: 48px 0; }
  .empty { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-logos .oie img { height: 64px; }
  .footer-logos .coehp img { height: 86px; }
}
