[hidden] {
  display: none !important;
}
.kinoti-header,
.kinoti-footer {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}
.kinoti-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--layout-inset, 5vw);
  border-bottom: 1px solid var(--rule);
  min-height: 88px;
}
.kinoti-wordmark {
  display: block;
  flex: 0 0 auto;
  margin-right: auto;
  line-height: 0;
}
.kinoti-wordmark :is(img, svg) {
  display: block;
  width: 126px;
  height: 44px;
  max-width: none;
}
.kinoti-header a,
.kinoti-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}
.kinoti-header a:hover,
.kinoti-footer a:hover,
.kinoti-header [aria-current='page'],
.kinoti-footer [aria-current='page'] {
  text-decoration: underline;
}
.kinoti-header [aria-current],
.kinoti-footer [aria-current] {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 2px;
}
.kinoti-context {
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
}
body.kinoti-menu-open {
  overflow: hidden;
}
body.kinoti-menu-open .kinoti-primary [aria-current] {
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}
.kinoti-header :focus-visible,
.kinoti-footer :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.kinoti-primary {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.kinoti-primary a,
.kinoti-explore summary {
  padding-block: 0.65rem;
  font-size: 0.9375rem;
}
.kinoti-explore {
  position: static;
  border: 0;
  padding: 0;
  margin: 0;
}
.kinoti-explore summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  min-width: 7rem;
  text-align: right;
}
.kinoti-explore summary::-webkit-details-marker {
  display: none;
}
.kinoti-explore summary::after {
  content: '+';
  display: inline-block;
  margin-left: 0.6rem;
  font-weight: 400;
}
.kinoti-explore[open] summary::after {
  content: '−';
}
.kinoti-explore nav {
  position: absolute;
  top: calc(100% - 1px);
  right: 5vw;
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  width: min(28rem, 90vw);
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  padding: 1rem 1.5rem;
  box-shadow: 0 1rem 2rem transparent;
  margin: 0;
}
.kinoti-explore nav a {
  padding: 0.85rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
}
.kinoti-explore nav a:last-child {
  border-bottom: 0;
}
.kinoti-footer {
  display: block;
  padding: var(--space-section, 3rem) var(--layout-inset, 5vw);
  border-top: 1px solid var(--rule);
}
.kinoti-footer-thesis {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.kinoti-footer > nav:not(.contact-methods) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 1.75rem;
  margin-bottom: 2rem;
}
.kinoti-footer nav a {
  font-size: 0.9375rem;
}
.kinoti-footer p:not(:first-child) {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60rem;
  margin: 0.7rem 0;
}
@media (min-width: 851px) {
  .kinoti-header:has(.kinoti-primary [aria-current]) .kinoti-context {
    display: none;
  }
}
@media (max-width: 850px) {
  .kinoti-primary {
    display: none;
  }
  .kinoti-header {
    min-height: 76px;
    gap: 1rem;
    padding-block: 0.75rem;
  }
}
@media (max-width: 600px) {
  .kinoti-footer > nav:not(.contact-methods) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .kinoti-context {
    display: none;
  }
}
@media (max-width: 360px) {
  .kinoti-menu-hint {
    display: none;
  }
  .kinoti-wordmark :is(img, svg) {
    width: 112px;
    height: 39px;
  }
}
@media print {
  .kinoti-header nav,
  .kinoti-explore,
  .kinoti-footer > nav:not(.contact-methods) {
    display: none;
  }
}

.kinoti-footer a {
  text-underline-offset: 0.2em;
}
