/* Superyacht Almanac editorial pages (news, guides, regions, travel ideas, team, desks, contact, 404).
   The sales-page look: dark navy heads (lux.css .lux-hero), ivory bodies, serif headings, gold accents,
   dark or white cards and premium forms. Loaded per page through {% block extra_head %}.
   Element rules inside .lux-ed-main use :where() so that component classes (lux-card, lux-idea, ...) win. */

.lux-ed { color: var(--lux-ink); }

/* Ivory body band under the dark head */
.lux-ed-main {
  background: var(--lux-ivory);
  padding: 80px 0 104px;
  min-height: 46vh;
}
.lux-ed-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.lux-ed-column { max-width: 70ch; margin: 0 auto; }

/* Typography inside the ivory band */
.lux-ed-main h2 {
  margin: 64px 0 18px;
  font-family: var(--lux-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--lux-ink);
}
.lux-ed-main > .lux-ed-wrap > :first-child,
.lux-ed-main > .lux-ed-wrap > .lux-ed-column > :first-child { margin-top: 0; }
.lux-ed-main h3 {
  margin: 34px 0 12px;
  font-family: var(--lux-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--lux-ink);
}
:where(.lux-ed-main) p,
:where(.lux-ed-main) li {
  color: #33384a;
  font-size: 18px;
  line-height: 1.7;
}
:where(.lux-ed-main) p { max-width: 70ch; margin: 0 0 18px; }
:where(.lux-ed-main) a {
  color: #8a6a2c;
  text-decoration: underline;
  text-decoration-color: rgba(138, 106, 44, 0.35);
  text-underline-offset: 3px;
}
:where(.lux-ed-main) a:hover { color: var(--lux-ink); text-decoration-color: var(--lux-ink); }
:where(.lux-ed-main) .quiet,
:where(.lux-ed-main) .meta { color: var(--lux-text-mute); font-size: 14px; }
:where(.lux-ed-main) .empty { color: var(--lux-text-mute); font-size: 17px; }
.lux-ed-main .prose p { max-width: 70ch; }
.lux-ed-main .lux-ed-prose p:first-child { font-size: 20px; color: var(--lux-ink); }

/* Hero variants */
.lux-ed-hero--article .lux-title { font-size: clamp(40px, 5.6vw, 72px); }
.lux-ed-hero--article .lux-lede { margin-top: 18px; }

/* Media (placeholder hero image) */
.lux-ed-media { margin: 0 0 56px; }
.lux-ed-media .ph--hero { border-radius: 0; max-height: 26rem; }

/* Related link and callouts */
.lux-ed-main .related {
  display: inline-block;
  margin: 24px 0 0;
  padding: 14px 20px;
  background: #fff;
  border-left: 2px solid var(--lux-gold);
}
.lux-ed-main .related a { text-decoration: none; font-weight: 600; }

