:root {
  --bg: #f4eee4;
  --panel: rgba(255, 252, 247, 0.82);
  --panel-strong: rgba(255, 252, 247, 0.94);
  --ink: #19232d;
  --muted: #5e6973;
  --line: rgba(25, 35, 45, 0.12);
  --accent: #0b7a75;
  --accent-strong: #095f5b;
  --accent-warm: #c56634;
  --shadow: 0 28px 64px rgba(25, 35, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(11, 122, 117, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(197, 102, 52, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #efe7da 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: 10rem;
  right: 4rem;
  background: rgba(11, 122, 117, 0.16);
}

body::after {
  width: 14rem;
  height: 14rem;
  bottom: 6rem;
  left: 4rem;
  background: rgba(197, 102, 52, 0.14);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-strong);
}

[id] {
  scroll-margin-top: 7rem;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 252, 247, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-warm));
  color: #fffdf8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--accent);
  color: #fffdf8;
  transform: translateY(-1px);
}

.site-main {
  margin-top: 2rem;
}

.content-panel {
  display: flow-root;
  padding: clamp(1.5rem, 3vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.content-panel > *:first-child {
  margin-top: 0;
}

.content-panel > *:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #13202a;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  border-top: 1px solid var(--line);
}

h1 + h2 {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

p,
li {
  font-size: 1.05rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 1rem 1rem 0;
  background: rgba(197, 102, 52, 0.08);
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel-strong);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

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

code {
  padding: 0.14rem 0.34rem;
  border-radius: 0.45rem;
  background: rgba(11, 122, 117, 0.09);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
}

.md-figure {
  margin: 1.5rem 0;
}

.bio-section {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(14rem, 1fr);
  gap: 1rem 1.75rem;
  align-items: start;
  justify-content: space-between;
}

.bio-section > h2 {
  grid-column: 1 / -1;
}

.bio-section > p {
  grid-column: 1;
  margin-top: 0;
  max-width: none;
}

.bio-section > .bio-copy {
  grid-column: 1;
}

.bio-copy > p:first-child {
  margin-top: 0;
}

.bio-copy > p:last-child {
  margin-bottom: 0;
}

.md-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.md-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.md-figure--avatar {
  width: fit-content;
  max-width: none;
  margin: 0;
}

.md-image--avatar {
  width: auto;
  max-width: none;
  height: clamp(10.75rem, 15vw, 12.75rem);
  border-radius: 1.6rem;
}

.bio-section > .md-figure--avatar {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: start;
}

.home-interest-block ul,
.home-news-block ul,
.home-education-card ul {
  margin: 0;
}

.home-interest-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-interest-card--approach::before,
.home-interest-card--task::before {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-interest-card--approach::before {
  content: "Approach";
}

.home-interest-card.home-interest-card--task {
  border-left-color: var(--accent-warm);
}

.home-interest-card--task::before {
  content: "Task";
  color: var(--accent-warm);
}

.home-interest-card {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 8px 20px rgba(25, 35, 45, 0.06);
}

.home-interest-card > h3 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.08rem;
}

.home-interest-card > p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-news-block ul {
  display: grid;
  gap: 0.9rem;
}

.home-news-block li {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 1rem 1rem 0;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 10px 22px rgba(25, 35, 45, 0.06);
}

.home-role-card,
.home-education-card {
  margin: 1rem 0 0;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 14px 30px rgba(25, 35, 45, 0.08);
}

.home-role-card--compact {
  padding-bottom: 1rem;
}

.home-role-card > h3,
.home-education-card > ul {
  margin-top: 0;
}

.home-role-card > p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-role-card > ul {
  margin-top: 0.9rem;
}

.home-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-role-grid > .home-role-card {
  margin-top: 0;
}

.home-education-block {
  display: grid;
  gap: 1rem;
}

.home-education-card ul {
  padding-left: 0;
  list-style: none;
}

.home-education-card > ul > li {
  margin: 0;
}

.home-education-card > ul > li + li {
  margin-top: 0.9rem;
}

.home-education-card ul ul {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  list-style: circle;
}

.publications-page .publications-lead {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 10px 22px rgba(25, 35, 45, 0.06);
  color: var(--muted);
}

.publications-page .pub-section {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(255, 252, 247, 0.76);
  box-shadow: 0 16px 30px rgba(25, 35, 45, 0.08);
}

.publications-page .pub-section > h2 {
  margin: 0;
  padding: 0;
  border-top: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}

.publications-page .pub-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(25, 35, 45, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
}

.publications-page .pub-card > h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.publications-page .pub-card > p {
  margin: 0.45rem 0 0;
}

.publications-page .pub-card > p:first-of-type {
  color: #30404d;
}

.publications-page .pub-card > p + p {
  color: var(--muted);
  font-size: 0.98rem;
}

.publications-page .pub-card > .contribution-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.8rem 0 0;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid #0b7a75;
  border-radius: 0 6px 6px 0;
  background: rgba(236, 247, 245, 0.82);
  color: #30404d;
  font-size: 0.94rem;
  line-height: 1.5;
}

.publications-page .contribution-note strong {
  margin-right: 0.35rem;
  color: #0b7a75;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.publications-page > h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.35rem;
  font-size: 1.125rem;
}

.publications-page > p:not(.publications-lead) {
  margin: 0.35rem 0 0;
}

.publications-page > p.contribution-note {
  margin-top: 0.45rem;
  font-size: 0.94rem;
  line-height: 1.4;
}

.publications-page .pub-card > .md-figure--feature {
  margin-top: 0.9rem;
}

.publications-page .award-highlights,
.projects-page .award-highlights {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border: 1px solid rgba(11, 122, 117, 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(245, 251, 250, 0.98), rgba(236, 247, 245, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.publications-page .award-highlights li,
.projects-page .award-highlights li {
  margin: 0.2rem 0;
  color: #2c3c47;
}

.publications-page .award-highlights li::marker,
.projects-page .award-highlights li::marker {
  color: #0b7a75;
}

.publications-page .award-highlights strong,
.projects-page .award-highlights strong {
  color: #0b7a75;
}

.projects-page .project-lead {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 10px 22px rgba(25, 35, 45, 0.06);
  color: var(--muted);
}

.projects-page .project-hero {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(11, 122, 117, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(252, 247, 239, 0.9));
  box-shadow: 0 18px 34px rgba(25, 35, 45, 0.09);
}

.projects-page .project-hero > h2 {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.projects-page .project-hero-note {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

.projects-page .project-map {
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(25, 35, 45, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
}

.projects-page .project-map-group-label {
  margin: 0.35rem 0 0.65rem;
  color: #6b747c;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.projects-page .mermaid {
  min-width: 680px;
  text-align: center;
}

.projects-page .mermaid svg {
  height: auto;
  max-width: 100%;
}

.projects-page .mermaid .nodeLabel p {
  line-height: 1.35;
}

.projects-page .mermaid .edgeLabel {
  background: rgba(249, 246, 239, 0.95);
  color: #48515b;
  font-size: 0.92rem;
  font-style: normal;
  letter-spacing: 0.01em;
}

.projects-page .mermaid .edgeLabel rect {
  fill: rgba(249, 246, 239, 0.95) !important;
  stroke: none !important;
  rx: 6;
  ry: 6;
}

.projects-page .mermaid .edgeLabel p,
.projects-page .mermaid .edgeLabel span,
.projects-page .mermaid .edgeLabel foreignObject div {
  color: #48515b !important;
  font-style: normal !important;
  font-weight: 500;
}

.projects-page .mermaid-fallback {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
}

.projects-page .project-paper-grid,
.projects-page .project-thread-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.projects-page .project-paper-grid--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-page .project-paper-card,
.projects-page .project-thread-card {
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 12px 24px rgba(25, 35, 45, 0.07);
}

.projects-page .project-paper-card > h3,
.projects-page .project-thread-card > h2,
.projects-page .project-thread-card > h3 {
  margin-top: 0;
}

.projects-page .project-paper-card > p,
.projects-page .project-thread-card > p {
  margin: 0.5rem 0 0;
  color: #30404d;
}

.projects-page .project-paper-card > .project-paper-meta {
  margin: -0.1rem 0 0.35rem;
  color: #6b747c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-page .project-paper-links {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.projects-page .project-threads {
  margin-top: 2rem;
}

.projects-page .project-threads > h2 {
  margin-bottom: 0.9rem;
}

.projects-page .project-thread-card--wide {
  grid-column: 1 / -1;
}

.md-code-block {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(25, 35, 45, 0.04);
}

.md-code {
  font-family: "IBM Plex Mono", monospace;
}

.md-figure--feature {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.md-inline-image {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.md-inline-image--icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.45rem;
  vertical-align: -0.15em;
}

.md-inline-image--logo {
  width: auto;
  height: clamp(2.2rem, 4vw, 2.85rem);
  padding: 0.2rem 0.35rem;
  margin-right: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(25, 35, 45, 0.08);
  vertical-align: -0.4em;
}

.md-inline-image--sony-logo {
  width: auto;
  height: clamp(1.55rem, 2.8vw, 1.95rem);
  padding: 0.12rem 0.28rem;
  margin-right: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(25, 35, 45, 0.08);
  vertical-align: -0.3em;
}

.md-inline-image--brand-logo {
  width: auto;
  height: clamp(1.35rem, 2.5vw, 1.7rem);
  padding: 0.12rem 0.28rem;
  margin-right: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(25, 35, 45, 0.08);
  vertical-align: -0.28em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
  }

  .projects-page .project-paper-grid--trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.65;
  }

  .site-shell {
    width: min(100% - 1rem, 100%);
  }

  .content-panel {
    padding: 1.25rem;
    border-radius: 1.4rem;
  }

  .bio-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-interest-block {
    grid-template-columns: 1fr;
  }

  .home-role-grid {
    grid-template-columns: 1fr;
  }

  .projects-page .project-paper-grid,
  .projects-page .project-thread-grid {
    grid-template-columns: 1fr;
  }

  .projects-page .mermaid {
    min-width: 560px;
  }

  .bio-section > h2,
  .bio-section > .bio-copy,
  .bio-section > p,
  .bio-section > .md-figure--avatar {
    grid-column: 1;
    grid-row: auto;
  }

  .md-figure--avatar {
    width: auto;
    margin: 0 auto 1.25rem;
  }

  .md-image--avatar {
    width: min(100%, 14rem);
    height: auto;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
  }

  td {
    padding: 0.8rem 0.95rem;
    border-bottom: 0;
  }
}

.flow-diagram {
  display: grid;
  gap: 0;
  justify-items: stretch;
}

.flow-stage {
  padding: 0.8rem 1rem 1rem;
  border: 1px solid #d7e3e7;
  background: #edf4f6;
}

.flow-stage--sft {
  border-color: #e4d6c2;
  background: #f8f1e7;
}

.flow-stage-title {
  margin-bottom: 0.7rem;
  text-align: center;
  color: #6b747c;
  font-size: 0.95rem;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow-node:hover {
  border-color: var(--accent-warm);
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem 0;
  color: #8a8f98;
}

.flow-arrow::before,
.flow-arrow::after {
  content: "";
  width: 1px;
  height: 0.55rem;
  background: #8a8f98;
}

.flow-arrow::after {
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #8a8f98;
  background: none;
}

.flow-arrow > span {
  margin: 0.1rem 0;
  padding: 0.1rem 0.5rem;
  background: #f4eee4;
  color: #4a5560;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .flow-row {
    grid-template-columns: 1fr;
  }
}

.flow-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-node-tag {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent-warm);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .flow-row--2,
  .flow-row--4 {
    grid-template-columns: 1fr;
  }
}

.flow-row--1 {
  grid-template-columns: minmax(0, 16rem);
  justify-content: center;
}

.flow-node--core {
  border-color: var(--accent-warm);
  background: #fff3e6;
}

@media (max-width: 720px) {
  .flow-row--1 {
    grid-template-columns: 1fr;
  }
}

.flow-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flow-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.flow-row--3 > .flow-node .flow-node-tag,
.flow-row--3 > .flow-col > .flow-node:first-child .flow-node-tag {
  min-height: 2.35rem;
}

@media (max-width: 720px) {
  .flow-row--3 {
    grid-template-columns: 1fr;
  }
}

.flow-stage + .flow-stage {
  margin-top: 1rem;
}

.flow-row--h {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-row--h .flow-node {
  width: 14rem;
}

.flow-arrow--h {
  flex-direction: row;
  padding: 0 0.3rem;
}

.flow-arrow--h::before,
.flow-arrow--h::after {
  width: 0.8rem;
  height: 1px;
}

.flow-arrow--h::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #8a8f98;
  border-right: 0;
}

.flow-arrow--h > span {
  margin: 0 0.15rem;
}

@media (max-width: 720px) {
  .flow-row--h {
    flex-direction: column;
  }

  .flow-row--h .flow-node {
    width: 100%;
  }

  .flow-arrow--h {
    flex-direction: column;
    padding: 0.3rem 0;
  }

  .flow-arrow--h::before {
    width: 1px;
    height: 0.8rem;
  }

  .flow-arrow--h::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #8a8f98;
    border-bottom: 0;
  }
}

.flow-node {
  position: relative;
  padding: 0.7rem 0.5rem;
  border: 1.3px solid #c9b28f;
  background: #fffaf2;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
  text-decoration: none;
}

.flow-node[target="_blank"]::after {
  content: "\2197";
  position: absolute;
  top: 0.25rem;
  right: 0.45rem;
  color: #a8501f;
  font-size: 0.9rem;
  line-height: 1;
}

.flow-node[target="_blank"] {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.flow-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .flow-row--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .flow-row--5 {
    grid-template-columns: 1fr;
  }
}
