#container {
  font-size: 0.95rem;
  line-height: 1.55;
}

#container article > :first-child {
  margin-top: 0;
}

#container h2 {
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

#container h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

#container p {
  margin: 0.8rem 0;
}

#container a {
  color: #0645ad;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

#container a:visited {
  color: #5a2584;
}

#container a:hover {
  color: #002d72;
  text-decoration-thickness: 2px;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.profile-links li {
  display: flex;
  min-width: 0;
}

#container .profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: #f8f9fa;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
}

#container .profile-links a:hover {
  border-color: #b58181;
  background: #f7eeee;
}

.profile-links a span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.profile-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.recent-publications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.publication-card {
  position: relative;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid #b58181;
  border-radius: 0.25rem;
  background: #fafafa;
}

#container .publication-card h4 {
  margin: 0 3.5rem 0.45rem 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
}

#container .publication-card p {
  margin: 0.35rem 0 0;
}

.publication-year {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #eee4e4;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.publication-authors {
  color: var(--muted);
  font-size: 0.9rem;
}

.publications-more {
  margin: 1.25rem 0 2rem;
}

#container .publications-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

#container .publications-more a:hover {
  background: var(--accent-dark);
  color: #fff;
}

.publication-section-nav,
.supervision-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 1.5rem;
}

.supervision-status {
  margin: 1.75rem 0;
  scroll-margin-top: 1rem;
}

.supervision-group {
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  background: #fff;
}

.supervision-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  background: #f1f3f4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.supervision-summary:hover {
  background: #eee4e4;
}

.supervision-summary:focus-visible {
  outline: 3px solid #dcae48;
  outline-offset: 2px;
}

.supervision-count {
  min-width: 1.75rem;
  margin-left: auto;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.supervision-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem;
  list-style: none;
}

.supervision-entry {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid #d7b4b4;
  background: #fafafa;
}

.supervision-entry-heading {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.supervision-entry-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.supervision-year {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

#container .supervision-title,
#container .supervision-meta {
  margin: 0.4rem 0 0;
}

.supervision-title cite {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.35;
}

#container .supervision-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

#container .supervision-source {
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.supervision-loading {
  color: var(--muted);
}

.table-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.updated {
  margin-top: -0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 2rem;
  overflow-x: auto;
  border: 1px solid #aeb3b8;
  border-radius: 2px;
  overscroll-behavior-inline: contain;
}

.publications {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
}

.publications caption {
  text-align: left;
}

.publications th,
.publications td {
  padding: 0.65rem 0.7rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.publications th:last-child,
.publications td:last-child {
  border-right: 0;
}

.publications tbody tr:last-child td {
  border-bottom: 0;
}

.publications thead th {
  background: #f1f3f4;
  font-weight: 700;
}

.publications tbody tr:nth-child(even) {
  background: #fafafa;
}

.publications .authors {
  width: 25%;
}

.publications .work {
  width: 32%;
}

.publications .publication {
  width: 35%;
}

.publications .year {
  width: 8%;
  white-space: nowrap;
  text-align: center;
}

.publication-title {
  font-style: italic;
  font-weight: 700;
}

.publication-links {
  display: block;
  margin-top: 0.15rem;
}

.course,
.topic-section {
  margin: 1.25rem 0;
  padding: 0.1rem 0 0.25rem 1rem;
  border-left: 3px solid #d7b4b4;
}

.course h3,
.topic-section h3 {
  margin-top: 0.35rem;
}

.course-links,
.resource-list,
.activity-list {
  margin: 0.7rem 0 1rem;
  padding-left: 1.25rem;
}

.course-links li,
.resource-list li,
.activity-list li {
  margin: 0.45rem 0;
}

.aikido-intro {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 1.25rem 0 2rem;
}

.aikido-kanji {
  margin: 0;
  color: var(--accent);
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-size: 4.5rem;
  line-height: 0.95;
  text-align: center;
  writing-mode: vertical-rl;
}

.aikido-subtitle {
  margin-top: -0.45rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.aikido-details {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  background: #fafafa;
}

.aikido-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.9rem 0;
}

.aikido-details dt {
  font-weight: 700;
}

.aikido-details dd {
  margin: 0;
}

.byline {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.load-error {
  padding: 1rem;
  border-left: 4px solid #b3261e;
  background: #fce8e6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
