/*
 * surflog visual system — Coastal Tech, 2026
 *
 * This layer intentionally keeps the existing semantic HTML and interaction
 * code while replacing the former multicolour sticker language with the
 * visual character of the surflog app previews: luminous blue-white space,
 * navy typography, cobalt actions, soft depth and restrained line art.
 */

:root {
  --blue: #3372d9;
  --blue-dark: #245fc7;
  --blue-soft: #eaf3fc;
  --cyan: #a4d0f0;
  --sky: #f4f8fd;
  --yellow: #a4d0f0;
  --yellow-soft: #f4f8fd;
  --pink: #a4d0f0;
  --pink-soft: #f4f8fd;
  --mint: #a4d0f0;
  --mint-soft: #f4f8fd;
  --lavender: #a4d0f0;
  --lavender-soft: #f4f8fd;
  --ink: #06204d;
  --muted: #54647f;
  --line: #c7dff7;
  --paper: #ffffff;
  --soft: #f7fafe;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 54px rgba(6, 32, 77, 0.09);
  --shadow-pop: 0 18px 54px rgba(6, 32, 77, 0.09);
  --container: 1160px;
  --rounded-font:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

html {
  scroll-padding-top: 84px;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: var(--rounded-font);
  font-feature-settings: "palt" 1;
  line-height: 1.8;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #3372d9;
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
}

.narrow {
  width: min(760px, 100%);
}

.eyebrow {
  min-height: 0;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.section-title {
  max-width: 880px;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.section-copy {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.9;
}

.text-link {
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.text-link::after {
  font-size: 16px;
  transition: transform 0.18s ease-out;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* Shared chrome: the same header dimensions on every surflog page. */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #06204d14;
  background: #f7fafee8;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header .header-inner.container {
  display: flex;
  width: min(1240px, calc(100% - 96px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
}

.site-header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
}

.site-header .site-brand::before {
  content: "≋";
  display: inline-block;
  color: #4885e6;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.2em;
  transform: none;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-header .site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease-out, background .18s ease-out;
}

.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] {
  background: #3372d914;
  color: var(--blue-dark);
  transform: none;
}

.site-header .site-nav .nav-app {
  min-width: 76px;
  justify-content: center;
  margin-left: 10px;
  border: 1px solid #3372d95e;
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.site-header .site-nav .nav-app:hover {
  background: var(--blue-dark);
  box-shadow: none;
  transform: none;
}

.site-header a:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 5px;
}

.button {
  min-height: 54px;
  padding-inline: 25px;
  border-width: 1px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 13px 30px rgba(51, 114, 217, 0.23);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 36px rgba(36, 95, 199, 0.27);
}

.button-secondary {
  border-color: rgba(51, 114, 217, 0.23);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  color: var(--ink);
}

.button-secondary:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 32, 77, 0.08);
}

/* Homepage */

.app-hero {
  padding: 104px 0 120px;
  background:
    radial-gradient(ellipse at 74% 30%, rgba(164, 208, 240, 0.58) 0%, rgba(234, 243, 252, 0.42) 30%, transparent 64%),
    radial-gradient(ellipse at 20% 8%, #fff 0%, rgba(255, 255, 255, 0.65) 32%, transparent 66%),
    linear-gradient(180deg, #f8fbff 0%, #eaf3fc 100%);
}

.app-hero::before {
  display: none;
}

.app-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 8vw, 104px);
}

.app-hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.app-hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.9;
}

.app-hero-card {
  min-height: 690px;
  overflow: visible;
  border: 0;
  border-radius: 36px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.98) 0%, rgba(220, 235, 251, 0.44) 58%, transparent 76%);
  box-shadow: none;
  transform: none;
}

.app-hero-card:hover {
  box-shadow: none;
  transform: translateY(-3px);
}

.hero-app-preview {
  width: min(75%, 380px);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 76px rgba(6, 32, 77, 0.16);
}