/* News article: more news list */
.lux-ed-main .more-news { margin-top: 72px; padding-top: 40px; border-top: 1px solid #d9d4c7; }
.lux-ed-main .more-news ul { list-style: none; padding: 0; margin: 0; }
.lux-ed-main .more-news li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lux-rule);
  font-size: 17px;
}
.lux-ed-main .more-news time { color: #8a6a2c; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }

/* Tiles: white cards on ivory (news index, team index, guide lists) */
.lux-ed-main .lux-ed-tiles {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lux-ed-main .lux-ed-tiles > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--lux-rule);
}
.lux-ed-main .lux-ed-tiles time {
  color: #8a6a2c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lux-ed-main .lux-ed-tiles h2 {
  margin: 12px 0 12px;
  font-size: 30px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.lux-ed-main .lux-ed-tiles h2 a { color: var(--lux-ink); text-decoration: none; }
.lux-ed-main .lux-ed-tiles h2 a:hover { color: #8a6a2c; }
.lux-ed-main .lux-ed-tiles p { font-size: 16px; line-height: 1.55; margin: 0; }
.lux-ed-main .lux-ed-team a {
  display: block;
  font-family: var(--lux-serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--lux-ink);
  text-decoration: none;
}
.lux-ed-main .lux-ed-team a:hover { color: #8a6a2c; }
.lux-ed-sub { display: block; margin-top: 6px; color: var(--lux-text-mute); font-size: 15px; font-family: inherit; }

/* Guide lists: serif rows with a summary line */
.lux-ed-main .guide-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--lux-rule); }
.lux-ed-main .guide-list li { padding: 22px 0; border-bottom: 1px solid var(--lux-rule); }
.lux-ed-main .guide-list a {
  display: inline-block;
  font-family: var(--lux-serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--lux-ink);
  text-decoration: none;
}
.lux-ed-main .guide-list a:hover { color: #8a6a2c; }
.lux-ed-main .guide-list p { margin: 8px 0 0; font-size: 15px; }

/* Plain link lists (desks, data guides) */
.lux-ed-main .lux-ed-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  border-top: 1px solid var(--lux-rule);
}
.lux-ed-main .lux-ed-links li { border-bottom: 1px solid var(--lux-rule); }
.lux-ed-main .lux-ed-links a {
  display: block;
  padding: 22px 0;
  font-family: var(--lux-serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--lux-ink);
  text-decoration: none;
}
.lux-ed-main .lux-ed-links a:hover { color: #8a6a2c; }
.lux-ed-main ul.lux-ed-plain { list-style: none; padding: 0; margin: 0 0 24px; }
.lux-ed-main ul.lux-ed-plain li { padding: 10px 0; border-bottom: 1px solid var(--lux-rule); }

/* Dark idea cards (travel ideas, places, sample weeks) */
.lux-ed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}
.lux-ed-main .lux-idea {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--lux-ink);
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lux-ed-main .lux-idea:nth-child(3n + 2) { background: var(--lux-ink-2); }
.lux-ed-main .lux-idea:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(11, 18, 32, 0.25); }
.lux-ed-main .lux-idea .idea-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 260px;
  padding: 28px;
  color: #fff;
}
.lux-ed-main .lux-idea .idea-link:hover { text-decoration: none; }
.lux-ed-main .lux-idea .kicker {
  margin: 0 0 14px;
  color: var(--lux-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lux-ed-main .lux-idea h3 {
  margin: 0;
  padding: 0;
  font-size: 34px;
  line-height: 1.05;
  color: #fff;
  overflow-wrap: anywhere;
}
.lux-ed-main .lux-idea .idea-link:hover h3 { color: var(--lux-gold-soft); }
.lux-ed-main .lux-idea p { margin: 14px 0 0; color: #c9cfda; font-size: 16px; line-height: 1.55; max-width: none; }
.lux-ed-main .lux-idea .best { margin-top: auto; padding-top: 18px; color: var(--lux-gold-soft); font-size: 14px; }

/* Yacht grids sit on ivory, cards keep their dark look */
.lux-ed-main .lux-ed-yachts { margin: 0 0 24px; }
.lux-ed-main .lux-ed-action { margin: 24px 0 0; }
.lux-ed-main .lux-ed-action a { font-weight: 600; letter-spacing: 0.04em; }

/* Facts: the record grid from lux.css on ivory */
.lux-ed-main .lux-record div { border-bottom-color: #d9d4c7; }

/* Guide: contents, FAQ, sources, next steps */
.lux-ed-main .toc {
  margin: 0 0 56px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--lux-rule);
}
.lux-ed-main .toc h2 { margin: 0 0 14px; font-size: 26px; }
.lux-ed-main .toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.lux-ed-main .toc li { counter-increment: toc; font-size: 16px; }
.lux-ed-main .toc li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 12px;
  color: #8a6a2c;
  font-family: var(--lux-serif);
  font-weight: 600;
}
.lux-ed-main .lux-ed-faq { margin-top: 72px; }
.lux-ed-main .lux-ed-faq h3 {
  margin: 0;
  padding: 26px 0 10px;
  border-top: 1px solid var(--lux-rule);
  font-size: 26px;
}
.lux-ed-main .lux-ed-faq p { margin: 0 0 8px; }
.lux-ed-main .lux-ed-sources { margin-top: 64px; }
.lux-ed-main .lux-ed-sources ul { padding-left: 1.1rem; margin: 12px 0 0; }
.lux-ed-main .lux-ed-sources li { font-size: 15px; margin: 6px 0; }
.lux-ed-main .guide-cta {
  margin-top: 72px;
  padding: 40px 40px 32px;
  background: var(--lux-ink);
}
.lux-ed-main .guide-cta h2 { margin: 0 0 16px; color: #fff; font-size: 40px; }
.lux-ed-main .guide-cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.lux-ed-main .guide-cta li { padding: 12px 0; border-bottom: 1px solid var(--lux-line); }
.lux-ed-main .guide-cta a { color: var(--lux-gold-soft); text-decoration: none; font-family: var(--lux-serif); font-size: 24px; }
.lux-ed-main .guide-cta a:hover { color: #fff; }

/* Panels: forms and contact blocks */
.lux-ed-panel {
  margin: 72px 0 0;
  padding: 40px;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--lux-rule);
}
.lux-ed-panel h2 { margin-top: 0; }

/* Premium form: labels above inputs, gold submit */
.lux-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 0;
}
.lux-ed-main .lux-form h2 { margin: 0 0 4px; font-size: 36px; }
.lux-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--lux-text-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lux-form input:not([type="hidden"]):not([type="checkbox"]),
.lux-form select,
.lux-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfc8b6;
  border-radius: 0;
  background: #fff;
  color: var(--lux-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.lux-form textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.lux-form input:focus-visible,
.lux-form select:focus-visible,
.lux-form textarea:focus-visible,
.lux-form button:focus-visible {
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}
.lux-form button[type="submit"] {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--lux-gold);
  border-radius: 0;
  background: var(--lux-gold);
  color: var(--lux-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.lux-form button[type="submit"]:hover { background: var(--lux-gold-soft); border-color: var(--lux-gold-soft); }
.lux-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b64432;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.lux-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Breadcrumbs used outside the hero (includes/breadcrumbs.html) */
.lux-crumbs { color: var(--lux-text-mute); }
.lux-crumbs a { color: var(--lux-text-mute); }
.lux-crumbs a:hover { color: #8a6a2c; }

/* 404 */
.lux-ed-search { margin-top: 0; }

/* Responsive */
@media (max-width: 960px) {
  .lux-ed-grid, .lux-ed-main .lux-ed-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lux-ed-main .lux-ed-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lux-ed-main { padding: 64px 0 72px; }
  .lux-ed-grid, .lux-ed-main .lux-ed-tiles, .lux-ed-main .lux-ed-links { grid-template-columns: minmax(0, 1fr); }
  .lux-ed-main h2 { margin-top: 48px; }
  .lux-ed-main .lux-idea .idea-link { min-height: 0; padding: 24px; }
  .lux-ed-main .lux-idea h3 { font-size: 30px; }
  .lux-ed-main .more-news li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lux-ed-main .toc { padding: 22px 20px; }
  .lux-ed-main .toc ol { grid-template-columns: minmax(0, 1fr); }
  .lux-ed-main .guide-cta { padding: 28px 22px; }
  .lux-ed-panel { padding: 24px 20px; margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .lux-ed-main .lux-idea { transition: none; }
}
