/* Blog side of the design system: maps design/tokens.css (copied here as tokens.css, with Material scheme
   selectors added by build_seo.py) onto Material's variables, so the blog matches the landing page. */
:root, [data-md-color-scheme] {
  --md-default-bg-color: var(--bg);
  --md-default-fg-color: var(--text);
  --md-default-fg-color--light: var(--muted);
  --md-default-fg-color--lighter: var(--border);
  --md-default-fg-color--lightest: var(--border);
  --md-primary-fg-color: var(--bg);
  --md-primary-bg-color: var(--text);
  --md-accent-fg-color: var(--accent);
  --md-typeset-color: var(--text);
  --md-typeset-a-color: var(--accent);
  --md-code-bg-color: var(--surface);
  --md-text-font-family: var(--font-text);
  --md-code-font-family: var(--font-code);
  --md-footer-bg-color: var(--bg);
  --md-footer-fg-color: var(--text);
}
body { background: var(--bg); }
.md-grid { max-width: var(--wrap); }
.md-typeset { font-size: 0.85rem; line-height: var(--lh-body); }
.md-typeset h1 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: var(--lh-head); }
.md-typeset h2, .md-typeset h3 { font-weight: 700; line-height: var(--lh-head); }
.md-typeset a { text-underline-offset: 0.15em; }
.md-typeset a:hover { text-decoration-thickness: 2px; }

.shisso-header { background: var(--bg); color: var(--text); box-shadow: none; border-bottom: 1px solid var(--border); }
.shisso-header .md-header__inner { gap: 1rem; padding: 0.4rem 0.8rem; }
.shisso-brand { color: var(--text); display: inline-flex; margin-right: auto; }
.shisso-brand .wordmark { height: 24px; width: auto; }
.shisso-brand { align-items: center; gap: 0.45rem; }
.shisso-brand .brand-kanji { color: var(--accent); font-size: 1.15rem; font-weight: 700; line-height: 1; letter-spacing: 0.04em;
  font-family: "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", sans-serif; }
.wm-hole { stroke: var(--bg); }
.shisso-nav .site-nav { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; font-size: 0.8rem; }
.shisso-nav a { color: var(--text); }
.shisso-nav a:hover { text-decoration: underline; }
.shisso-header .md-header__button { color: var(--text); }
/* WS-060: one navigation. The four sections are always visible; no drawer and no left sidebar on any page
   (the right-hand table of contents stays on posts). */
.md-sidebar--primary, .md-sidebar--post, .md-header__button[for="__drawer"] { display: none !important; }
@media screen and (max-width: 59.984375em) {
  .shisso-header { height: auto; }
  .shisso-header .md-header__inner { flex-wrap: wrap; height: auto; gap: 0; padding: 0.2rem 0.4rem 0.35rem; }
  .shisso-brand .wordmark { height: 20px; }
  .shisso-nav { order: 10; flex-basis: 100%; }
  .shisso-nav .site-nav { gap: 1.25rem; padding: 0.1rem 0.4rem 0; font-size: 0.85rem; }
  .md-typeset [id] { scroll-margin-top: 4.6rem; }  /* the header is two rows here */
}
.md-search__form { background: var(--surface); }
.md-search__input { color: var(--text); }

.shisso-footer { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); }
.shisso-footer__inner { padding: 1.5rem 1rem; font-size: 0.75rem; }
.shisso-footer__inner p { margin: 0 0 0.35rem; }
.shisso-footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.shisso-footer .footer-links a { color: var(--text); }
.shisso-muted { color: var(--muted); }
/* WS-060: without the left sidebar the content column would run the full grid width; keep a reading measure and
   centre it (the right-hand table of contents on posts sits beside it). Wide tables scroll inside their own box. */
@media screen and (min-width: 60em) {
  .md-content { max-width: 44rem; margin-inline: auto; }
}