.app-store-help {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.app-hero-content {
  min-width: 0;
}

.home-spot-search {
  max-width: 660px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(6, 32, 77, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(6, 32, 77, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-spot-search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.home-core-label {
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.home-spot-search h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.home-spot-search-count {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: #79889f;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.11em;
}

.home-spot-search-form label {
  display: block;
  margin-bottom: 7px;
  color: #304467;
  font-size: 12px;
  font-weight: 680;
}

.home-spot-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid #a3bada;
  border-radius: 15px;
  background: #fff;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.home-spot-search-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(51, 114, 217, 0.12);
}

.home-spot-search-control input {
  min-width: 0;
  width: 100%;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.home-spot-search-control input::placeholder {
  color: #79889f;
  opacity: 1;
}

.home-spot-search-control button {
  min-width: 78px;
  margin: 5px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: background 0.18s ease-out, transform 0.18s ease-out;
}

.home-spot-search-control button:hover {
  background: var(--blue-dark);
}

.home-spot-search-control button:active {
  transform: translateY(1px);
}

.home-spot-search-status {
  min-height: 21px;
  margin-top: 8px;
  color: #657792;
  font-size: 11px;
  line-height: 1.7;
}

.home-spot-results {
  max-height: 286px;
  margin-top: 10px;
  overflow-y: auto;
  border: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 32, 77, 0.09);
  list-style: none;
  overscroll-behavior: contain;
}

.home-spot-results[hidden] {
  display: none;
}

.home-spot-result + .home-spot-result {
  border-top: 1px solid rgba(6, 32, 77, 0.075);
}

.home-spot-result {
  display: flex;
  min-height: 54px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
}

.home-spot-result strong {
  font-size: 14px;
  font-weight: 710;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-spot-result span {
  margin-top: 2px;
  color: #657792;
  font-size: 11px;
  line-height: 1.45;
}

.home-spot-result[aria-selected="true"],
.home-spot-result:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.home-spot-shortcuts {
  display: flex;
  align-items: center;
  gap: 7px 13px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.home-spot-shortcuts a {
  color: #54647f;
  font-size: 11px;
  font-weight: 660;
}

.home-spot-shortcuts a:hover,
.home-spot-shortcuts .home-spot-all {
  color: var(--blue-dark);
}

.home-spot-shortcuts .home-spot-all {
  margin-left: auto;
}

.media-intro {
  padding: 120px 0 58px;
  background: #fff;
}

.media-portals {
  padding-bottom: 128px;
  background: #fff;
}

.portal-list {
  gap: 24px;
}

.portal-list-priority {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.portal-card,
.portal-card:nth-child(even),
.portal-card:hover,
.portal-card:nth-child(even):hover {
  min-height: 540px;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff 0%, #f7fafe 100%);
  box-shadow: 0 18px 54px rgba(6, 32, 77, 0.07);
  transform: none;
}

.portal-card:hover {
  box-shadow: 0 24px 64px rgba(6, 32, 77, 0.11);
  transform: translateY(-3px);
}

.portal-list-priority .portal-card-featured {
  display: grid;
  min-height: 420px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
}

.portal-card-featured .portal-copy {
  min-height: 420px;
}

.portal-card-featured .portal-art {
  min-height: 100%;
  border-top: 0;
  border-left: 1px solid rgba(6, 32, 77, 0.07);
}

.portal-copy {
  justify-content: flex-start;
  padding: clamp(34px, 4.6vw, 52px);
}

.portal-label {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.portal-copy h3 {
  margin-bottom: 17px;
  font-size: clamp(32px, 3.8vw, 47px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.portal-copy p {
  margin-bottom: 25px;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.85;
}

.portal-art {
  min-height: 220px;
  border-top: 1px solid rgba(6, 32, 77, 0.07);
  opacity: 0.92;
}

.portal-learn .portal-art,
.portal-spots .portal-art,
.portal-journal-art {
  background-color: #f4f8fd;
}

.portal-learn .portal-art {
  background-image: url("/surflog/assets/images/character-surfer.png"), radial-gradient(ellipse at center, #fff 0%, #eaf3fc 72%);
  background-position: center 55%, center;
  background-size: auto 82%, auto;
  background-repeat: no-repeat;
}

.portal-spots .portal-art {
  background-image: url("/surflog/assets/images/character-board.png"), radial-gradient(ellipse at center, #fff 0%, #eaf3fc 72%);
  background-position: center 58%, center;
  background-size: 84% auto, auto;
  background-repeat: no-repeat;
}

.portal-care .portal-art {
  background-color: #f4f8fd;
  background-image: url("/surflog/assets/images/character-sun-spot.webp"), radial-gradient(ellipse at center, #fff 0%, #eaf3fc 74%);
  background-position: center 54%, center;
  background-size: auto 86%, auto;
  background-repeat: no-repeat;
}

.portal-care .portal-art::before,
.portal-care .portal-art::after {
  display: none;
}

.portal-journal-art {
  background-image: url("/surflog/assets/images/character-cloud.png"), radial-gradient(ellipse at center, #fff 0%, #eaf3fc 72%);
  background-position: center 54%, center;
  background-size: auto 78%, auto;
  background-repeat: no-repeat;
}

.product-section {
  padding: 112px 0;
  background: var(--soft);
}

.product-section + .product-section {
  border-top: 1px solid rgba(6, 32, 77, 0.07);
}

.heading-row {
  margin-bottom: 52px;
}

.feature-grid {
  gap: 18px;
}

.feature-card,
.feature-card:nth-child(n),
.feature-card:hover {
  min-height: 244px;
  padding: 30px;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(6, 32, 77, 0.055);
  transform: none;
}

.feature-card:hover {
  box-shadow: 0 20px 48px rgba(6, 32, 77, 0.09);
  transform: translateY(-2px);
}

.feature-number {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 720;
}

.feature-card p {
  color: var(--muted);
  font-family: inherit;
  line-height: 1.8;
}

.preview-grid {
  gap: clamp(20px, 3vw, 36px);
}

.preview-card,
.preview-card:nth-child(n) {
  margin-top: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: 0 26px 68px rgba(6, 32, 77, 0.1);
}

.preview-card img {
  border-radius: 28px;
}

.brand-message {
  padding: 128px 0;
  background: linear-gradient(145deg, #245fc7 0%, #3372d9 58%, #4885e6 100%);
}

.brand-message::before,
.brand-message::after {
  display: none;
}

.brand-message h2 {
  font-size: clamp(39px, 5.8vw, 68px);
  font-weight: 740;
}

.brand-message p {
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  line-height: 1.9;
}

/* Category and editorial pages */

.breadcrumb {
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb li:not(:last-child)::after {
  color: #a3bada;
  font-weight: 500;
}

.category-hero {
  padding: 76px 0 112px;
  background:
    radial-gradient(ellipse at 80% 42%, rgba(164, 208, 240, 0.38) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, #f4f8fd 100%);
}

.category-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  gap: clamp(44px, 8vw, 96px);
}

.category-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.category-lead {
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.9;
}

.category-art {
  min-height: 360px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.art-learn,
.art-spots,
.art-journal {
  background-color: transparent;
  background-image: var(--category-art-image), radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(220, 235, 251, 0.54) 58%, transparent 75%);
  background-position: center, center;
  background-repeat: no-repeat;
}

.art-learn {
  --category-art-image: url("/surflog/assets/images/character-surfer.png");
  background-size: auto 88%, auto;
}

.art-spots {
  --category-art-image: url("/surflog/assets/images/character-board.png");
  background-size: 92% auto, auto;
}

.art-journal {
  --category-art-image: url("/surflog/assets/images/character-cloud.png");
  background-size: auto 84%, auto;
}

.art-care {
  background-color: transparent;
  background-image: url("/surflog/assets/images/character-sun-spot.webp"), radial-gradient(ellipse at center, rgba(255, 255, 255, 0.96) 0%, rgba(220, 235, 251, 0.54) 60%, transparent 76%);
  background-position: center, center;
  background-size: auto 90%, auto;
  background-repeat: no-repeat;
}

.art-care::before,
.art-care::after {
  display: none;
}

.page-section {
  padding: 112px 0;
  border-top: 1px solid rgba(6, 32, 77, 0.07);
  background: #fff;
}

.page-section-soft {
  background: var(--soft);
}

.topic-grid,
.article-grid,
.directory-grid,
.routine-grid {
  gap: 18px;
}

.topic-card,
.content-card,
.directory-card,
.routine-card,
.topic-card:nth-child(n),
.content-card:nth-child(n),
.directory-card:nth-child(n),
.routine-card:nth-child(n) {
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(6, 32, 77, 0.055);
  transform: none;
}

.topic-card:hover,
.content-card:hover,
.directory-card:hover,
.routine-card:hover {
  border-color: rgba(51, 114, 217, 0.25);
  box-shadow: 0 20px 48px rgba(6, 32, 77, 0.09);
  transform: translateY(-2px);
}

.topic-card {
  min-height: 230px;
}

.topic-icon {
  display: block;
  min-width: 0;
  height: auto;
  margin-bottom: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.topic-card h2,
.topic-card h3,
.content-card h2,
.content-card h3,
.directory-card h2,
.directory-card h3,
.routine-card h2,
.routine-card h3 {
  font-weight: 720;
}

.topic-card p,
.content-card p,
.directory-card p,
.routine-card p {
  color: var(--muted);
  font-family: inherit;
  line-height: 1.8;
}

.topic-card-link::after {
  color: var(--blue-dark);
  font-weight: 700;
}

.content-card {
  min-height: 320px;
}

.content-card-published,
.content-card-published:nth-child(n) {
  padding: 0 0 26px;
  overflow: hidden;
  border-color: rgba(6, 32, 77, 0.09);
}

.content-card-published > :not(.content-card-thumb) {
  margin-right: 26px;
  margin-left: 26px;
}

.content-card-thumb,
.content-card-published:nth-child(n) .content-card-thumb {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  margin-bottom: 25px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  transform: none;
}

.content-card-published .card-kicker {
  max-width: none;
}

.card-kicker,
.status-label {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.content-card .card-footer {
  padding-top: 24px;
  color: var(--muted);
}

.content-card-published .card-footer span:last-child,
.directory-card .status-label {
  color: var(--blue-dark);
}

.content-card-empty {
  min-height: 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.note-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 526px));
  justify-content: center;
  align-items: start;
  gap: 28px 24px;
  margin-top: 48px;
}

.note-embed-item {
  min-width: 0;
  padding: 14px 14px 16px;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(6, 32, 77, 0.07);
}

.note-embed,
.note-embed[style] {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 224px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px;
  background: #fff;
  visibility: visible !important;
}

.note-embed-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 8px 0;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.note-embed-item > a:hover {
  color: var(--blue);
}

.note-embed-item > a span {
  margin-left: 0.35em;
}

@media (max-width: 960px) {
  .note-embed-grid {
    grid-template-columns: minmax(0, 526px);
  }
}

@media (max-width: 560px) {
  .note-embed-grid {
    gap: 20px;
    margin-top: 36px;
  }

  .note-embed-item {
    padding: 8px 8px 12px;
    border-radius: 18px;
  }

  .note-embed {
    border-radius: 12px;
  }
}

@media (max-width: 533px) {
  .note-embed,
  .note-embed[style] {
    height: 200px !important;
  }
}

.directory-card,
.routine-card {
  min-height: 228px;
}

.routine-number {
  margin-bottom: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 750;
}

.spot-schema {
  gap: 42px;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 0%, #eaf3fc 100%);
  box-shadow: 0 18px 54px rgba(6, 32, 77, 0.07);
}

.schema-list li {
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.journey-section {
  padding: 104px 0;
  border-top: 1px solid rgba(6, 32, 77, 0.08);
  background: #eaf3fc;
}

.journey-links {
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(6, 32, 77, 0.1);
  border-bottom: 1px solid rgba(6, 32, 77, 0.1);
}

.journey-link,
.journey-link:nth-child(n),
.journey-link:hover,
.journey-link[aria-current="page"] {
  min-height: 142px;
  padding: 24px;
  border: 0;
  border-right: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.journey-link:last-child {
  border-right: 0;
}

.journey-link:hover,
.journey-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.6);
}

.journey-step {
  margin-bottom: 30px;
  color: var(--blue-dark);
  font-weight: 750;
}

/* Shared footer, including standalone pages that do not load site.css. */
.site-footer {
  padding: 65px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--sky);
}

.site-footer > .container {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, .5fr));
  gap: 36px;
  padding-bottom: 48px;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
}

.site-footer .footer-brand::before {
  content: "≋";
  display: inline-block;
  color: #4885e6;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.2em;
  transform: none;
}

.site-footer .footer-tagline {
  max-width: 300px;
  margin-top: 15px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-column h2 {
  margin-bottom: 15px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer .footer-column a {
  display: flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer .footer-column a + a {
  margin-top: 9px;
}

.site-footer .footer-column a:hover {
  color: var(--blue-dark);
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 5px;
}

/* Learn articles */

.guide-article,
.guide-next-section {
  --guide-rule: rgba(6, 32, 77, 0.11);
  --guide-shadow: rgba(6, 32, 77, 0.07);
  --guide-blue-readable: #245fc7;
}

.guide-hero {
  padding: 86px 0 112px;
  border-bottom: 1px solid rgba(6, 32, 77, 0.08);
  background:
    radial-gradient(ellipse at 82% 36%, rgba(164, 208, 240, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, #f4f8fd 100%);
}

.guide-story .guide-hero {
  padding-bottom: 112px;
}

.guide-hero h1 {
  margin-bottom: 30px;
  font-size: clamp(50px, 6.8vw, 82px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.guide-lead {
  color: var(--muted);
  font-family: inherit;
}

.guide-lead-main {
  color: var(--ink);
  font-weight: 650;
}

.guide-lead-sub {
  color: var(--muted);
  font-family: inherit;
  line-height: 1.9;
}

.guide-meta {
  gap: 8px;
}

.guide-meta span,
.guide-meta time {
  padding: 5px 10px;
  border: 1px solid rgba(51, 114, 217, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #54647f;
  font-weight: 650;
}

.guide-character-accent {
  filter: drop-shadow(0 18px 28px rgba(6, 32, 77, 0.11));
  opacity: 0.78;
}

.guide-story-intro,
.guide-rules-intro,
.guide-equipment-intro,
.guide-terms-intro,
.guide-flashcards,
.guide-story-section,
.guide-story-finale,
.guide-rules-conclusion,
.guide-equipment-conclusion,
.guide-terms-conclusion,
.guide-soft-safety,
.guide-next-section {
  border-color: rgba(6, 32, 77, 0.09);
}

.guide-story-intro,
.guide-rules-intro,
.guide-equipment-intro,
.guide-terms-intro {
  border-block: 1px solid rgba(6, 32, 77, 0.09);
  background: #fff;
}

.guide-intro,
.guide-next-section,
.guide-story-finale,
.guide-rules-conclusion,
.guide-equipment-conclusion,
.guide-terms-conclusion,
.guide-soft-safety {
  border-top: 1px solid rgba(6, 32, 77, 0.09);
}

.guide-intro {
  border-bottom: 1px solid rgba(6, 32, 77, 0.09);
}

.guide-story-section + .guide-story-section,
.guide-section + .guide-section,
.guide-term-entry + .guide-term-entry,
.guide-reading-list li + li,
.guide-toc li + li,
.guide-toc-story li,
.guide-toc-story li + li,
.guide-source-disclaimer,
.guide-flash-answer {
  border-top-style: solid;
  border-top-width: 1px;
}

.guide-story-section,
.guide-story-finale {
  padding-block: 92px;
  background: #fff;
}

.guide-story-section:nth-of-type(even) {
  background: #f7fafe;
}

.guide-step-heading h2,
.guide-step-heading-wide h2 {
  color: var(--ink);
  font-weight: 740;
  letter-spacing: -0.04em;
}

.guide-step-heading > span {
  width: auto;
  height: auto;
  min-width: 38px;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(51, 114, 217, 0.22);
  border-radius: 999px;
  background: #eaf3fc;
  box-shadow: none;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.guide-timeline::before {
  border-top: 1px solid var(--line);
}

.guide-timeline li > span,
.guide-next-number,
.guide-school-list li > span {
  border: 1px solid rgba(51, 114, 217, 0.22);
  background: #eaf3fc;
  box-shadow: none;
  color: var(--blue-dark);
}

.guide-timeline li > div {
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 18px;
}

.guide-school-list,
.guide-rule-summary-wrap {
  border-top: 1px solid rgba(6, 32, 77, 0.12);
}

.guide-school-list li,
.guide-rule-summary,
.guide-rule-summary li {
  border-width: 1px;
}

.guide-prose,
.guide-prose p,
.guide-prose li {
  color: #304467;
  font-family: inherit;
}

.guide-prose strong {
  color: var(--ink);
}

.guide-story-intro blockquote,
.guide-reading-quote,
.guide-term-talk {
  border: 0;
  border-left: 2px solid #8ea6c9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.guide-toc {
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 22px;
  background: #f7fafe;
  box-shadow: none;
}

.guide-toc a {
  border-color: rgba(6, 32, 77, 0.09);
  background: rgba(255, 255, 255, 0.82);
  color: #304467;
}

.guide-toc a:hover {
  border-color: rgba(51, 114, 217, 0.24);
  background: #fff;
  transform: none;
}

.guide-toc a span {
  color: var(--blue-dark);
}

.guide-rental-visual,
.guide-priority-card,
.guide-bring-card,
.guide-locker-note,
.guide-glide-card,
.guide-pack-card,
.guide-cost-panel,
.guide-goal-card,
.guide-rip-card,
.guide-finale-card,
.guide-term-safety,
.guide-soft-safety details,
.guide-school-list li,
.guide-timeline li,
.guide-summary-five li {
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 20px;
  background: #f7fafe;
  box-shadow: none;
  transform: none;
}

.guide-locker-note span {
  border-width: 1px;
  border-color: rgba(6, 32, 77, 0.18);
  background: #fff;
  color: var(--blue-dark);
}

.guide-check-card:nth-child(n),
.guide-pack-card:nth-child(n),
.guide-school-list li:nth-child(n),
.guide-timeline li:nth-child(n) {
  background: #f7fafe;
}

.guide-reading-list li,
.guide-term-entry {
  border-color: rgba(6, 32, 77, 0.1);
}

.guide-reading-list li::marker {
  color: var(--blue-dark);
}

.guide-inline-link,
.guide-text-link,
.guide-sources a,
.guide-soft-safety a {
  color: var(--blue-dark);
}

.guide-inline-link {
  border: 1px solid rgba(51, 114, 217, 0.17);
  background: #fff;
  box-shadow: none;
}

.guide-flashcards {
  border-bottom: 1px solid rgba(6, 32, 77, 0.09);
  background: #f4f8fd;
}

.guide-flash-card,
.guide-flash-card:nth-child(n) {
  border: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(6, 32, 77, 0.06);
  transform: none;
}

.guide-flash-card[open] {
  border-color: rgba(51, 114, 217, 0.28);
  background: #eaf3fc;
  box-shadow: 0 18px 44px rgba(6, 32, 77, 0.09);
}

.guide-flash-card summary,
.guide-flash-answer {
  background: transparent;
}

.guide-flash-actions button {
  border: 1px solid rgba(51, 114, 217, 0.2);
  background: #fff;
  box-shadow: none;
}

.guide-rules-conclusion,
.guide-equipment-conclusion,
.guide-terms-conclusion {
  background: #eaf3fc;
}

.guide-soft-safety {
  background: #f7fafe;
}

.guide-next-section {
  background: #fff;
}

.guide-next {
  border: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #eaf3fc 100%);
  box-shadow: 0 18px 54px rgba(6, 32, 77, 0.07);
}

.guide-next:hover {
  box-shadow: 0 24px 62px rgba(6, 32, 77, 0.1);
  transform: translateY(-2px);
}

/* Privacy page uses its own HTML structure. */

.privacy-page .hero {
  padding: 94px 0 74px;
  background: radial-gradient(ellipse at 78% 30%, rgba(164, 208, 240, 0.42) 0%, transparent 58%), linear-gradient(180deg, #fff, #f4f8fd);
}

.policy {
  padding-top: 34px;
}

.policy-section {
  border-top: 1px solid rgba(6, 32, 77, 0.1);
}

.updated {
  border: 1px solid rgba(51, 114, 217, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: #54647f;
}

.policy-section p,
.policy-section li {
  color: #304467;
}

.policy .contact {
  border: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 18px;
  background: #f4f8fd;
  box-shadow: none;
}

.policy .contact a {
  color: var(--blue-dark);
}

/* Responsive */

@media (max-width: 960px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .app-hero {
    padding: 82px 0 96px;
  }

  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-card {
    min-height: 650px;
  }

  .hero-app-preview {
    width: min(62%, 370px);
  }

  .portal-card,
  .portal-card:nth-child(even) {
    min-height: 500px;
  }

  .portal-list-priority {
    grid-template-columns: 1fr;
  }

  .portal-list-priority .portal-card-featured {
    grid-column: auto;
  }

  .portal-list-priority .portal-learn {
    min-height: 440px;
  }

  .category-hero-grid {
    grid-template-columns: 1fr;
  }

  .category-art {
    min-height: 350px;
  }

  .guide-story .guide-hero {
    padding-bottom: 142px;
  }

  .guide-character-accent {
    opacity: 0.7;
  }

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

  .journey-link:nth-child(2) {
    border-right: 0;
  }

  .journey-link:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(6, 32, 77, 0.1);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .app-hero {
    padding: 70px 0 82px;
  }

  .app-hero h1 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .app-hero-card {
    min-height: 570px;
  }

  .hero-app-preview {
    width: min(84%, 340px);
    border-radius: 24px;
  }

  .media-intro {
    padding-top: 86px;
  }

  .media-portals,
  .product-section,
  .page-section,
  .journey-section {
    padding-block: 82px;
  }

  .portal-card,
  .portal-card:nth-child(even) {
    min-height: auto;
  }

  .portal-art {
    min-height: 190px;
  }

  .portal-list-priority .portal-card-featured {
    display: flex;
    min-height: auto;
  }

  .portal-card-featured .portal-copy {
    min-height: 340px;
  }

  .portal-card-featured .portal-art {
    min-height: 220px;
    border-top: 1px solid rgba(6, 32, 77, 0.07);
    border-left: 0;
  }

  .portal-list-priority .portal-learn .portal-copy {
    min-height: 300px;
  }

  .portal-list-priority .portal-learn .portal-art {
    min-height: 165px;
  }

  .preview-grid {
    display: flex;
    width: calc(100% + 18px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 18px 32px 0;
    scroll-snap-type: x mandatory;
  }

  .preview-card,
  .preview-card:nth-child(n) {
    width: min(82vw, 330px);
    min-width: min(82vw, 330px);
    scroll-snap-align: start;
  }

  .category-hero {
    padding: 58px 0 86px;
  }

  .category-hero h1 {
    font-size: clamp(43px, 12vw, 60px);
  }

  .category-art {
    min-height: 290px;
  }

  .content-card-empty {
    display: none;
  }

  .guide-hero {
    padding-top: 60px;
  }

  .guide-story-section,
  .guide-story-finale {
    padding-block: 72px;
  }

  .guide-toc {
    border-radius: 18px;
  }

  .guide-flash-card,
  .guide-flash-card:nth-child(n) {
    border-radius: 18px;
  }

}

@media (max-width: 560px) {
  .section-title {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .home-spot-search {
    padding: 19px;
    border-radius: 19px;
  }

  .home-spot-search-heading {
    align-items: flex-start;
  }

  .home-spot-search-count {
    padding-top: 4px;
  }

  .home-spot-search-control {
    min-height: 56px;
  }

  .home-spot-search-control input {
    padding-inline: 13px;
    font-size: 14px;
  }

  .home-spot-search-control button {
    min-width: 65px;
    padding-inline: 12px;
  }

  .home-spot-shortcuts .home-spot-all {
    width: 100%;
    margin-top: 3px;
    margin-left: 0;
  }

  .app-hero-card {
    min-height: 510px;
  }

  .hero-app-preview {
    width: min(90%, 300px);
  }

  .portal-copy {
    padding: 30px;
  }

  .feature-card,
  .feature-card:nth-child(n) {
    min-height: 220px;
  }

  .journey-links {
    grid-template-columns: 1fr;
  }

  .journey-link,
  .journey-link:nth-child(n) {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid rgba(6, 32, 77, 0.1);
  }

  .journey-link:last-child {
    border-bottom: 0;
  }

}

@media (max-width: 1080px) {
  .site-header .header-inner.container,
  .site-footer > .container {
    width: calc(100% - 56px);
  }

  .site-header .site-nav {
    gap: 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 140px;
  }

  .site-footer {
    padding-top: 50px;
  }

  .site-footer > .container {
    width: calc(100% - 40px);
  }

  .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .site-footer .footer-intro {
    grid-column: 1 / -1;
  }

  .site-header .header-inner.container {
    width: calc(100% - 40px);
    min-height: 0;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
  }

  .site-header .site-brand {
    width: 100%;
    font-size: 24px;
  }

  .site-header .site-nav {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    padding: 8px 0 10px;
    border-top: 1px solid #06204d12;
    gap: 3px;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 18px;
  }

  .site-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .site-nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .site-header .site-nav .nav-app {
    min-width: 48px;
    margin-left: 0;
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 380px) {
  .site-header .header-inner.container,
  .site-footer > .container {
    width: calc(100% - 32px);
  }

  .site-header .site-nav a {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
