/* Lochaber Weather - Shipping page (wxais.php), Nov 2026 */
.ais-intro { color: var(--muted); max-width: 80ch; }
.ais-arr { vertical-align: -3px; margin-right: 4px; fill: currentColor; opacity: .85; }

.ais-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.ais-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.ais-tile span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.ais-tile strong { display: block; font: 600 1.3rem/1.25 "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; margin: 3px 0; }
.ais-tile em { display: block; font-style: normal; font-size: .85rem; color: var(--muted); }

.ais-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; min-width: 0; }
.ais-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.ais-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.ais-card-head h2 { margin: 0; }
.ais-card-head a { font-size: .88rem; }
.ais-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); max-width: none !important; }

.ais-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ais-views button { font: inherit; font-size: .84rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.ais-views button:hover { border-color: var(--accent); }
.ais-views button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.ais-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ais-map iframe { display: block; width: 100%; height: min(70vh, 640px); min-height: 380px; border: 0; }

.ais-key { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--muted); }
.ais-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.ais-key i.dia { width: 9px; height: 9px; border-radius: 1px; background: #9aa3ad; transform: rotate(45deg); }

.ais-wind { display: flex; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ais-w { flex: 1 0 74px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-align: center; }
.ais-w + .ais-w { border-left: 1px solid var(--border); }
.ais-w.night { background: color-mix(in srgb, var(--surface) 82%, #000 18%); }
[data-theme="light"] .ais-w.night { background: color-mix(in srgb, var(--surface) 92%, #1d3c6e 8%); }
.ais-w img { width: 40px; height: 40px; }
.ais-w-t { font-weight: 700; font-size: .85rem; }
.ais-w-d { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.ais-w strong { font: 600 1.15rem/1.1 "Space Grotesk", Inter, sans-serif; }
.ais-w em { font-style: normal; font-size: .75rem; color: var(--muted); }

.ais-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ais-two .ais-card { margin: 0; }
.ais-card p { line-height: 1.55; max-width: none !important; }
.ais-links { list-style: none; margin: 0; padding: 0; }
.ais-links li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ais-links li:last-child { border-bottom: 0; }
.ais-links a { font-weight: 600; }
.ais-links span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.ais-foot { font-size: .8rem; color: var(--muted); margin-top: 16px; }

@media (max-width: 900px) { .ais-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ais-two { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ais-tile strong { font-size: 1.1rem; } .ais-card { padding: 14px 12px; } .ais-map iframe { min-height: 420px; } }

/* ---- Ships near Corran (our own receiver, ais-data.php) ---- */
.aisd-live { font-size: .8rem; font-weight: 700; color: var(--green); }
.aisd-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px;
  animation: aisd-pulse 2s ease-in-out infinite; }
.aisd-live.is-old { color: var(--muted); } .aisd-live.is-old::before { animation: none; }
@keyframes aisd-pulse { 50% { opacity: .3; } }
.aisd-intro { margin: -4px 0 12px; }
.aisd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.aisd-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.aisd-stats span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.aisd-stats strong { display: block; font: 600 1.4rem/1.2 "Space Grotesk", Inter, sans-serif; }
.aisd-stats em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aisd-grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 16px; align-items: start; }
.aisd-fig { margin: 0; }
.aisd-plot { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; }
.aisd-plot .ring { fill: none; stroke: var(--border); }
.aisd-plot .ax { stroke: var(--border); stroke-dasharray: 2 4; }
.aisd-plot .rl { fill: var(--muted); font-size: 10px; }
.aisd-plot .cp { fill: var(--text); font-size: 12px; font-weight: 700; }
.aisd-plot .sh { stroke: rgba(0, 0, 0, .45); stroke-width: 1; cursor: help; }
.aisd-plot .aton { fill: #9aa3ad; opacity: .8; }
.aisd-plot .me { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.aisd-fig figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; text-align: center; }
.aisd-tablewrap { overflow-x: auto; min-width: 0; }
#main-copy .aisd-t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.aisd-t th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.aisd-t td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.aisd-t tr:last-child td { border-bottom: 0; }
.aisd-t td a { font-weight: 600; }
.aisd-t small { display: block; color: var(--muted); font-size: .78rem; margin-top: 1px; }
.aisd-t td span { color: var(--muted); font-size: .8em; }
.aisd-t td:nth-child(2), .aisd-t td:nth-child(4) { white-space: nowrap; }
.aisd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.aisd-none { color: var(--muted); }
.aisd-act { margin-top: 14px; }
.aisd-act h3 { margin: 0 0 6px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.aisd-hr { display: block; width: 100%; height: auto; max-height: 90px; }
.aisd-hr rect { fill: var(--accent); opacity: .7; }
.aisd-hr rect:hover { opacity: 1; }
.aisd-hr text { fill: var(--muted); font-size: 10px; }
@media (max-width: 900px) { .aisd-grid { grid-template-columns: 1fr; } .aisd-fig { max-width: 360px; margin: 0 auto; } .aisd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .aisd-t thead { display: none; }
  .aisd-t tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "dist heard" "doing doing";
    gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
  .aisd-t tr:last-child { border-bottom: 0; }
  .aisd-t td { border: 0; padding: 0; }
  .aisd-t td:nth-child(1) { grid-area: name; }
  .aisd-t td:nth-child(2) { grid-area: dist; }
  .aisd-t td:nth-child(2) small { display: inline; margin-left: 4px; }
  .aisd-t td:nth-child(3) { grid-area: doing; color: var(--text); }
  .aisd-t td:nth-child(4) { grid-area: heard; color: var(--muted); font-size: .8rem; text-align: right; }
}
