/* PostAI Language — custom styles */

:root {
  --blue: #003366;          /* deep navy used for headings/text on white */
  --blue-hero: #1d4068;     /* softer navy used only for the hero background */
  --accent: #c8893a;        /* soft orange used for section labels and decorative tags */
  --link: #a16207;          /* stronger amber reserved for inline links, distinct from --accent */
  --muted: #5a6070;
}

body { font-family: 'Source Serif 4', Georgia, serif; }

/* Hero band on home page */
.hero-band {
  background: var(--blue-hero);
  color: white;
  padding: 4rem 2rem 3rem;
  margin: -1.5rem -1.5rem 2rem;
}
.hero-inner { max-width: 760px; }
.arc-tag {
  display: inline-block;
  background: rgba(200,137,58,0.2);
  border: 1px solid rgba(200,137,58,0.4);
  color: #e8a84a;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}
.hero-band h1 { color: white; font-size: 2.4rem; font-weight: 300; }
.hero-band em { color: rgba(255,255,255,0.65); }
.hero-band strong { color: rgba(255,255,255,0.55); font-weight: 300; }
.hero-band p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.hero-meta { margin-top: 1.5rem; }
/* Quarto's .page-columns .column-* table rules paint the <table> element itself
   with background:#fff, which is what was creating the white rectangle. */
.hero-meta table {
  font-size: 0.88rem;
  border: none;
  margin-bottom: 0;
  background: transparent !important;
}
/* Bootstrap's .table rule paints every cell with background-color: var(--bs-table-bg)
   and box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg). Force both off and
   force light text — !important guarantees we win regardless of cosmo overrides. */
.hero-meta td,
.hero-meta th,
.hero-meta tr {
  background-color: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0.2rem 1rem 0.2rem 0 !important;
}
.hero-meta td strong { color: white !important; }

/* Section labels */
.section-label { color: var(--accent) !important; letter-spacing: 0.02em; font-size: 1rem; font-weight: 500; }
h2.section-label { font-size: 1rem; }

/* Framework cards */
.framework-card {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.framework-card h3 { color: var(--blue); font-size: 1rem; margin-bottom: 0.4rem; }

/* Sub-project cards */
.sp-card {
  border: 1px solid #d8dde8;
  border-radius: 4px;
  padding: 1.4rem;
  margin-bottom: 0.5rem;
  transition: box-shadow 0.2s;
}
.sp-card:hover { box-shadow: 0 4px 16px rgba(0,51,102,0.1); }
.sp-card strong { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.01em; font-weight: 600; }
.sp-card h3 { color: var(--blue); margin: 0.4rem 0 0.6rem; font-size: 1rem; }
.sp-card p { color: #2a2a2a; font-size: 0.92rem; line-height: 1.5; }
.sp-card em { color: var(--muted); font-size: 0.85rem; }

/* Conditions cards */
.cond-card {
  background: #f0f4fa;
  border-radius: 4px;
  padding: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

/* Position titles on recruitment page */
.position-title { color: var(--blue); border-bottom: 2px solid var(--accent); padding-bottom: 0.3rem; }

/* Tables on recruitment page */
table { font-size: 0.9rem; }

/* Language toggle — appears at the top of localized pages */
.lang-toggle {
  text-align: right;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  margin: -0.5rem 0 1.5rem;
}
.lang-toggle a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}
.lang-toggle a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Language toggle inside the hero band (homepage) */
.lang-toggle-hero {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.4);
  padding-bottom: 0.1rem;
}
.lang-toggle-hero:hover { color: #e8a84a !important; border-bottom-color: #e8a84a; }

/* Call-to-action link at the bottom of position cards on recruitment landing */
.position-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.position-link:hover { color: var(--blue); text-decoration-thickness: 2px; }
