/* ================================================================
   ENGINEERED FINANCE — Theme CSS v1.0
   Blueprint-minimal, architectural, hard lines.

   Load order: after {{ghost_head}} so we naturally win the cascade
   over Ghost card assets on specificity ties.

   Sections
   1.  TOKENS          — CSS custom properties, light & dark
   2.  RESET           — box-sizing, border-radius
   3.  BODY            — font, grid background, transitions
   4.  LAYOUT          — shared max-width container
   5.  HEADER          — .ef-head and children
   6.  NAV ACTIONS     — .ef-head-button, .ef-head-link, .ef-mode-toggle
   7.  HERO            — homepage site title / description
   8.  POST FEED       — .ef-post-feed and .ef-post-card
   9.  ARTICLE HEADER  — .ef-article-header and byline
   10. ARTICLE CONTENT — .gh-content (Ghost-generated class)
   11. FOOTER          — .ef-foot and children
   12. FORMS
   13. KOENIG CARDS    — .kg-* baseline
   14. COMPONENTS      — .ef-tool-lead, .ef-formula, .ef-expand
   15. READING PROGRESS
   16. ACCESSIBILITY
   ================================================================ */


/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */

:root {
  --ef-accent:  #1e5aa0;
  --ef-bg:      #f4f6f8;
  --ef-bg-2:    #eef1f5;
  --ef-text:    #0f1e2e;
  --ef-text-2:  #3f6080;   /* WCAG AA ~5.2:1 against --ef-bg-2 */
  --ef-text-3:  #aabccc;
  --ef-border:  rgba(30, 90, 160, 0.15);
  --ef-grid:    rgba(30, 90, 160, 0.04);
  --ef-mono:    'JetBrains Mono', 'Fira Code', monospace;
}

html.dark {
  --ef-accent:  #5ba4cf;
  --ef-bg:      #0b1622;
  --ef-bg-2:    #0f1e30;
  --ef-text:    #e8edf2;
  --ef-text-2:  #5c7a99;
  --ef-text-3:  #2d4a66;   /* too low contrast for footer — see §11 */
  --ef-border:  rgba(91, 164, 207, 0.2);
  --ef-grid:    rgba(100, 160, 220, 0.05);
}


/* ---------------------------------------------------------------
   2. RESET
   border-radius: 0 is a load-bearing aesthetic rule. Ghost card
   assets (loaded via {{ghost_head}}) use class selectors that beat
   a plain * rule on specificity, so !important is required here
   and only here.
   --------------------------------------------------------------- */

*,
*::before,
*::after {
  border-radius: 0 !important;
  box-sizing: border-box;
}

/* Remove default list chrome inside nav/footer — leave body lists alone */
.ef-head-nav ul,
.ef-foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ---------------------------------------------------------------
   3. BODY
   --------------------------------------------------------------- */

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.75;
  color: var(--ef-text);
  background-color: var(--ef-bg);
  background-image:
    linear-gradient(var(--ef-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ef-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}


/* ---------------------------------------------------------------
   4. LAYOUT — shared inner container
   --------------------------------------------------------------- */

.ef-inner {
  max-width: 1200px;
  padding: 0 28px;
  margin: 0 auto;
}


/* ---------------------------------------------------------------
   5. HEADER
   --------------------------------------------------------------- */

.ef-head {
  background: var(--ef-bg-2);
  border-bottom: 0.5px solid var(--ef-border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background-color 0.2s ease;
}

.ef-head-inner {
  display: flex;
  align-items: center;
  height: 60px;
  max-width: 1200px;
  padding: 0 28px;
  margin: 0 auto;
}

/* Logo slot — populated by ef-theme.js at DOMContentLoaded */
.ef-head-brand {
  min-width: 160px;
  flex-shrink: 0;
}

/* Primary navigation — Ghost {{navigation}} outputs <ul class="nav"> */
.ef-head-nav {
  flex: 1;
  margin-left: 40px;
}

.ef-head-nav .nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ef-head-nav .nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.ef-head-nav .nav a:hover,
.ef-head-nav .nav .nav-current a {
  color: var(--ef-accent);
}

/* Actions — toggle injected by JS before these links */
.ef-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 16px;
}


/* ---------------------------------------------------------------
   6. NAV ACTIONS — Subscribe button, Sign In link, mode toggle
   --------------------------------------------------------------- */

.ef-head-button,
a.ef-head-button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ef-accent);
  border: 0.5px solid var(--ef-accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ef-head-button:hover,
a.ef-head-button:hover {
  background: var(--ef-accent);
  color: var(--ef-bg);
}

.ef-head-link,
a.ef-head-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.ef-head-link:hover,
a.ef-head-link:hover {
  color: var(--ef-accent);
}

/* Dark mode toggle — injected by ef-theme.js into .ef-head-actions */
.ef-mode-toggle {
  background: transparent;
  border: 0.5px solid var(--ef-border);
  color: var(--ef-text-3);
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.15s, color 0.15s;
  margin-right: 4px;
}

.ef-mode-toggle:hover {
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}


/* ---------------------------------------------------------------
   7. HERO — homepage site title / description (used in index.hbs)
   --------------------------------------------------------------- */

.ef-hero {
  background-color: var(--ef-bg-2);
  border-bottom: 0.5px solid var(--ef-border);
  padding: 48px 0 40px;
  transition: background-color 0.2s ease;
}

.ef-hero-inner {
  max-width: 1200px;
  padding: 0 28px;
  margin: 0 auto;
}

/* Accent rule below the description block */
.ef-hero-inner::after {
  content: '';
  display: block;
  width: 40px;
  height: 0.5px;
  background: var(--ef-accent);
  margin-top: 20px;
  opacity: 0.6;
}

.ef-site-title {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--ef-text);
  line-height: 1.2;
  margin: 0 0 8px;
}

