/* Shared style for Mathematical Modeling Laboratory website */
:root {
  --ku-blue: #0056b3;
  --ku-blue-dark: #004080;
  --ink: #243142;
  --muted: #5f6f82;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #dfe6ee;
  --nav: #26313f;
  --shadow: 0 8px 24px rgba(20, 40, 80, 0.10);
  --radius: 14px;
  --max-width: 1200px;
}
* { box-sizing: border-box; }
html { font-size: clamp(15px, 0.45vw + 13px, 18px); }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--ku-blue); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--ku-blue-dark); }
.site-header {
  background: linear-gradient(135deg, var(--ku-blue-dark), var(--ku-blue));
  color: #fff;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
  position: relative;
}
.site-header img { width: auto; height: clamp(64px, 9vw, 100px); margin-bottom: 0.75rem; }
.site-header h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; font-weight: 700; }
.language-switch { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; }
.language-switch a {
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px; padding: .35rem .75rem; font-size: .92rem; background: rgba(255,255,255,.08);
}
.site-nav { background: var(--nav); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.site-nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: .45rem .75rem;
  display: flex; justify-content: center; gap: .25rem; flex-wrap: wrap;
}
.site-nav a {
  color: white; text-decoration: none; padding: .65rem .95rem; border-radius: 999px;
  font-size: clamp(.9rem, .3vw + .82rem, 1rem); transition: background-color .2s ease, transform .2s ease;
}
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.16); }
.container { width: min(92%, var(--max-width)); margin: 0 auto; overflow: visible; }
.content {
  padding: clamp(1.1rem, 2.8vw, 2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 1.4rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
h2 { color: var(--ku-blue); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.25; margin: 1.4rem 0 .9rem; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.35; }
h4 { font-size: clamp(1rem, 1.2vw, 1.2rem); }
hr { border: 0; border-top: 2px solid rgba(0,86,179,.22); margin: 1.6rem 0; }
ul, ol { padding-left: 1.35rem; margin-left: 0; }
img { max-width: 100%; height: auto !important; }
.content img { display: block; margin: .85rem auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; white-space: normal; }
tbody { display: table; width: 100%; }
th, td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f2f5f8; font-weight: 700; }
tr:hover { background-color: #f9fbfd; }
.row { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.column { flex: 1 1 280px; min-width: min(280px, 100%); padding: .3rem; }
.wp-caption, div[id="image"] { height: auto !important; max-width: 100%; }
.site-footer { text-align: center; padding: 1.8rem 1rem; background: var(--nav); color: white; font-size: .95rem; margin-top: 2rem; }
.site-footer img { height: 52px !important; width: auto; margin-bottom: .5rem; }
.site-footer p { margin: .25rem 0; }
@media (max-width: 720px) {
  .language-switch { position: static; justify-content: center; margin-top: 1rem; }
  .site-nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .site-nav a { white-space: nowrap; }
  th, td { padding: .65rem; }
}
