/* Avenquill public site — scoped polish, 2026-09-19.
   Keep pre-existing /css/aurelia-*.css assets in place: they are shared dependencies,
   not theme names shown to visitors. This file adjusts only the Avenquill microsite. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { min-width: 0; }
.aur-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255,253,249,.97);
  border-bottom: 1px solid rgba(47,38,29,.09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.aur-header-inner { min-width: 0; }
.aur-header .aur-brand { flex-shrink: 0; min-width: 0; }
.aur-header .aur-brand-copy { min-width: 0; }
.aur-header .aur-nav { min-width: 0; }
.aur-header .aur-nav a { white-space: nowrap; }
.aur-shell, .aur-hero-grid, .aur-living-grid,
.aur-hero-copy, .aur-living-copy, .aur-hero-preview, .aur-living-preview,
.aur-resources, .aur-resource-grid, .aur-resource-card {
  min-width: 0;
  max-width: 100%;
}
/* Both illustrations are approved Avenquill composites; no second phone overlay. */
.aur-hero-preview, .aur-living-preview {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #fbfaf7;
  border: 1px solid rgba(39,31,24,.12);
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(47,38,29,.10);
}
.aur-living-preview { background:#f8f4ec; }
.aur-living-preview figcaption {
  display:block;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(47,38,29,.58);
}
.aur-hero-preview > img, .aur-living-preview > img {
  display:block;
  width:100%;
  max-width:100%;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
}
.aur-resource-card img { max-width:100%; height:auto; }
.aur-hero-preview, .aur-living-preview { width: 100% !important; margin: 0 !important; transform: none !important; }
.aur-living-preview > img { display: block; width: 100%; height: auto !important; max-height: none !important; object-fit: contain !important; }
.aur-living-preview { padding: clamp(7px, 1vw, 12px) !important; }
.aur-living-preview figcaption { position: static !important; display: block; margin: 11px 5px 1px !important; }
.aur-resource-grid > *, .aur-capabilities-grid > *, .aur-principles-grid > * { min-width: 0; }
.aur-resource-card { overflow-wrap: anywhere; }
main [id], main :target { scroll-margin-top: 115px; }
@media (min-width: 1100px) {
  .aur-hero .aur-shell, .aur-living .aur-shell {
    width: min(calc(100% - clamp(44px, 6vw, 100px)), 1400px) !important;
    max-width: 1400px !important;
  }
  .aur-hero-grid {
    grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr) !important;
    gap: clamp(28px, 3.7vw, 72px) !important;
  }
  .aur-living-grid {
    grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr) !important;
    gap: clamp(28px, 4vw, 72px) !important;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .aur-hero-grid, .aur-living-grid {
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr) !important;
    gap: clamp(20px, 3vw, 38px) !important;
    align-items: center;
  }
  .aur-hero h1 { font-size: clamp(38px, 5vw, 64px); }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 130px; }
  .aur-header-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    align-items: center;
    padding-block: 10px !important;
  }
  .aur-header .aur-brand { flex: 1 1 auto; }
  .aur-header .aur-brand-copy strong { font-size: clamp(14px, 4vw, 20px); }
  .aur-header .aur-brand-copy small { font-size: 10px; }
  .aur-header .aur-nav {
    display: flex !important;
    flex: 1 0 100%;
    gap: clamp(16px, 4.5vw, 26px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .aur-header .aur-nav::-webkit-scrollbar { display: none; }
  .aur-header .aur-nav a { flex: 0 0 auto; font-size: 11px; }
  .aur-hero .aur-shell, .aur-living .aur-shell, .aur-shell {
    width: calc(100% - 36px) !important;
    max-width: 100% !important;
    margin-inline: auto;
  }
  .aur-hero-grid, .aur-living-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: clamp(24px, 7vw, 38px) !important;
  }
  .aur-hero-copy, .aur-living-copy { width: 100%; max-width: 100% !important; }
  .aur-hero h1 { font-size: clamp(38px, 10vw, 64px); line-height: 1.03; overflow-wrap: normal; }
  .aur-hero-preview, .aur-living-preview { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .aur-hero-preview img, .aur-living-preview img { display:block; width:100%; height:auto !important; }
  .aur-hero-facts { display:flex; flex-wrap:wrap; gap: 10px 18px; }
  .aur-resource-grid, .aur-capabilities-grid, .aur-principles-grid { grid-template-columns: minmax(0,1fr) !important; }
  .aur-resource-card { min-width:0; }
  .aur-docs-shell { width:calc(100% - 36px) !important; max-width:100% !important; }
  .aur-docs-grid { grid-template-columns:minmax(0,1fr) !important; }
  .aur-docs-content, .aur-docs-content pre, .aur-docs-content table { max-width: 100%; }
  .aur-docs-content pre, .aur-docs-table { overflow-x:auto; }
  .aur-guide-card, .aur-privacy-grid, .aur-support-grid { min-width:0; }
  .aur-privacy-grid, .aur-support-grid { grid-template-columns:minmax(0,1fr) !important; }
  main [id], main :target { scroll-margin-top: 138px; }
}
@media (max-width: 390px) {
  .aur-header .aur-brand-mark { display:none; }
  .aur-hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .aur-header .aur-nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .aur-header { scroll-behavior:auto; }
}