.ef-site-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ef-text-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}


/* ---------------------------------------------------------------
   8. POST FEED & CARDS (used in index.hbs)
   --------------------------------------------------------------- */

/* 1px gap grid: parent background bleeds through as hairline border */
.ef-post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--ef-border);
  padding: 0;
}

@media (max-width: 420px) {
  .ef-post-feed { grid-template-columns: 1fr; }
}


.ef-post-card {
  background: var(--ef-bg);
  padding: 24px 28px;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
}

.ef-post-card:hover {
  background: var(--ef-bg-2);
}

.ef-post-card-tag {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ef-accent);
  display: block;
  margin-bottom: 8px;
}

.ef-post-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--ef-text);
  line-height: 1.3;
  margin: 0 0 8px;
}

.ef-post-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--ef-text-2);
  line-height: 1.7;
  margin: 0 0 12px;
}

.ef-post-card-meta {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ef-text-3);
  text-transform: uppercase;
  margin: 0;
}


/* ---------------------------------------------------------------
   9. ARTICLE HEADER (used in post.hbs)
   --------------------------------------------------------------- */

.ef-article-header {
  background: var(--ef-bg-2);
  border-bottom: 0.5px solid var(--ef-border);
  padding: 28px 28px 32px;
  transition: background-color 0.2s ease;
}

.ef-article-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ef-article-tag {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ef-accent);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.ef-article-tag:hover {
  color: var(--ef-text-2);
}

.ef-article-title {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: var(--ef-text);
  line-height: 1.2;
  margin: 0 0 8px;
}

.ef-article-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--ef-text-2);
  line-height: 1.6;
  margin: 8px 0 16px;
  max-width: 640px;
}

.ef-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.ef-author-name {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  text-decoration: none;
}

.ef-author-name:hover {
  color: var(--ef-accent);
}

.ef-byline-meta {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ef-text-3);
}

/* Article body max-width wrapper (used in post.hbs) */
.ef-article-content {
  max-width: 1200px;
  padding: 0 28px;
  margin: 0 auto;
}


/* ---------------------------------------------------------------
   10. ARTICLE CONTENT — .gh-content is Ghost's generated class

   No html-prefix specificity games needed. Our CSS loads after
   {{ghost_head}} (which injects card assets), so source order
   gives us natural cascade priority on equal specificity.
   --------------------------------------------------------------- */

.gh-content {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ef-text);
  letter-spacing: 0.025em;
  padding-top: 32px;
  padding-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gh-content p,
.gh-content li {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 14px;
}

/* List spacing — zero margin-top prevents double-gap when list follows paragraph */
.gh-content ul,
.gh-content ol {
  margin-top: 0;
  margin-bottom: 14px;
}

.gh-content li {
  padding-left: 4px;
  margin-bottom: 0;
}

/* H2 — primary section break. Border-bottom replaces HR. */
.gh-content h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ef-text);
  border-bottom: 0.5px solid var(--ef-accent);
  padding-bottom: 10px;
  margin-top: 32px;
  margin-bottom: 20px;
}

/* H3 — subdued subheading; size + color distinction from body */
.gh-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ef-text-2);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* H2 border-bottom handles section breaks — HR is redundant */
.gh-content hr {
  display: none;
}

/* Links */
.gh-content a {
  color: var(--ef-accent);
  text-decoration: none;
  border-bottom: 0.5px solid var(--ef-accent);
}

.gh-content a:hover {
  opacity: 0.75;
}

/* Inline code — accent color + monospace; no background box mid-sentence */
.gh-content :not(pre) > code {
  font-family: var(--ef-mono);
  font-size: 12px;
  background: none;
  border: none;
  color: var(--ef-accent);
  padding: 0;
  letter-spacing: 0.02em;
}

