/* Hallmark · theme: ARA (brand) · genre: modern-minimal · shape: app screen · redesign: full · signature: the field photograph catalog · v2.0.0 */
/* Critique: a single canopy introduces the collection. Each photograph has its own readable caption beneath it. */
/* Shared glass finish for web navigation and public map panels. */
:root {
  --ara-glass-background: rgba(21, 30, 50, 0.68);
  --ara-glass-blur: 14px;
  --ara-glass-border: rgba(255, 255, 255, 0.10);
}
:root {
  --catalog-width: min(calc(100% - 48px), 1200px);
  --catalog-top: 20px;
  --catalog-hero-ink: #f1f5f9;
  --catalog-hero-media: #1d3040;
  --catalog-hero-shade: rgba(5, 15, 25, .52);
  --catalog-hero-hover: #26384d;
  --catalog-hero-heading: 'ARA Instrument Sans', 'Inter', system-ui, sans-serif;
}

.catalog-hero {
  position: relative; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-content: end; align-items: end; gap: 20px; min-height: clamp(220px, 23vw, 290px);
  border-radius: 16px; overflow: clip; padding: clamp(24px, 3.6vw, 48px);
  background: var(--catalog-hero-media); color: var(--catalog-hero-ink);
}
.catalog-hero > img, .catalog-hero::after {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: 50% 49%;
}
.catalog-hero::after { content: ''; z-index: -1; background: var(--catalog-hero-shade); }
.catalog-hero h1 {
  margin: 0; min-width: 0; text-wrap: balance; overflow-wrap: break-word; letter-spacing: -.045em;
  font: 600 clamp(38px, 4.3vw, 60px)/1.14 var(--catalog-hero-heading);
}
.catalog-hero p { margin: 8px 0 0; max-width: 50ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; }
.catalog-hero__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 24px;
  font: 550 15px/1.3 var(--catalog-hero-heading); color: var(--catalog-hero-ink);
  background: var(--ara-glass-background); border: 1px solid var(--ara-glass-border);
  backdrop-filter: blur(var(--ara-glass-blur)); -webkit-backdrop-filter: blur(var(--ara-glass-blur));
}
.catalog-hero__link .material-symbols-rounded { font-size: 19px; }
.catalog-hero__link:hover { background: var(--catalog-hero-hover); }
.catalog-hero__link:focus-visible { outline: 2px solid var(--ara-card-focus); outline-offset: 3px; }
.catalog-hero__link:active { opacity: .85; }

@media (max-width: 600px) {
  :root { --catalog-width: calc(100% - 32px); --catalog-top: 12px; }
  .catalog-hero { min-height: 210px; padding: 20px; align-items: start; flex-direction: column; justify-content: end; align-content: start; gap: 16px; }
  .catalog-hero p { max-width: 32ch; }
}

@font-face {
  font-family: 'ARA Instrument Sans';
  src: url('/fonts/navigation/instrument-sans-variable.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ara-card-surface: #151f30;
  --ara-card-line: #344255;
  --ara-card-button: #f5f8fa;
  --ara-card-button-ink: #132034;
  --ara-card-button-hover: #dbeafe;
  --ara-card-focus: #b1d9ff;
  --ara-card-photo: #223146;
  --ara-card-sheen: rgb(177 217 255 / 12%);
  --ara-card-font: 'ARA Instrument Sans', system-ui, sans-serif;
}

.ara-card-skeleton {
  position: relative; min-width: 0; overflow: hidden; background: var(--ara-card-surface);
  border: 1px solid var(--ara-card-line); border-radius: 12px; overflow-anchor: none;
}
.ara-card-photo-loading { position: relative; overflow: hidden; }
.ara-card-more {
  display: block; margin: 24px auto 0; min-width: 152px; min-height: 44px;
  padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ara-card-button); color: var(--ara-card-button-ink);
  font-family: var(--ara-card-font); font-weight: 600; font-size: 14px; line-height: 1.3;
  overflow-anchor: none;
}
.ara-card-more[hidden] { display: none; }
.ara-card-more:focus-visible { outline: 2px solid var(--ara-card-focus); outline-offset: 3px; }
@media (hover: hover) { .ara-card-more:hover { background: var(--ara-card-button-hover); } }
.ara-card-skeleton__photo { aspect-ratio: 1; background: var(--ara-card-photo); }
.ara-card-skeleton__copy { display: grid; gap: 8px; padding: 14px 12px; }
.ara-card-skeleton__copy span {
  width: 52%; height: 7px; border-radius: 3px; background: var(--ara-card-line);
}
.ara-card-skeleton__copy span:first-child { width: 74%; height: 12px; }
.ara-card-skeleton__copy span:last-child { width: 35%; }
@media (prefers-reduced-motion: no-preference) {
  .ara-card-skeleton::after, .ara-card-photo-loading::after {
    content: ''; position: absolute; inset: -20% auto -20% -65%; width: 40%;
    pointer-events: none; background: var(--ara-card-sheen); filter: blur(12px);
    animation: ara-card-sheen 2.2s ease-in-out infinite;
  }
  .ara-card-skeleton:nth-child(3n + 2)::after { animation-delay: .1s; }
  .ara-card-skeleton:nth-child(3n)::after { animation-delay: .2s; }
  @keyframes ara-card-sheen {
    0% { transform: translateX(0) skewX(-14deg); }
    78%, 100% { transform: translateX(500%) skewX(-14deg); }
  }
}
:root {
  --explorer-bg: #0b1120;
  --explorer-surface: var(--ara-card-surface);
  --explorer-media: #1d3040;
  --explorer-line: #324155;
  --explorer-ink: #f1f5f9;
  --explorer-soft: #c1ccda;
  --explorer-muted: #aebdce;
  --explorer-focus: var(--ara-card-focus);
  --explorer-hover: #26384d;
  --explorer-clear: transparent;
  --explorer-font: 'Inter', system-ui, sans-serif;
  --explorer-heading: 'ARA Instrument Sans', 'Inter', system-ui, sans-serif;
  --explorer-gap: 16px;
}

