/*
Theme Name: Ontrick Editorial
Theme URI: https://ontrick.xyz/
Description: Fast, accessible tech-help editorial child theme for Ontrick, built on GeneratePress.
Author: Ontrick
Version: 1.0.9
Requires at least: 6.2
Requires PHP: 7.4
Template: generatepress
Text Domain: ontrick-editorial
*/
:root { --ot-ink:#14253a; --ot-muted:#52627a; --ot-blue:#175cd3; --ot-aqua:#1cc7ae; --ot-line:#e3eaf2; --ot-soft:#f4f7fb; --ot-radius:15px; }
html { scroll-behavior:smooth; }
body { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ot-ink); background:var(--ot-soft); font-size:17px; line-height:1.7; text-rendering:optimizeLegibility; }
a { color:var(--ot-blue); text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover { color:#0d408d; }
a:focus-visible, button:focus-visible, input:focus-visible { outline:3px solid #1b88de; outline-offset:3px; }
button, input { font:inherit; }
.site.grid-container { max-width:1256px; }
.grid-container { max-width:1256px; }
.ot-topbar { background:#0b1b2d; color:#d6e6f7; font-size:12.5px; font-weight:600; letter-spacing:.045em; }
.ot-topbar .ot-inner { max-width:1216px; margin:auto; padding:9px 24px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ot-topbar .ot-mark { color:#6af0d5; font-weight:800; }
.ot-topbar a { color:#d6e6f7; }
.site-header { background:#fff; border-bottom:1px solid var(--ot-line); }
.site-header .inside-header { max-width:1216px; padding:27px 24px 25px; display:flex; justify-content:space-between; align-items:center; gap:22px; }
.site-logo img { width:auto; max-width:240px; height:auto; max-height:68px; display:block; }
.site-branding .main-title { font-size:31px; font-weight:850; line-height:1.1; letter-spacing:-.04em; }
.site-description { color:var(--ot-muted); font-size:13px; }
.main-navigation { background:#fff; border-bottom:1px solid var(--ot-line); box-shadow:0 5px 17px rgba(24,56,88,.045); position:sticky; top:0; z-index:50; }
.main-navigation .inside-navigation { max-width:1216px; margin:auto; }
.main-navigation .main-nav ul li a { color:#23364d; font-size:14px; font-weight:700; padding-left:17px; padding-right:17px; line-height:53px; }
.main-navigation .main-nav ul li:hover>a, .main-navigation .main-nav ul li:focus>a, .main-navigation .main-nav ul li.current-menu-item>a, .main-navigation .main-nav ul li.current-menu-ancestor>a { color:var(--ot-blue); background:#f1f6ff; }
.main-navigation .menu-toggle { color:var(--ot-ink); font-weight:700; }
.site-content { gap:26px; align-items:flex-start; padding-top:30px; }
.content-area { min-width:0; }
.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation { background:#fff; border:1px solid var(--ot-line); border-radius:var(--ot-radius); box-shadow:0 4px 23px rgba(19,40,70,.045); }
.separate-containers .inside-article { padding:clamp(23px,3.8vw,45px); }
body.single .inside-article,body.page .inside-article { padding:clamp(24px,4.2vw,52px); }
.entry-header h1, .entry-header h2, .page-header h1, h1.entry-title, h2.entry-title { color:var(--ot-ink); font-weight:800; line-height:1.2; letter-spacing:-.032em; }
.entry-header h1, h1.entry-title { font-size:clamp(30px,3.6vw,44px); }
.entry-header h2, h2.entry-title { font-size:clamp(23px,2.4vw,29px); }
.entry-meta { color:#69788b; font-size:13px; }
.entry-content, .entry-summary { color:#27394c; font-size:17.5px; line-height:1.82; }
.entry-content p, .entry-summary p { margin-bottom:1.35em; }
.entry-content h2 { color:var(--ot-ink); font-size:clamp(24px,2.6vw,31px); line-height:1.25; letter-spacing:-.02em; margin-top:1.7em; }
.entry-content h3 { color:var(--ot-ink); font-size:clamp(20px,2.2vw,25px); line-height:1.33; margin-top:1.4em; }
.entry-content img, .post-image img { border-radius:11px; max-width:100%; height:auto; }
.entry-content ul, .entry-content ol { margin-left:1.3em; }
.entry-content li { margin-bottom:.35em; }
.entry-content blockquote { border-left:4px solid var(--ot-blue); padding:14px 21px; background:#f4f8ff; margin:26px 0; }
.entry-content table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; font-size:15px; }
.entry-content th { background:#edf4ff; }
.entry-content th, .entry-content td { padding:11px 13px; border:1px solid #d9e3ef; }
.entry-content pre, .entry-content code { overflow-wrap:anywhere; }
.entry-content pre { overflow-x:auto; max-width:100%; border-radius:9px; }
.ot-eyebrow { text-transform:uppercase; color:var(--ot-blue); letter-spacing:.11em; font-weight:800; font-size:12px; }
.ot-section-lead { background:linear-gradient(113deg,#eaf3ff 0%,#f7fffc 100%); border:1px solid #d9e9f8; border-radius:17px; padding:clamp(24px,3.6vw,38px); margin-bottom:25px; }
.ot-section-lead h1 { margin:8px 0 10px; font-size:clamp(32px,4vw,47px); letter-spacing:-.045em; font-weight:850; line-height:1.12; color:#0c2646; }
.ot-section-lead p { margin:0; color:#51647c; max-width:62ch; font-size:16px; line-height:1.7; }
.ot-topic-links { margin-top:20px; display:flex; flex-wrap:wrap; gap:9px; }
.ot-topic-links a { border:1px solid #d3e2f5; padding:6px 12px; border-radius:999px; font-size:13px; font-weight:700; color:#254b76; background:#fff; text-decoration:none; }
.ot-topic-links a:hover { background:#e7f1ff; }
.ot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ot-card { background:#fff; border:1px solid var(--ot-line); border-radius:14px; overflow:hidden; box-shadow:0 5px 18px rgba(30,60,90,.05); min-width:0; display:flex; flex-direction:column; transition:transform .15s ease,box-shadow .15s ease; }
.ot-card:hover { transform:translateY(-2px); box-shadow:0 11px 28px rgba(30,60,90,.10); }
.ot-card-media { display:block; aspect-ratio:16/10; overflow:hidden; background:#e8eef5; }
.ot-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.ot-card:hover .ot-card-media img { transform:scale(1.025); }
.ot-card-content { padding:21px 23px 24px; flex:1; display:flex; flex-direction:column; }
.ot-card-category { color:var(--ot-blue); font-size:11.5px; text-transform:uppercase; font-weight:800; letter-spacing:.095em; margin-bottom:9px; }
.ot-card h2 { margin:0 0 10px; font-size:clamp(20px,1.9vw,24px); line-height:1.3; font-weight:800; letter-spacing:-.025em; }
.ot-card h2 a { color:var(--ot-ink); text-decoration:none; }
.ot-card h2 a:hover { color:var(--ot-blue); }
.ot-card-excerpt { font-size:14.5px; line-height:1.65; color:var(--ot-muted); margin:0 0 19px; }
.ot-card-bottom { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; color:#7d8b9a; }
.ot-card-bottom a { font-size:12px; font-weight:800; text-decoration:none; }
.ot-card-feature { grid-column:1/-1; display:grid; grid-template-columns:1.05fr 1fr; }
.ot-card-feature .ot-card-media { height:100%; aspect-ratio:auto; min-height:285px; }
.ot-card-feature .ot-card-content { padding:clamp(25px,3vw,35px); justify-content:center; }
.ot-card-feature h2 { font-size:clamp(24px,2.5vw,32px); }
.ot-card-feature .ot-card-excerpt { font-size:15.5px; }
.ot-breadcrumb { display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#708197;font-size:12.5px;margin-bottom:19px; }
.ot-breadcrumb a { color:var(--ot-blue);font-weight:700;text-decoration:none; }
.ot-sidebar { display:flex; flex-direction:column; gap:19px; }
.inside-right-sidebar { position:sticky; top:82px; max-height:calc(100vh - 100px); overflow-y:auto; scrollbar-width:thin; padding-bottom:2px; }
.ot-side-card { background:#fff; border:1px solid var(--ot-line); border-radius:13px; padding:23px; box-shadow:0 3px 17px rgba(22,47,75,.035); }
.ot-side-card h2 { color:var(--ot-ink); font-size:18px; font-weight:800; letter-spacing:-.02em; margin:0 0 14px; }
.ot-side-card p { color:var(--ot-muted); font-size:14px; line-height:1.65; margin:0; }
.ot-side-card .search-form { display:flex; gap:7px; }
.ot-side-card .search-form label { flex:1; min-width:0; }
.ot-side-card .search-field { box-sizing:border-box; width:100%; background:#f7f9fc; border:1px solid #dce5ef; border-radius:8px; padding:10px 12px; color:var(--ot-ink); min-width:0; font-size:13px; }
.ot-side-card .search-submit { border-radius:8px; background:var(--ot-blue); padding:10px 12px; min-width:44px; }
.ot-side-links, .ot-recent-list { list-style:none; margin:0; padding:0; }
.ot-side-links li { border-bottom:1px solid #e9eef5; }
.ot-side-links li:last-child { border-bottom:0; }
.ot-side-links a { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#273f58; font-weight:650; padding:11px 0; font-size:13.5px; text-decoration:none; }
.ot-side-links a:hover { color:var(--ot-blue); }
.ot-side-links small { color:#96a5b4; }
.ot-recent-list li { padding:10px 0; border-bottom:1px solid #e9eef5; line-height:1.5; }
.ot-recent-list li:last-child { border-bottom:0; padding-bottom:0; }
.ot-recent-list a { font-size:13.5px; font-weight:700; color:#273f58; text-decoration:none; }
.ot-recent-list a:hover { color:var(--ot-blue); }
.ot-help-note { background:#102743; color:#ebf5ff; border:0; }
.ot-help-note h2 { color:#fff; }
.ot-help-note p { color:#c7d8e9; }
.ot-related { margin-top:38px; border-top:1px solid var(--ot-line); padding-top:29px; }
.ot-related h2 { font-size:24px; font-weight:800; margin:0 0 17px; }
.ot-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ot-related-item { display:block; text-decoration:none; color:var(--ot-ink); font-size:13.5px; font-weight:800; line-height:1.4; }
.ot-related-item img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; margin-bottom:7px; }
.ot-related-item:hover { color:var(--ot-blue); }
.site-footer { background:#0b1c30; color:#d9e7f6; margin-top:45px; }
.ot-footer-wrap { max-width:1216px; margin:auto; padding:51px 24px 33px; }
.ot-footer-grid { display:grid; grid-template-columns:1.2fr .8fr 1fr .85fr; gap:30px; }
.ot-footer-grid h2 { color:#fff; font-size:16px; font-weight:800; margin:0 0 17px; }
.ot-footer-grid p { font-size:14px; line-height:1.75; color:#b7c9dc; }
.ot-footer-grid a { color:#cbd9e9; font-size:14px; text-decoration:none; }
.ot-footer-grid a:hover { color:#6af0d5; }
.ot-footer-grid ul { margin:0; padding:0; list-style:none; }
.ot-footer-grid li { margin:0 0 9px; }
.ot-footer-logo { color:#fff; font-weight:900; font-size:25px; letter-spacing:-.04em; margin-bottom:12px; }
.ot-footer-logo span { color:#54e8d1; }
.site-footer .site-info { background:#09182a; color:#bed0e0; }
.site-footer .site-info .inside-site-info { max-width:1216px; padding:17px 24px; justify-content:space-between; }
.site-footer .copyright-bar { width:100%; }
.ot-copyright { display:flex; justify-content:space-between; flex-wrap:wrap; gap:9px; font-size:12.5px; }
.ot-copyright a { color:#cfe5f5; }
.paging-navigation .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.paging-navigation a, .paging-navigation span { border:1px solid var(--ot-line); border-radius:8px; padding:7px 13px; }
.paging-navigation .current { background:var(--ot-blue); color:#fff; }
.ot-grid-pagination { padding-top:24px; }
.ot-grid-pagination .page-numbers { display:inline-block; margin:0 4px 8px 0; border:1px solid #d6e0eb; border-radius:7px; background:#fff; padding:7px 13px; text-decoration:none; font-weight:700; font-size:13px; }
.ot-grid-pagination .current { background:var(--ot-blue); color:#fff; border-color:var(--ot-blue); }
@media (max-width:1024px) { .inside-right-sidebar { position:static; max-height:none; overflow:visible; } .ot-footer-grid { gap:25px; } }
@media (max-width:768px) { .ot-topbar .ot-inner { padding:8px 17px; } .ot-topbar .ot-extra { display:none; } .site-header .inside-header { padding:18px 17px; display:flex; align-items:center; } .site-logo img { max-width:192px; max-height:53px; } .main-navigation { position:relative; top:auto; } .main-navigation .main-nav ul li a { line-height:44px; } .site-content { padding-top:18px; gap:16px; } .ot-grid { gap:15px; } .ot-card-feature { grid-template-columns:1fr; } .ot-card-feature .ot-card-media { min-height:0; aspect-ratio:16/10; } .ot-card-content { padding:18px; } .ot-footer-grid { grid-template-columns:1fr 1fr; gap:28px; } .ot-footer-grid >:first-child { grid-column:1/-1; } .site-footer { margin-top:30px; } }
@media (max-width:580px) { .ot-grid { grid-template-columns:1fr; } .ot-card-feature { grid-column:auto; } .ot-section-lead { padding:22px; } .ot-section-lead h1 { font-size:31px; } .ot-footer-grid { grid-template-columns:1fr; gap:20px; } .ot-footer-grid >:first-child { grid-column:auto; } .ot-footer-wrap { padding:34px 20px 18px; } .ot-related-grid { grid-template-columns:1fr 1fr; } .entry-content, .entry-summary { font-size:16.7px; line-height:1.78; } }
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; transition:none!important; } }
@media print { .main-navigation,.ot-topbar,.ot-sidebar,.ot-related,.site-footer { display:none!important; } body { background:#fff; } }

/* v1.0.2: clear navigation hierarchy; pages stay reachable on desktop & mobile. */
@media (min-width:769px) {
 .main-navigation .main-nav ul ul { background:#fff; border:1px solid var(--ot-line); box-shadow:0 13px 30px rgba(23,50,84,.13); min-width:218px; }
 .main-navigation .main-nav ul ul li a { color:#25394f; line-height:1.4; padding:12px 16px; white-space:normal; }
 .main-navigation .main-nav ul ul li a:hover, .main-navigation .main-nav ul ul li.current-menu-item > a { color:var(--ot-blue); background:#f0f5ff; }
}
@media (max-width:768px) {
 .main-navigation .main-nav ul ul li a { padding-top:10px; padding-bottom:10px; line-height:1.45; }
}

/* v1.0.3: compact desktop links avoid an unnecessary extra header row. */
@media (min-width:769px) {
  .main-navigation .main-nav > ul > li > a { padding-left:11px; padding-right:11px; font-size:13px; }
}

/* v1.0.4: visible, clickable logo above primary navigation on every page. */
.site-header .ot-header-brand { display:flex; align-items:center; min-height:68px; }
.site-header .ot-logo-link { display:inline-flex; align-items:center; max-width:100%; text-decoration:none; }
.site-header .ot-logo-link img { display:block; width:auto; height:auto; max-width:240px; max-height:76px; object-fit:contain; }
@media (max-width:768px) {
  .site-header .ot-header-brand { min-height:50px; }
  .site-header .ot-logo-link img { max-width:190px; max-height:62px; }
}


/*
 * v1.0.7 — Ontrick accessibility and reading-size refinement.
 * Presentation-only: no WordPress post, page, category, menu, or SEO text changes.
 * Larger topic labels and comfortable letter spacing; fits mobile navigation.
 */
@media (min-width: 769px) {
  /* Use the wider header available on desktop; wrap whole links, never words. */
  .main-navigation .inside-navigation { max-width: 1440px; padding: 0 12px; }
  .main-navigation .main-nav > ul { display: flex; flex-wrap: wrap; align-items: center; }
  .main-navigation .main-nav > ul > li { float: none; flex: 0 0 auto; }
  /* Preserve all header links while giving category names visual emphasis. */
  .main-navigation .main-nav > ul > li > a {
    font-size: 15.5px;
    line-height: 57px;
    padding-left: 8px;
    padding-right: 8px;
    letter-spacing: .012em;
    white-space: nowrap;
  }
  .main-navigation .main-nav > ul > li.menu-item-object-category > a,
  .main-navigation .main-nav > ul > li.menu-item-type-taxonomy > a {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .018em;
  }
}
/* Article copy on post and information pages; hierarchy remains intact. */
body.single-post .entry-content,
body.page .entry-content {
  font-size: 20px;
  line-height: 1.85;
  letter-spacing: .014em;
  overflow-wrap: break-word;
}
body.single-post .entry-content p,
body.single-post .entry-content li,
body.page .entry-content p,
body.page .entry-content li { line-height: inherit; }
body.single-post .entry-content h2,
body.page .entry-content h2 {
  font-size: clamp(27px, 2.7vw, 34px);
  line-height: 1.3;
  letter-spacing: .006em;
}
body.single-post .entry-content h3,
body.page .entry-content h3 {
  font-size: clamp(23px, 2.25vw, 28px);
  line-height: 1.35;
  letter-spacing: .008em;
}
body.single-post .entry-content table,
body.page .entry-content table { font-size: 17px; letter-spacing: .01em; }
body.single-post .entry-content figcaption,
body.page .entry-content figcaption { font-size: 15.5px; letter-spacing: .01em; }
/* The menu must remain usable on tablets and phones. */
@media (max-width: 768px) {
  .main-navigation .main-nav ul li a {
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: .012em;
    padding-top: 13px;
    padding-bottom: 13px;
    white-space: normal;
  }
  .main-navigation .main-nav ul li.menu-item-object-category > a,
  .main-navigation .main-nav ul li.menu-item-type-taxonomy > a {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .018em;
  }
  body.single-post .entry-content,
  body.page .entry-content {
    font-size: 18.5px;
    line-height: 1.78;
    letter-spacing: .012em;
  }
}


/* v1.0.8 — consistent, readable header typography across all page and category links.
   The v1.0.7 rules targeted category items at 18px but left page items at 15.5px.
   This deliberately targets ALL top-level links, including Home and informational pages. */
@media (min-width: 769px) {
  body .main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  body .main-navigation .main-nav > ul > li > a,
  body .main-navigation .main-nav > ul > li.menu-item-object-category > a,
  body .main-navigation .main-nav > ul > li.menu-item-type-taxonomy > a {
    font-size: 19px !important;
    font-weight: 750;
    letter-spacing: 0.018em;
    line-height: 1.45;
    padding: 14px 11px;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  body .main-navigation .main-nav ul li a,
  body .main-navigation .main-nav ul li.menu-item-object-category > a,
  body .main-navigation .main-nav ul li.menu-item-type-taxonomy > a {
    font-size: 18.5px !important;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0.018em;
    padding-top: 13px;
    padding-bottom: 13px;
    white-space: normal;
  }
  body .main-navigation .menu-toggle { font-size: 18px; letter-spacing: .012em; }
}
/* Small top-strip labels are slightly enlarged as well; logo remains unchanged. */
.ot-topbar { font-size: 15px; letter-spacing: .025em; }