/* Code blocks */
.gh-content pre {
  font-family: var(--ef-mono);
  font-size: 12px;
  background: var(--ef-bg-2);
  border: 0.5px solid var(--ef-border);
  border-left: 2px solid var(--ef-accent);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--ef-text);
  font-size: inherit;
}

/* Blockquote */
.gh-content blockquote {
  border-left: 2px solid var(--ef-accent);
  background: var(--ef-bg-2);
  font-style: normal;
  font-weight: 300;
  color: var(--ef-text-2);
  padding: 14px 20px;
  margin: 28px 0;
}

.gh-content blockquote p {
  margin-bottom: 0;
}

/* Tables */
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.gh-content th {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-text-3);
  border-bottom: 0.5px solid var(--ef-accent);
  padding: 8px 12px;
  text-align: left;
}

.gh-content td {
  font-size: 13px;
  border-bottom: 0.5px solid var(--ef-border);
  padding: 8px 12px;
}

/* Images */
.gh-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gh-content figure {
  margin: 24px 0;
}

.gh-content figcaption {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ef-text-3);
  margin-top: 6px;
  text-align: center;
}


/* ---------------------------------------------------------------
   11. FOOTER

   Dark mode footer uses explicit #3d6080 instead of --ef-text-2
   (#5c7a99) because --ef-text-3 dark (#2d4a66) is too low contrast
   against --ef-bg-2 dark (#0f1e30) for the footer's small type.
   Per design spec §3.2 note.
   --------------------------------------------------------------- */

.ef-foot {
  background: var(--ef-bg-2);
  border-top: 0.5px solid var(--ef-border);
  padding: 16px 0;
  transition: background-color 0.2s ease;
}

.ef-foot-inner {
  max-width: 1200px;
  padding: 0 28px;
  margin: 0 auto;
}

/* Ghost {{navigation type="secondary"}} outputs <ul class="nav"> */
.ef-foot-nav .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
}

.ef-foot-nav .nav a {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  text-decoration: none;
  transition: color 0.15s;
  padding: 2px 0;
}

.ef-foot-nav .nav a:hover {
  color: var(--ef-accent);
}

/* Hairline vertical separator between footer nav items */
.ef-foot-nav .nav li + li::before {
  content: '';
  display: inline-block;
  width: 0.5px;
  height: 10px;
  background: var(--ef-text-3);
  margin: 0 12px;
  vertical-align: middle;
}

html.dark .ef-foot-nav .nav li + li::before {
  background: #3d6080;
}

html.dark .ef-foot-nav .nav a {
  color: #3d6080;
}

html.dark .ef-foot-nav .nav a:hover {
  color: var(--ef-accent);
}

.ef-copyright {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  margin: 0;
}

html.dark .ef-copyright {
  color: #3d6080;
}

.ef-copyright a {
  color: var(--ef-accent);
  text-decoration: none;
}

html.dark .ef-copyright a {
  color: #5ba4cf;
}

/* Disclosure — injected by ef-theme.js */
.ef-disclosure {
  font-family: var(--ef-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--ef-text-2);
  opacity: 0.6;
}

html.dark .ef-disclosure {
  color: #3d6080;
  opacity: 0.7;
}


/* ---------------------------------------------------------------
   12. FORMS
   --------------------------------------------------------------- */

input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  background: var(--ef-bg);
  border: 0.5px solid var(--ef-border);
  color: var(--ef-text);
  padding: 8px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus {
  border-color: var(--ef-accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--ef-text-3);
}


/* ---------------------------------------------------------------
   13. KOENIG CARDS — .kg-* baseline
   Keep card containers transparent and borderless by default;
   specific card types opt in to visible treatment.
   --------------------------------------------------------------- */

.kg-card {
  margin: 24px 0;
}

/* Bookmark card */
.kg-bookmark-card {
  border: 0.5px solid var(--ef-border);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  gap: 16px;
  background: var(--ef-bg-2);
  transition: background 0.15s;
}

.kg-bookmark-container:hover {
  background: var(--ef-bg);
}

.kg-bookmark-title {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--ef-text);
  margin-bottom: 4px;
}

.kg-bookmark-description {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ef-text-2);
}

.kg-bookmark-metadata {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ef-text-3);
  margin-top: 8px;
}

/* Callout card */
.kg-callout-card {
  border-left: 2px solid var(--ef-accent);
  background: var(--ef-bg-2);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
}

.kg-callout-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--ef-text-2);
  line-height: 1.6;
}

/* Toggle card */
.kg-toggle-card {
  border: 0.5px solid var(--ef-border);
  padding: 12px 16px;
}

.kg-toggle-heading-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--ef-text);
}

.kg-toggle-content {
  font-size: 13px;
  color: var(--ef-text-2);
  margin-top: 8px;
}

/* Image / gallery cards — let Ghost's card CSS handle sizing */

