:root {
  color-scheme: light;
  --ink: #132e43;
  --body: #526171;
  --paper: #f4f7f9;
  --line: #dae2e8;
  --link: #214c6c;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; font-size: 1rem; line-height: 1.6; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible { outline: 3px solid #a65310; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h3, p { margin: 0; }
svg { display: block; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; left: 1rem; top: -6rem; padding: 0.75rem 1rem; background: white; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 2.2rem; height: 2.75rem; object-fit: contain; }
.brand strong { display: block; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.015em; }
.brand-divider { color: #876a27; padding-inline: 0.2rem; font-weight: 400; }
.brand-region { display: block; color: var(--body); font-size: 0.72rem; margin-top: 0.2rem; }
.header-note { color: var(--body); font-size: 0.78rem; text-align: right; }
.directory { padding-block: 1.75rem 2rem; }
.directory-introduction { display: grid; gap: 0.4rem; margin-bottom: 1.3rem; }
h1 { font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.04em; }
.directory-introduction > p { color: var(--body); font-size: 0.85rem; }
.application-list { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.application { min-width: 0; }
.application-link { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.application-link:hover, .application-link:focus-visible { transform: translateY(-4px); border-color: #8da3b5; box-shadow: 0 10px 24px #132e4310; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.application-category { color: var(--body); font-size: 0.75rem; }
.application-number { color: #627181; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.card-title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.application-icon { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; flex-shrink: 0; color: var(--link); background: #eef3f7; border-radius: 7px; }
.application-icon svg { width: 26px; height: 26px; }
.application-icon-logo { overflow: hidden; background: var(--ink); }
.application-icon img { width: 40px; height: 40px; object-fit: contain; }
.application h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.035em; }
.application-description { color: var(--body); font-size: 0.86rem; line-height: 1.7; }
.application-note { color: var(--body); font-size: 0.75rem; margin-top: 0.35rem; }
.card-footer { margin-top: auto; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.card-action { display: inline-flex; gap: 0.6rem; align-items: center; font-size: 0.82rem; font-weight: 650; }
.card-action svg { width: 16px; height: 16px; transition: transform 220ms ease; }
.application-link:hover .card-action svg { transform: translate(2px, -2px); }
.application-domain { color: #627181; font-size: 0.68rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }
.footer-content { display: flex; flex-direction: column; justify-content: space-between; gap: 0.3rem; padding-block: 1rem; font-size: 0.72rem; color: var(--body); }
@keyframes intro-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.intro-step { animation: intro-enter 550ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (min-width: 42rem) {
  .container { width: min(100% - 4rem, 68rem); }
  .application-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .application-link { padding: 1.4rem; }
  .directory-introduction { grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
  .directory-introduction > p { justify-self: end; text-align: right; }
  .footer-content { flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .application-link:hover, .application-link:focus-visible { transform: none; }
}
