/* ==========================================================================
   default-page.css — Default (fallback) page template
   Used when a WP page has no specific Template assigned. Layout mirrors the
   IFS / Platforms practice pages. Extends yardos.css + osrs.css primitives.

   Add to functions.php (oxalis_assets):

     if ( is_page() && ! is_page_template() ) {
         wp_enqueue_style( 'oxalis-yardos',   OXALIS_URI . '/css/yardos.css',       [ 'oxalis-main'   ], OXALIS_VERSION );
         wp_enqueue_style( 'oxalis-osrs',     OXALIS_URI . '/css/osrs.css',         [ 'oxalis-yardos' ], OXALIS_VERSION );
         wp_enqueue_style( 'oxalis-ifs',      OXALIS_URI . '/css/ifs.css',          [ 'oxalis-osrs'   ], OXALIS_VERSION );
         wp_enqueue_style( 'oxalis-default',  OXALIS_URI . '/css/default-page.css', [ 'oxalis-ifs'    ], OXALIS_VERSION );
     }

   Add to oxalis_body_classes:

     if ( is_page() && ! is_page_template() ) { $classes[] = 'page-default-template'; }
   ========================================================================== */


/* ──────────────────────────────────────────────────────────────────────────
   1. HERO — single-column (no right-side image, unlike IFS/Platforms hero)
   ────────────────────────────────────────────────────────────────────────── */
.ox-default-hero {
  background: #FAF4E5;
  padding: 0 178px;
  box-sizing: border-box;
  display: flow-root;
}
.ox-default-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 96px 0 64px;
}
.ox-default-hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 820px;
}


/* ──────────────────────────────────────────────────────────────────────────
   2. BODY — the_content() rendered with Oxalis typography
   Targets the wrapper so editor block output picks up brand styles automatically.
   ────────────────────────────────────────────────────────────────────────── */
.ox-default-body {
  padding-top: 0;
  padding-bottom: 0;
}
.ox-default-body__article {
  max-width: 820px;
  margin: 0;
}
.ox-default-body__content {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: #13252A;
}

/* Headings — Tenez display, sized per Figma scale */
.ox-default-body__content h1,
.ox-default-body__content h2,
.ox-default-body__content h3,
.ox-default-body__content h4,
.ox-default-body__content h5,
.ox-default-body__content h6 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  line-height: 1.05;
  color: #13252A;
  margin: 32px 0 16px;
}
.ox-default-body__content h1 { font-size: 56px; letter-spacing: -0.02em; }
.ox-default-body__content h2 { font-size: 46px; }
.ox-default-body__content h3 { font-size: 32px; }
.ox-default-body__content h4 { font-size: 24px; }
.ox-default-body__content h5 { font-size: 20px; }
.ox-default-body__content h6 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.ox-default-body__content > *:first-child { margin-top: 0; }
.ox-default-body__content > *:last-child  { margin-bottom: 0; }

/* Body copy */
.ox-default-body__content p {
  margin: 0 0 16px;
}
.ox-default-body__content p:last-child { margin-bottom: 0; }

/* Links */
.ox-default-body__content a {
  color: #CC5200;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.ox-default-body__content a:hover { color: #FF6600; }

/* Inline emphasis */
.ox-default-body__content strong { font-weight: 600; }
.ox-default-body__content em     { font-style: italic; }

/* Lists */
.ox-default-body__content ul,
.ox-default-body__content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.ox-default-body__content li { margin-bottom: 8px; }
.ox-default-body__content li > ul,
.ox-default-body__content li > ol { margin-top: 8px; margin-bottom: 0; }

/* Blockquote */
.ox-default-body__content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid #FF6600;
  font-family: 'Tenez', serif;
  font-size: 24px;
  line-height: 1.4;
  color: #13252A;
}
.ox-default-body__content blockquote p:last-child { margin-bottom: 0; }

/* Code */
.ox-default-body__content code {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: #FAEDDA;
  border: 1px solid #E5D9BD;
}
.ox-default-body__content pre {
  margin: 16px 0;
  padding: 16px;
  background: #1F3035;
  color: #F3F4F4;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}
.ox-default-body__content pre code { background: none; border: none; padding: 0; color: inherit; }

/* Images & figures */
.ox-default-body__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}
.ox-default-body__content figure { margin: 24px 0; }
.ox-default-body__content figcaption {
  font-size: 14px;
  color: #646D6B;
  margin-top: 8px;
}

/* Horizontal rule */
.ox-default-body__content hr {
  border: none;
  border-top: 1px solid #717C7F;
  margin: 32px 0;
}

/* Tables */
.ox-default-body__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.ox-default-body__content th,
.ox-default-body__content td {
  padding: 12px 16px;
  border: 1px solid #717C7F;
  text-align: left;
}
.ox-default-body__content th {
  font-weight: 600;
  background: #FAEDDA;
}


/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ox-default-hero        { padding: 0 48px; }
  .ox-default-hero__inner { padding: 64px 0 32px; }
  .ox-default-body__content h1 { font-size: 42px; }
  .ox-default-body__content h2 { font-size: 36px; }
  .ox-default-body__content h3 { font-size: 26px; }
}
@media (max-width: 768px) {
  .ox-default-hero { padding: 0 24px; }
  .ox-default-body__content h1 { font-size: 32px; }
  .ox-default-body__content h2 { font-size: 28px; }
  .ox-default-body__content h3 { font-size: 22px; }
}


/* ──────────────────────────────────────────────────────────────────────────
   LIGHT HEADER OVERRIDE — applied via body class .page-default-template
   (added in oxalis_body_classes; same pattern as IFS / OSRS / Platforms).
   ────────────────────────────────────────────────────────────────────────── */
.page-default-template { background: #FAF4E5; }
.page-default-template .ox-header {
  background: #FAF4E5;
  border-top-color: #FAF4E5;
}
/* Self-contained: make .ox-header__inner transparent so the cream header bg
   shows through (avoids needing to also edit main.css). */
.page-default-template .ox-header__inner {
  background: transparent;
}
.page-default-template .ox-nav__link {
  background: #FAEDDA;
  color: #13252A;
}
.page-default-template .ox-nav__link:hover { background: #F5E0C0; }
.page-default-template .ox-header__divider { background: #D4C9B8; }
.page-default-template .ox-header__logo    { background: #FAF4E5; }
.page-default-template .ox-logo__text      { color: #13252A; }
.page-default-template .ox-nav__list       { background: #FAF4E5; }
.page-default-template .ox-nav__dropdown   { background: #FAF4E5; }
.page-default-template .ox-nav__dropdown a { color: #13252A; }
.page-default-template .ox-nav__dropdown a:hover { background: #F0E8D5; }
.page-default-template .ox-logo .ox-logo__svg path,
.page-default-template .ox-logo .ox-logo__svg circle { fill: #13252A; }
.page-default-template .ox-nav__chevron path { stroke: #FF6600; }