/* Video card */
.kg-video-card {
  background: var(--ef-bg-2);
  border: 0.5px solid var(--ef-border);
}


/* ---------------------------------------------------------------
   14. COMPONENTS

   .ef-tool-lead  — ruled section separator before interactive tools
   .ef-formula    — block equation display
   .ef-expand     — <details> expandable deep-dive blocks
   --------------------------------------------------------------- */

/* Tool section lead — full-width ruled separator with monospace annotation */
.ef-tool-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 20px;
}

.ef-tool-lead::before,
.ef-tool-lead::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--ef-accent);
  opacity: 0.35;
}

.ef-tool-lead span {
  font-family: var(--ef-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ef-accent);
  white-space: nowrap;
}

/* Formula block — left-bordered, monospace, pre-formatted */
.ef-formula {
  display: block;
  font-family: var(--ef-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ef-text);
  background: var(--ef-bg-2);
  border: 0.5px solid var(--ef-border);
  border-left: 2px solid var(--ef-accent);
  padding: 12px 18px;
  margin: 16px 0;
  overflow-x: auto;
  white-space: pre;    /* space-alignment for multi-line equations */
  line-height: 1.8;
}

/* Inline formula reference within HTML card prose */
.ef-formula-inline {
  font-family: var(--ef-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ef-accent);
  background: var(--ef-bg-2);
  border: 0.5px solid var(--ef-border);
  padding: 1px 6px;
}

/* Expandable deep-dive blocks — <details>/<summary> via HTML card
   Shared styles should be pasted as Card 0 in each post (before first
   expandable), or extracted to this stylesheet if consistent across posts. */
.ef-expand {
  border: 0.5px solid var(--ef-border);
  margin: 20px 0;
}

.ef-expand summary {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-accent);
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ef-expand summary::-webkit-details-marker {
  display: none;
}

.ef-expand summary::before {
  content: '+ ';
  opacity: 0.6;
}

.ef-expand[open] summary::before {
  content: '− ';
}

.ef-expand summary:hover {
  background: var(--ef-bg-2);
}

.ef-expand-body {
  padding: 12px 14px 16px;
  border-top: 0.5px solid var(--ef-border);
  font-size: 13px;
  font-weight: 300;
  color: var(--ef-text-2);
  line-height: 1.6;
}

.ef-expand-body p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------------
   15. READING PROGRESS
   Styled here; scroll logic wired in a future JS update.
   --------------------------------------------------------------- */

.ef-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ef-accent);
  z-index: 300;
  pointer-events: none;
  transition: width 0.1s linear;
}


/* ---------------------------------------------------------------
   16. ACCESSIBILITY
   --------------------------------------------------------------- */

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 1.5px solid var(--ef-accent);
  outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   13b. KOENIG BREAKOUT WIDTHS
   Required selectors for GScan. Exact breakout amounts refined in
   post.hbs session once reading column width is finalised.

   .kg-width-wide  — breaks slightly beyond the text column
   .kg-width-full  — full viewport bleed
   --------------------------------------------------------------- */

.kg-width-wide {
  margin-left: -3vw;
  margin-right: -3vw;
}

.kg-width-full {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------------------------------------------------------------
   17. PAGINATION
   Styled for both {{pagination}} helper output and custom markup.
   --------------------------------------------------------------- */

/* Custom ef-pagination used in index.hbs */
.ef-pagination {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-top: 0.5px solid var(--ef-border);
}

.ef-page-count {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-text-3);
  margin-right: auto;
}

.ef-page-link {
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.ef-page-link:hover {
  color: var(--ef-accent);
}

/* Ghost {{pagination}} helper fallback classes */
.pagination {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-top: 0.5px solid var(--ef-border);
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagination .page-number {
  color: var(--ef-text-3);
  margin-right: auto;
}

.pagination .newer-posts,
.pagination .older-posts {
  color: var(--ef-text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.pagination .newer-posts:hover,
.pagination .older-posts:hover {
  color: var(--ef-accent);
}


/* ---------------------------------------------------------------
   18. NAV RESPONSIVE
   No hamburger menu yet — that requires HBS + JS work.
   At narrow viewports, reduce gap and allow wrapping so items
   remain accessible even without a collapse button.
   --------------------------------------------------------------- */

@media (max-width: 768px) {
  .ef-head-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ef-head-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 0.5px solid var(--ef-border);
    padding-top: 8px;
  }

  .ef-head-nav .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .ef-head-actions {
    margin-left: auto;
    padding-left: 0;
  }
}

/* ---------------------------------------------------------------
   19. FEED EMPTY STATE
   --------------------------------------------------------------- */

.ef-feed-empty {
  grid-column: 1 / -1;
  padding: 48px 28px;
  text-align: center;
  font-family: var(--ef-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ef-text-3);
}
