/* Tide guides. A thin layer over styles.css that reuses the site's own design tokens
   (--navy, --blue, --sky, --ink, --muted, --line, --paper, --canvas, --radius, --shadow)
   so these pages read as part of atmosphr.com.au rather than as a separate microsite.
   Everything is scoped under .tide-page: nothing here can reach the weather app.
   No token is redefined, so the [data-theme="contrast"] overrides in styles.css apply here too. */

/* The app's .shell is 1180px because the homepage puts a 310px side column in it.
   These are reading pages with no side column, so narrow the measure and centre it
   rather than leaving an orphan gutter on the right. */
.tide-page { width: min(900px, calc(100% - 32px)); margin: 18px auto 46px; }

/* Cards ------------------------------------------------------------------ */
.tide-page .hero,
.tide-page .contents,
.tide-page .reading {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tide-page .hero { padding: 36px 38px 30px; margin-bottom: 16px; }
.tide-page .hero.compact { padding-bottom: 26px; }
.tide-page .reading { padding: 4px 38px 34px; }

/* Type ------------------------------------------------------------------- */
.tide-page h1 {
  margin: 8px 0 16px;
  color: var(--navy);
  font-size: clamp(29px, 4.2vw, 44px);
  line-height: 1.09;
  letter-spacing: -.035em;
}
.tide-page h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.18;
  letter-spacing: -.02em;
}
.tide-page h3 {
  margin: 22px 0 7px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.3;
}
.tide-page .lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
.tide-page p { margin: 0 0 14px; }
.tide-page ul, .tide-page ol { margin: 0 0 14px; padding-left: 22px; }
.tide-page li { margin-bottom: 7px; }
.tide-page blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 18px;
  border-left: 4px solid var(--blue);
  color: var(--muted);
}
.tide-page .disclosure { color: var(--muted); font-size: .84rem; }

/* Buttons ---------------------------------------------------------------- */
.tide-page .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tide-page .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: .94rem; text-decoration: none;
}
.tide-page .button:hover { background: var(--blue); border-color: var(--blue); }
.tide-page .button.secondary { background: var(--paper); color: var(--navy); border-color: var(--line); }
.tide-page .button.secondary:hover { background: var(--sky); }

/* On-this-page and breadcrumb rows --------------------------------------- */
.tide-page .contents {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px;
  padding: 13px 20px; margin-bottom: 16px; font-size: .85rem;
}
.tide-page .contents strong { color: var(--navy); }
.tide-page nav.contents[aria-label="Breadcrumb"] { box-shadow: none; background: transparent; border: 0; padding: 0 2px 2px; }
.tide-page nav.contents[aria-label="Breadcrumb"] ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); }

/* Reading sections ------------------------------------------------------- */
.tide-page .reading > section,
.tide-page .reading > aside { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.tide-page .reading > section:first-child { border-top: 0; margin-top: 0; }
.tide-page .reading .eyebrow { display: block; margin: 0 0 9px; }

/* Notice ----------------------------------------------------------------- */
.tide-page .notice {
  background: var(--sky);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.tide-page .reading > aside.notice { padding: 22px 26px; }
.tide-page .notice h2 { font-size: 1.12rem; margin-bottom: 8px; }
.tide-page .notice p:last-child { margin-bottom: 0; }
.tide-page > aside.notice { margin-bottom: 16px; }

/* Guide index and definition rows ---------------------------------------- */
.tide-page .feature-list article { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.tide-page .feature-list article:first-child { border-top: 0; }
.tide-page .feature-list article > span {
  flex: 0 0 58px;
  color: var(--blue);
  font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding-top: 4px;
}
.tide-page .feature-list h3 { margin: 0 0 5px; }
.tide-page .feature-list p { margin: 0; color: var(--muted); font-size: .93rem; }

.tide-page .split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tide-page .split h3 { margin-top: 0; }

/* Figures ---------------------------------------------------------------- */
.tide-page svg { display: block; margin-bottom: 10px; }

/* Header aside ----------------------------------------------------------- */
.tide-brand-aside { margin: 0; text-align: right; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.tide-brand-aside strong { display: block; color: var(--navy); font-size: 1rem; }

@media (max-width: 760px) {
  .tide-page .hero { padding: 26px 20px 22px; }
  .tide-page .reading { padding: 2px 20px 26px; }
  .tide-page .split { grid-template-columns: 1fr; gap: 4px; }
  .tide-page .feature-list article { flex-direction: column; gap: 5px; }
  .tide-page .feature-list article > span { flex: none; padding-top: 0; }
  .tide-brand-aside { display: none; }
}
