/* Shared visual language: silver mist, harbor blue and reflected violet. */
:root { --ink: #21364d; --accent: #355d83; --soft: #edf1f5; --line: #dce4eb; --bg: #f5f6f8; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #f5f6f8; color: #21364d; }
body main { max-width: 1280px; padding-top: 24px; }
body .navbar { background: rgba(249,250,252,.96); border-bottom: 1px solid #dce4eb; box-shadow: none; }
body .nav-container { max-width: 1280px; }
body .nav-link.active { color: #294f77; background: #e7edf5; }
body .brand { display: none; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #667eac; outline-offset: 4px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.harbor-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; font-size: 13px; }
.harbor-tools > a { color: #52667e; text-decoration: none; letter-spacing: .06em; }
.harbor-tools > a span { color: #81739f; margin-right: 7px; }
.harbor-tools button, .save-button { border: 1px solid #d5deea; background: #fff; color: #365577; border-radius: 99px; padding: 9px 14px; min-height: 42px; font-size: 13px; }
[data-saved-count] { display: inline-block; min-width: 20px; padding: 2px 5px; border-radius: 30px; background: #eef0f8; }
.harbor-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; border: 1px solid #e0e5ed; border-radius: 24px; overflow: hidden; background: #eef1f6; }
.harbor-copy { padding: clamp(26px, 3.5vw, 48px); background: radial-gradient(ellipse at 0 0, #e4e9f5, transparent 75%); }
.harbor-eyebrow { color: #62728b; font-size: 11px; letter-spacing: .16em; font-weight: 700; margin: 0 0 16px; line-height: 1.7; }
.harbor-copy h1 { font-size: clamp(29px, 3.2vw, 45px); line-height: 1.5; letter-spacing: -.035em; font-weight: 750; margin: 24px 0 20px; }
.harbor-copy h1 span { color: #777299; }
.harbor-intro { color: #53677f; line-height: 1.95; font-size: 14px; }
.harbor-search { margin-top: 28px; }
.harbor-search label { display: block; margin-bottom: 9px; }
.harbor-search > div { display: flex; padding: 5px; background: #fff; border: 1px solid #d5deea; border-radius: 12px; }
.harbor-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px; color: #21364d; font-size: 16px; }
.harbor-search button { flex-shrink: 0; border: 0; border-radius: 8px; background: #304e71; color: #fff; padding: 12px 18px; font-size: 14px; }
.harbor-shortcuts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 15px; }
.harbor-shortcuts a, .harbor-inline-link { font-size: 13px; color: #365577; text-underline-offset: 5px; }
.harbor-count { margin: 27px 0 0; font-size: 12px; color: #61728a; }
.harbor-count span { color: #82749f; margin-right: 5px; }
.harbor-portrait { position: relative; display: block; min-width: 0; min-height: 440px; overflow: hidden; background: #24384d; color: white; }
.harbor-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,42,63,.12), transparent 45%, rgba(14,32,53,.9)); pointer-events: none; }
.harbor-portrait img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 33% center; }
.portrait-coordinate { position: absolute; z-index: 1; right: 24px; top: 25px; font-size: 11px; line-height: 1.9; letter-spacing: .1em; text-shadow: 0 1px 5px #21364d; }
.portrait-caption { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 30px; display: grid; gap: 10px; }
.portrait-caption small { font-size: 10px; letter-spacing: .2em; color: #dce3ef; }
.portrait-caption strong { font-size: 27px; letter-spacing: .1em; }
.portrait-caption strong span { float: right; }
.portrait-caption > span { color: #e1e9f3; font-size: 13px; }
.harbor-routes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 24px 0 54px; gap: 12px; }
.harbor-routes a { display: grid; gap: 12px; background: #fff; border: 1px solid #e0e5ed; border-radius: 14px; padding: 22px; text-decoration: none; transition: border-color .2s, transform .2s; }
.harbor-routes a:hover { transform: translateY(-3px); border-color: #8493b0; }
.harbor-routes a > span { font-size: 10px; letter-spacing: .12em; color: #7a6e92; }
.harbor-routes strong { color: #294560; font-size: 17px; }
.harbor-routes small { color: #64748a; font-size: 12px; line-height: 1.7; }
body .home-journal { border: 1px solid #dce4eb; border-radius: 20px; background: #edf0f6; padding: 28px; margin-bottom: 48px; }
body .home-journal__grid { gap: 22px; }
body .home-journal-card { background: transparent; border: 0; border-top: 1px solid #cdd7e4; padding: 20px 0 0; }
body .home-journal-card h3 { font-size: 19px; line-height: 1.6; }
body .home-journal-card__tag { background: #e2e7f0; color: #455b78; }
.harbor-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 0 0 24px; }
.harbor-section-heading .harbor-eyebrow { margin-bottom: 7px; }
.harbor-section-heading h2 { margin: 0; font-size: 28px; }
.harbor-section-heading > span { color: #61728a; font-size: 12px; }
body .list.list--news { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
body .card.card--news { display: flex; border: 1px solid #dce4eb; border-radius: 16px; background: #fff; overflow: hidden; content-visibility: visible; }
body .card.card--news:first-child { border-top: 1px solid #dce4eb; }
body .card.card--news:hover { background: #fff; box-shadow: 0 9px 25px #21364d0b; }
body .card.card--news .card-img-link { margin: 0; height: 190px; border-radius: 0; }
body .card.card--news .thumb { height: 190px; object-fit: cover; }
body .card.card--news .thumb-fallback { margin: 0; height: 190px; min-height: 190px; border-radius: 0; }
body .card.card--news .card-body { padding: 20px; justify-content: start; }
body .card.card--news h3 { font-size: 19px; line-height: 1.65; margin-bottom: 16px; }
body .card.card--news .card-footer { margin-top: auto; gap: 10px; flex-wrap: wrap; }
body .card h3 a { color: #263f5a; }
body .badge.date { background: #eef0f8; color: #5b567b; }
body .card, body .search-panel, body .panel { border: 1px solid #dce4eb; box-shadow: none; }
body .search-button, body .load-more, body .primary-action, body .author-journal-link { background: #345777; }
body .home-seo-intro { position: static; width: auto; height: auto; padding: 38px 0; margin: 0 0 24px; overflow: visible; clip: auto; clip-path: none; white-space: normal; border-bottom: 1px solid #dce4eb; }
body .home-seo-intro h1 { font-size: clamp(28px,4vw,45px); line-height: 1.5; }
body .home-seo-intro p { color: #566d85; line-height: 1.9; }
body .author-hero { padding: 36px; background: #eaf0f6; border-radius: 24px; gap: 40px; }
body .author-hero h1 { color: #304b6a; line-height: 1.2; }
body .author-photo img { height: 100%; object-fit: cover; border-radius: 18px; }
body .author-terms .author-term, body .journal-card { border-color: #dce4eb; border-radius: 16px; }
body .journal-hero { background: linear-gradient(110deg,#e9eef7,#f4f3f8); padding: 40px; border-radius: 24px; }
body .article-header h1 { color: #294560; line-height: 1.4; }
body .article-body { color: #31475f; }
body .site-footer { margin-top: 64px; padding: 36px 28px 22px; background: #e9eef4; border: 1px solid #d7e0eb; border-radius: 20px; color: #52677f; }
body .site-footer a { color: #355473; }
.save-button { margin-top: 12px; align-self: flex-start; }
.save-button[aria-pressed="true"] { background: #eeeaf5; color: #655281; border-color: #cfc3df; }
.saved-dialog { width: min(560px,calc(100% - 32px)); max-height: 80vh; border: 1px solid #dce4eb; border-radius: 22px; padding: 28px; color: #21364d; box-sizing: border-box; }
.saved-dialog::backdrop { background: #132a46a3; backdrop-filter: blur(5px); }
.saved-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.saved-heading h2 { margin: 0; font-size: 26px; }
.saved-heading .harbor-eyebrow { margin-bottom: 8px; }
.saved-heading button { border: 0; border-radius: 50%; width: 44px; height: 44px; background: #edf1f6; font-size: 24px; color: #304e71; flex-shrink: 0; }
.saved-note, .saved-empty { color: #596d84; font-size: 14px; line-height: 1.8; }
.saved-empty { padding: 24px 0; }
.saved-item { display: flex; align-items: center; gap: 16px; border-top: 1px solid #dce4eb; padding: 18px 0; }
.saved-item a { flex: 1; color: #304e71; text-decoration: none; line-height: 1.7; }
.saved-item button { border: 1px solid #dce4eb; background: white; color: #5b6f86; padding: 10px; border-radius: 8px; flex-shrink: 0; }
.harbor-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 10000; border-radius: 12px; padding: 14px 22px; background: #213c59; color: #fff; box-shadow: 0 8px 30px #21364d26; max-width: calc(100% - 40px); width: max-content; font-size: 14px; pointer-events: none; }
.harbor-toast:empty { display: none; }
@media (max-width: 1000px) {
  .harbor-hero { grid-template-columns: 1.1fr 1fr; }
  .harbor-routes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .list.list--news { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body main { padding-top: 18px; }
  .harbor-tools { font-size: 11px; gap: 6px; margin-bottom: 18px; }
  .harbor-tools button { font-size: 12px; padding: 8px 10px; }
  .harbor-hero { grid-template-columns: 1fr; }
  .harbor-copy { padding: 26px; }
  .harbor-copy h1 { margin-top: 16px; }
  .harbor-portrait { min-height: 320px; }
  .harbor-portrait img { object-position: center 42%; }
  .harbor-search button { padding: 10px 12px; }
  .harbor-routes { gap: 10px; margin-bottom: 34px; }
  .harbor-routes a { padding: 17px 14px; }
  .harbor-routes strong { font-size: 15px; }
  body .home-journal { padding: 22px; }
  .harbor-section-heading { align-items: start; flex-direction: column; gap: 10px; }
  body .list.list--news { grid-template-columns: 1fr; gap: 18px; }
  body .card.card--news { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: start; padding: 14px; gap: 14px; }
  body .card.card--news .card-img-link, body .card.card--news .thumb { height: 112px; border-radius: 9px; }
  body .card.card--news .thumb-fallback { height: 112px; min-height: 112px; border-radius: 9px; }
  body .card.card--news .card-body { padding: 0; }
  body .card.card--news h3 { font-size: 17px; }
  body .card.card--news .card-tags { gap: 4px; }
  body .card.card--news .badge { font-size: 10px; padding: 4px 6px; }
  body .home-journal-card > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  body .author-hero, body .journal-hero { padding: 24px; }
  body .site-footer { padding: 26px 20px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