html, body { overflow-x: clip; scrollbar-width: none; }
html { background: var(--explorer-bg); }
.tree-explorer-page, .tree-explorer-page * { box-sizing: border-box; scrollbar-width: none; }
html::-webkit-scrollbar, .tree-explorer-page::-webkit-scrollbar, .tree-explorer-page *::-webkit-scrollbar { display: none; }
.tree-explorer-page [hidden] { display: none !important; }
.tree-explorer-page {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); background: var(--explorer-bg); color: var(--explorer-ink);
  font-family: var(--explorer-font); -webkit-font-smoothing: antialiased; color-scheme: dark;
}
.tree-explorer-page :focus-visible { outline: 2px solid var(--explorer-focus); outline-offset: 3px; }
.explorer-shell {
  flex: 1; width: var(--catalog-width); min-width: 0;
  margin: var(--catalog-top) auto max(64px, env(safe-area-inset-bottom));
}
.explorer-shell :where(h1,h2,h3) {
  min-width: 0; margin: 0; overflow-wrap: break-word; font-family: var(--explorer-heading);
  letter-spacing: -.025em; font-weight: 600; line-height: 1.14;
}
.explorer-shell :is(h1,h2) { text-wrap: balance; }
.explorer-shell :is(a[href],button):active { opacity: .85; }
.explorer-card__badge {
  display: inline-flex; align-items: center; gap: 8px; color: var(--explorer-ink);
  background: var(--ara-glass-background); border: 1px solid var(--ara-glass-border);
  backdrop-filter: blur(var(--ara-glass-blur)); -webkit-backdrop-filter: blur(var(--ara-glass-blur));
}
.explorer-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  border-bottom: 1px solid var(--explorer-line); margin: 8px 0 24px;
}
.explorer-toolbar .card-size-control { margin: 0; }
.explorer-switch { display: flex; gap: clamp(16px, 3vw, 32px); }
.explorer-switch a {
  display: grid; place-items: center; min-height: 52px; border-bottom: 2px solid var(--explorer-clear);
  color: var(--explorer-muted); font: 500 16px/1.3 var(--explorer-heading);
}
.explorer-switch a:hover, .explorer-switch a[aria-current] { color: var(--explorer-ink); }
.explorer-switch a[aria-current] { border-bottom-color: var(--explorer-focus); }
.explorer-switch a:focus-visible { outline-offset: -2px; }
.explorer-heading { margin: 0 0 16px; }
.explorer-shell h2 { font-size: 24px; }
.explorer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--explorer-gap); }
.explorer-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--explorer-line);
  background: var(--explorer-surface); border-radius: 14px; color: var(--explorer-ink); text-decoration: none; }
