*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

:root {
  --okabe-blue: #0072b2;
  --okabe-light-blue: #56b4e9;
  --okabe-red: #d55e00;
  --okabe-green: #009e73;
  --okabe-yellow: #f5c710;
  --okabe-pink: #cc79a7;
  --okabe-wine: #882255;
}

a {
  color: var(--okabe-blue);
  text-decoration: underline;
  font-weight: 500;
}

a:hover {
  text-decoration: none;
}

.page {
  max-width: 992px;
  margin: 60px auto;
  padding-top: 36px;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 3rem;
  margin-top: 4rem;
}

.profile-left {
  display: flex;
  flex: 0 0 30%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

.profile-subtitle,
.profile-affiliation {
  text-align: center;
  line-height: 1.35;
}

.profile-subtitle {
  font-size: 1rem;
}

.profile-affiliation {
  color: #666;
  font-size: 0.95rem;
}

.profile-icons {
  display: flex;
  gap: 10px;
  font-size: 1.6rem;
}

.profile-icons a {
  text-decoration: none;
  color: var(--okabe-blue);
}

.profile-bio p + p {
  margin-top: 14px;
}

a.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 114, 178, 0.28);
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--okabe-blue);
}

a.cv-btn:hover {
  background: rgba(0, 114, 178, 0.08);
}

.publications h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.pub {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 1rem;
}

.pub-banner {
  flex: 0 0 128px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--okabe-blue), var(--okabe-light-blue));
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 114, 178, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-title a {
  font-weight: 400;
  text-decoration-color: var(--okabe-blue);
}

.pub a:hover {
  color: var(--okabe-blue);
  text-decoration: underline;
  text-decoration-color: var(--okabe-blue);
}

.pub-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--okabe-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 114, 178, 0.14);
}

.pub-links button {
  appearance: none;
  border: 1px solid rgba(0, 114, 178, 0.14);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--okabe-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.pub-links a:hover {
  text-decoration: none;
  background: rgba(0, 114, 178, 0.06);
  border-color: rgba(0, 114, 178, 0.22);
}

.pub-links button:hover {
  text-decoration: none;
  background: rgba(0, 114, 178, 0.06);
  border-color: rgba(0, 114, 178, 0.22);
}

body.blog {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(86, 180, 233, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(245, 199, 16, 0.18), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

body.blog a {
  color: var(--okabe-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.blog a:hover {
  text-decoration: none;
}

body.blog .page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

body.blog .hero {
  background: #fff;
  border: 1px solid rgba(0, 114, 178, 0.18);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(0, 114, 178, 0.08);
}

body.blog .title {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

body.blog .meta {
  margin-top: 14px;
  color: #5b6472;
  font-size: 1.02rem;
}

body.blog .meta strong {
  color: #1f2937;
}

/* Authors and affiliations used by blog posts */
body.blog .authors {
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2937;
}

body.blog .authors sup {
  font-size: 0.72em;
  vertical-align: super;
}

body.blog .affiliations {
  margin: 6px 0 0 0;
  color: #5b6472;
  font-size: 0.95rem;
}

body.blog .affiliations span { display:block; }

body.blog .pub-date {
  margin-top: 8px;
  color: #5b6472;
  font-size: 0.95rem;
}

body.blog .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.blog .actions a,
body.blog .actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 114, 178, 0.18);
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

body.blog .actions a.primary {
  border-color: rgba(0, 114, 178, 0.24);
  color: var(--okabe-blue);
  background: rgba(0, 114, 178, 0.1);
}

body.blog .grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

body.blog .content,
body.blog .sidebar {
  background: #fff;
  border: 1px solid rgba(0, 114, 178, 0.18);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 114, 178, 0.06);
}

body.blog .content section + section,
body.blog .sidebar section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(0, 114, 178, 0.18);
}

body.blog h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.blog h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

/* Manual divider: place `<hr class="section-divider">` in your HTML where needed */
body.blog hr.section-divider {
  height: 2px;
  border: none;
  background: rgba(0, 114, 178, 0.12);
  margin: 8px 0 8px;
}

body.blog p {
  margin: 0 0 14px;
}

body.blog .figure {
  margin: 18px 0 10px;
  padding: 18px;
  border: 1px dashed rgba(0, 114, 178, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfdff 0%, rgba(245, 199, 16, 0.06) 100%);
  color: #5b6472;
  text-align: center;
  min-height: 220px;
  display: grid;
  place-items: center;
}

body.blog .blog-figure {
  display: block;
  margin: 20px 0 18px;
  width: 100%;
  max-width: 100%;
}

body.blog .blog-figure.figure-smaller {
  width: min(60%, 720px);
  margin-left: auto;
  margin-right: auto;
}

body.blog .blog-figure.figure-smallest {
  width: min(30%, 360px);
  margin-left: auto;
  margin-right: auto;
}

body.blog .blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

body.blog .blog-figure.figure-smallest img,
body.blog .blog-figure.figure-smaller img {
  max-width: 100%;
}

body.blog .blog-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

body.blog .blog-figure object {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
}

body.blog .blog-figure figcaption {
  margin-top: 10px;
  color: #5b6472;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

body.blog .okabe-red {
  color: var(--okabe-red);
}

body.blog .okabe-pink {
  color: var(--okabe-pink);
}

body.blog .figure small {
  display: block;
  margin-top: 10px;
  color: #5b6472;
}

body.blog .steps {
  display: grid;
  gap: 16px;
}

body.blog .step-card {
  border: 1px solid rgba(0, 114, 178, 0.18);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

body.blog .step-card strong {
  display: inline-block;
  margin-bottom: 6px;
}

body.blog .slider-wrap {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 114, 178, 0.18);
  background: rgba(86, 180, 233, 0.1);
}

body.blog .slider-wrap input[type="range"] {
  width: 100%;
}

body.blog .caption {
  margin-top: 8px;
  color: #5b6472;
  font-size: 0.95rem;
}

/* Apply reference-list styling more broadly to lists in blog content */
body.blog ol,
body.blog ul {
  padding-left: 1.25rem;  
}

body.blog .refs ol,
body.blog .refs ul {
  font-size: 0.94rem;
}

body.blog .toc {
  display: grid;
  gap: 10px;
}

body.blog .toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(86, 180, 233, 0.1);
  border: 1px solid transparent;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
}

body.blog .toc a:hover {
  border-color: rgba(0, 114, 178, 0.24);
  background: #fff;
}

body.blog .note {
  padding: 14px 16px;
  border-left: 4px solid var(--okabe-blue);
  background: rgba(0, 114, 178, 0.06);
  border-radius: 0 12px 12px 0;
}

/* Theorem and Assumption boxes */
body.blog .theorem-box,
body.blog .assumption-box {
  border: 1px solid rgba(0, 114, 178, 0.10);
  background: linear-gradient(180deg, rgba(86, 180, 233, 0.03), rgba(255,255,255,0.02));
  padding: 14px 16px;
  border-radius: 12px;
  margin: 12px 0;
}

body.blog .theorem-box { border-left: 6px solid var(--okabe-yellow); }
body.blog .assumption-box { border-left: 6px solid var(--okabe-yellow); }

body.blog .theorem-box strong,
body.blog .assumption-box strong { color: #1f2937; }

@media (max-width: 900px) {
  body.blog .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  body.blog .page {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.blog .hero,
  body.blog .content,
  body.blog .sidebar {
    padding: 22px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .profile {
    flex-direction: column;
    align-items: center;
  }

  .profile-bio {
    text-align: left;
  }

  .pub {
    flex-direction: column;
  }

  .pub-banner {
    width: 100%;
    flex-basis: auto;
  }

  .page {
    padding-left: 20px;
    padding-right: 20px;
  }
}