.explorer-card[href]:hover { border-color: var(--explorer-focus); }
.explorer-card__media, .explorer-grid .ara-card-skeleton__photo { aspect-ratio: 2.15; }
.explorer-card__media {
  position: relative; display: grid; place-items: center; overflow: clip;
  border-radius: 13px 13px 0 0; color: var(--explorer-muted); background: var(--explorer-media);
}
.explorer-card__media > .material-symbols-rounded { font-size: 36px; }
.explorer-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explorer-card__copy { padding: 16px; }
.explorer-card__copy h3 { font-size: 20px; }
.explorer-card__copy p, .explorer-notice p { margin: 8px 0 0; font-size: 15px; line-height: 1.48; color: var(--explorer-soft); overflow-wrap: anywhere; }
.explorer-card__badge { position: absolute; inset: 10px 10px auto auto; border-radius: 20px; padding: 4px 12px; font-size: 13px; }
.explorer-notice { padding: 24px 0; border-top: 1px solid var(--explorer-line); }
.explorer-catalog-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; color: var(--explorer-soft); }
.explorer-catalog-notice button { min-height: 44px; color: var(--explorer-focus); text-decoration: underline; text-underline-offset: 3px; }
.explorer-catalog-notice button:disabled { opacity: .65; cursor: progress; }
.explorer-notice button { margin-top: 12px; padding: 8px 16px; min-height: 44px; border-radius: 22px; background: var(--explorer-hover); color: var(--explorer-ink); }
.explorer-grid .ara-card-skeleton { border-radius: 14px; }
.explorer-grid .ara-card-skeleton__copy { padding: 16px; gap: 12px; min-height: 88px; }
@media (max-width: 850px) {
  .explorer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .explorer-toolbar { margin-bottom: 20px; padding-bottom: 12px; }
  .explorer-switch { width: 100%; justify-content: space-between; gap: 4px; }
  .explorer-switch a { font-size: 15px; }
  .explorer-shell h2 { font-size: 22px; }
  .explorer-grid { --explorer-gap: 10px; }
  .explorer-card__media, .explorer-grid .ara-card-skeleton__photo { aspect-ratio: 1.5; }
  .explorer-card__copy { padding: 12px; }
  .explorer-card__copy h3 { font-size: 17px; }
  .explorer-card__copy p { font-size: 14px; }
}
@media (max-width: 350px) {
  .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer-card__media, .explorer-grid .ara-card-skeleton__photo { aspect-ratio: 2.3; }
}
.explorer-collections {
  --explorer-collection-inset: clamp(14px, 2vw, 20px);
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.explorer-collections .explorer-card__media,
.explorer-collections .ara-card-skeleton__photo { aspect-ratio: 2; }
.explorer-collection { position: relative; }
@media (hover: hover) {
  .explorer-collection:hover { border-color: var(--explorer-focus); }
  .explorer-collection:hover .explorer-collection__link > .material-symbols-rounded:last-child { color: var(--explorer-focus); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .explorer-collection { transition: transform 160ms ease, border-color 160ms ease; }
  .explorer-collection:hover { transform: scale(1.006); }
}
.explorer-collection__copy { min-width: 0; padding: var(--explorer-collection-inset); }
.explorer-collection__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 4px;
}
.explorer-collection__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.explorer-collection__link h3 { flex: 1; font-size: clamp(18px, 2.6vw, 22px); overflow-wrap: anywhere; }
.explorer-collection__link > .material-symbols-rounded { flex: none; color: var(--explorer-muted); font-size: 20px; }
.explorer-collection__link > .material-symbols-rounded:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--explorer-media);
}
.explorer-collection__copy .explorer-collection__description {
  position: relative;
  max-width: 78ch;
  margin-top: 4px;
  white-space: pre-line;
}
.explorer-collection__description.explorer-collection__preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.explorer-collection__toggle {
  position: relative;
  display: block;
  min-height: 44px;
  margin-bottom: -6px;
  border-radius: 4px;
  color: var(--explorer-focus);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.explorer-collection__toggle:hover { text-decoration: underline; }
@media (min-width: 641px) {
  .explorer-collection--with-cover,
  .explorer-collections > .ara-card-skeleton {
    display: grid;
    grid-template-columns: minmax(0, clamp(190px, 27%, 316px)) minmax(0, 1fr);
    align-items: start;
    gap: var(--explorer-collection-inset);
    padding: var(--explorer-collection-inset);
  }
  .explorer-collection--with-cover > .explorer-card__media,
  .explorer-collections .ara-card-skeleton__photo { border-radius: 10px; }
  .explorer-collection--with-cover .explorer-collection__copy,
  .explorer-collections .ara-card-skeleton__copy { align-self: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .explorer-shell *, .explorer-shell *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
@media (scripting: none) {
  .explorer-shell .ara-card-skeleton, .explorer-shell .explorer-switch { display: none; }
}
