/*
Theme Name: Editorial Post
Template: hello-elementor
Description: Print-newspaper style editorial theme for editorialpost.in. Text only, no images.
Version: 1.0.0
Text Domain: editorialpost-child
*/

:root {
  --ep-bg: #FBFBF9;
  --ep-ink: #1B1D21;
  --ep-muted: #5A6068;
  --ep-rule: #D5D8DE;
  --ep-accent: #1F3A5F;
  --ep-font: Georgia, 'Times New Roman', Times, serif;
}

body.ep-body {
  margin: 0;
  background: var(--ep-bg);
  color: var(--ep-ink);
  font-family: var(--ep-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.ep-body *, body.ep-body *::before, body.ep-body *::after { box-sizing: border-box; }
body.ep-body :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; border: 0; }
body.ep-body :where(ul, ol) { list-style: none; }
body.ep-body a { color: var(--ep-accent); text-decoration: none; }
body.ep-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ep-body a:focus-visible { outline: 2px solid var(--ep-accent); outline-offset: 3px; }

.ep-skip { position: absolute; left: -9999px; top: 0; background: var(--ep-ink); color: #fff; padding: 8px 14px; z-index: 100; }
.ep-skip:focus { left: 8px; top: 8px; color: #fff; }

.ep-wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Masthead */
.ep-dateline { border-bottom: 1px solid var(--ep-rule); padding: 8px 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ep-muted); text-align: center; }
.ep-masthead { text-align: center; padding-top: 28px; padding-bottom: 18px; }
.ep-sitename { font-size: clamp(2.3rem, 7vw, 3.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.ep-sitename a { color: var(--ep-ink); }
.ep-sitename a:hover { text-decoration: none; }
.ep-tagline { margin-top: 8px; font-size: 15px; font-style: italic; color: var(--ep-muted); }
.ep-nav { border-top: 4px double var(--ep-accent); border-bottom: 1px solid var(--ep-rule); }
.ep-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 12px 0; }
.ep-nav a { color: var(--ep-ink); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.ep-nav .current-menu-item a, .ep-nav a:hover { color: var(--ep-accent); }

/* Labels */
.ep-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ep-muted); }
.ep-cat { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ep-accent); }
.ep-meta time { letter-spacing: 0.02em; }

/* Home and lists */
.ep-main { padding-top: 36px; padding-bottom: 64px; }
.ep-pagehead { padding: 8px 0 24px; border-bottom: 1px solid var(--ep-rule); margin-bottom: 8px; }
.ep-pagehead h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; }
.ep-pagehead p { margin-top: 10px; color: var(--ep-muted); }
.ep-lead { padding: 8px 0 36px; border-bottom: 1px solid var(--ep-ink); margin-bottom: 4px; }
.ep-lead h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.2; margin: 8px 0 10px; }

.ep-story { padding: 28px 0; border-bottom: 1px solid var(--ep-rule); }
.ep-story h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.2; margin: 8px 0 10px; }
.ep-story h2 a, .ep-lead h2 a { color: var(--ep-ink); }
.ep-story h2 a:hover, .ep-lead h2 a:hover { color: var(--ep-accent); }
.ep-excerpt { color: #33373d; }
.ep-empty { padding: 48px 0; text-align: center; color: var(--ep-muted); font-style: italic; }
.ep-pagination { padding-top: 32px; font-size: 15px; }
.ep-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.ep-pagination .current { font-weight: 700; }

/* Article */
.ep-article { max-width: 680px; margin: 0 auto; }
.ep-article h1 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 1.12; font-weight: 700; margin: 12px 0 16px; }
.ep-article .ep-meta { padding-bottom: 20px; border-bottom: 1px solid var(--ep-rule); margin-bottom: 32px; }
.ep-content { font-size: 18px; line-height: 1.7; }
.ep-content p { margin: 0 0 1.35em; }
.ep-content h2 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; margin: 2.1em 0 0.6em; }
.ep-content h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; font-style: italic; margin: 1.7em 0 0.5em; }
.ep-content a { text-decoration: underline; text-underline-offset: 3px; }
.ep-content img, .ep-content figure, .ep-content video, .ep-content iframe { display: none; }
.ep-tags { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ep-rule); font-size: 14px; color: var(--ep-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ep-tags a { color: var(--ep-muted); }
.ep-tags a:hover { color: var(--ep-accent); }

/* Pages */
.ep-page { max-width: 680px; margin: 0 auto; }
.ep-page h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; margin-bottom: 28px; }

/* Footer */
.ep-footer { border-top: 4px double var(--ep-accent); padding-top: 28px; padding-bottom: 40px; text-align: center; font-size: 14px; color: var(--ep-muted); }
.ep-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-bottom: 14px; }
.ep-footer a { color: var(--ep-ink); }

@media (max-width: 600px) {
  body.ep-body { font-size: 17px; }
  .ep-content { font-size: 17px; line-height: 1.7; }
  .ep-nav ul { gap: 4px 18px; }
  .ep-main { padding-top: 24px; }
}

/* Home: category sections */
.ep-wide { width: 100%; max-width: 900px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.ep-wide > .ep-lead { max-width: 900px; margin: 0 auto 44px; }
.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.ep-sec { min-width: 0; }
.ep-sec-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ep-accent); border-top: 4px double var(--ep-accent); padding-top: 10px; margin: 0 0 14px; line-height: 1.3; }
.ep-sec-title a { color: var(--ep-accent); }
.ep-sec time { font-size: 13px; color: var(--ep-muted); }
.ep-sec-first { padding-bottom: 16px; border-bottom: 1px solid var(--ep-rule); }
.ep-sec-first h3 { font-size: 1.25rem; line-height: 1.22; font-weight: 700; margin: 6px 0 8px; }
.ep-sec-first .ep-excerpt { font-size: 15.5px; line-height: 1.55; margin: 0; }
.ep-sec-item { padding: 12px 0; border-bottom: 1px solid var(--ep-rule); }
.ep-sec-item h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; margin: 0 0 4px; }
.ep-sec h3 a { color: var(--ep-ink); }
.ep-sec h3 a:hover { color: var(--ep-accent); }
.ep-sec-more { display: inline-block; margin-top: 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 900px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (max-width: 600px) { .ep-grid { grid-template-columns: 1fr; } .ep-wide > .ep-lead { margin-bottom: 36px; } }
/* Home: dynamic sections */
.ep-sec-wide { grid-column: span 2; }
.ep-sec-wide .ep-sec-body { columns: 2; column-gap: 40px; }
.ep-sec-wide .ep-sec-body > article { break-inside: avoid; }
.ep-allsec { margin-top: 56px; }
.ep-allsec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
@media (max-width: 900px) { .ep-sec-wide { grid-column: span 2; } }
@media (max-width: 600px) { .ep-sec-wide { grid-column: auto; } .ep-sec-wide .ep-sec-body { columns: 1; } }
/* Sections menu (off-canvas) for mobile and tablet */
.ep-menu-btn, .ep-canvas, .ep-canvas-overlay { display: none; }
@media (max-width: 1024px) {
  .ep-nav > .ep-wrap { display: flex; flex-direction: column; align-items: center; }
  .ep-menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 4px; background: none; border: 0; border-bottom: 1px solid var(--ep-accent); font-family: var(--ep-font); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ep-accent); cursor: pointer; }
  .ep-burger, .ep-burger::before, .ep-burger::after { display: block; width: 18px; height: 2px; background: var(--ep-accent); content: ''; position: relative; }
  .ep-burger::before { position: absolute; top: -6px; left: 0; }
  .ep-burger::after { position: absolute; top: 6px; left: 0; }
  .ep-canvas-overlay { display: block; position: fixed; inset: 0; background: rgba(27,29,33,0.45); z-index: 900; }
  .ep-canvas-overlay[hidden] { display: none; }
  .ep-canvas { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--ep-bg); border-right: 1px solid var(--ep-rule); border-top: 4px double var(--ep-accent); z-index: 1000; overflow-y: auto; transform: translateX(-102%); transition: transform 0.2s ease; visibility: hidden; padding: 0 24px 40px; outline: none; }
  body.ep-canvas-open { overflow: hidden; }
  body.ep-canvas-open .ep-canvas { transform: translateX(0); visibility: visible; }
  .ep-canvas-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 14px; border-bottom: 1px solid var(--ep-rule); }
  .ep-canvas-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ep-accent); }
  .ep-canvas-close { background: none; border: 0; font-family: var(--ep-font); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ep-muted); cursor: pointer; padding: 4px 0; }
  .ep-canvas-list { list-style: none; margin: 0; padding: 0; }
  .ep-canvas-list li { border-bottom: 1px solid var(--ep-rule); }
  .ep-canvas-list a { display: block; padding: 14px 0; font-size: 17px; line-height: 1.3; color: var(--ep-ink); }
  .ep-canvas-list a:hover { color: var(--ep-accent); }
  .ep-allsec { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ep-canvas { transition: none; } }
/* Richer look: navy masthead, marigold rules, coloured sections */
body.ep-body { --c: #1F3A5F; --ep-navy: #14284B; --ep-navy-dark: #0D1B35; --ep-gold: #E0A100; }
.ep-dateline { background: var(--ep-navy-dark); color: #C9D3E6; border-bottom: 0; padding: 7px 20px; }
.ep-masthead { background: var(--ep-navy); box-shadow: 0 0 0 100vmax var(--ep-navy); clip-path: inset(0 -100vmax); padding-top: 30px; padding-bottom: 26px; }
.ep-sitename { font-size: clamp(2.4rem, 7.5vw, 4.2rem); letter-spacing: 0.01em; }
.ep-sitename a { color: #fff; }
.ep-tagline { display: flex; align-items: center; justify-content: center; gap: 14px; color: #C9D3E6; margin-top: 10px; }
.ep-tagline::before, .ep-tagline::after { content: ''; width: 44px; height: 2px; background: var(--ep-gold); }
.ep-nav { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 800; background: #fff; border-top: 4px solid var(--ep-gold); border-bottom: 1px solid var(--ep-rule); box-shadow: 0 2px 8px rgba(13,27,53,0.06); }
.ep-nav a { font-weight: 700; font-size: 13px; }
.ep-nav ul li a { padding-bottom: 3px; border-bottom: 2px solid transparent; }
.ep-nav ul li a:hover, .ep-nav .current-menu-item a { border-bottom-color: var(--ep-gold); text-decoration: none; }

.ep-cat { color: var(--c); }
.ep-main { padding-top: 40px; }
.ep-wide > .ep-lead { background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 18%, #fff); border-left: 6px solid var(--c); padding: 28px 32px 30px; margin-bottom: 40px; }
.ep-lead .ep-excerpt { font-size: 1.08rem; line-height: 1.65; }
.ep-lead h2 a:hover { color: var(--c); }

.ep-grid { gap: 28px; }
.ep-sec { background: #fff; border: 1px solid var(--ep-rule); border-top: 4px solid var(--c); padding: 20px 20px 18px; transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.ep-sec:hover { box-shadow: 0 8px 22px rgba(13,27,53,0.10); border-color: color-mix(in srgb, var(--c) 35%, var(--ep-rule)); border-top-color: var(--c); }
.ep-sec-title { border-top: 0; padding-top: 0; color: var(--c); font-size: 12.5px; }
.ep-sec-title a { color: var(--c); }
.ep-sec-first h3 a:hover, .ep-sec-item h3 a:hover { color: var(--c); }
.ep-sec-more { color: var(--c); font-weight: 700; }

.ep-allsec { border-top: 4px solid var(--ep-gold); padding-top: 18px; }
.ep-allsec .ep-sec-title { border-top: 0; color: var(--ep-navy); }
.ep-allsec ul { gap: 10px 10px; }
.ep-allsec li { margin: 0; }
.ep-allsec li a { display: inline-block; background: #fff; border: 1px solid var(--ep-rule); border-left: 4px solid var(--c); padding: 7px 12px; font-size: 14px; color: var(--ep-ink); }
.ep-allsec li a:hover { background: color-mix(in srgb, var(--c) 8%, #fff); text-decoration: none; }
.ep-canvas-list li { border-left: 4px solid var(--c); padding-left: 14px; }

.ep-content > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: 0.85; padding: 6px 10px 0 0; font-weight: 700; color: var(--ep-navy); }
.ep-article h1 { padding-bottom: 14px; border-bottom: 3px solid var(--ep-gold); }
.ep-article .ep-meta { border-bottom: 0; padding-bottom: 8px; }

.ep-footer { background: var(--ep-navy); color: #C9D3E6; border-top: 4px solid var(--ep-gold); }
.ep-footer a { color: #fff; }

@media (max-width: 600px) {
  .ep-wide > .ep-lead { padding: 22px 20px 24px; }
  .ep-sec { padding: 18px 16px 16px; }
  .ep-tagline::before, .ep-tagline::after { width: 24px; }
  .ep-nav { position: static; }
}
/* Fix: link colours must beat the base 'body.ep-body a' rule */
body.ep-body .ep-sitename a { color: #fff; }
body.ep-body .ep-cat { color: var(--c); }
body.ep-body .ep-sec-title a { color: var(--c); }
body.ep-body .ep-sec-more { color: var(--c); }
body.ep-body .ep-footer a { color: #fff; }
body.ep-body .ep-footer a:hover { color: var(--ep-gold); }
body.ep-body .ep-allsec .ep-sec-title { color: var(--ep-navy); }
body.ep-body .ep-allsec li a { color: var(--ep-ink); }
body.ep-body .ep-nav a { color: var(--ep-ink); }
body.ep-body .ep-canvas-list a { color: var(--ep-ink); }
@media (hover: none) {
  body.ep-body a:hover { text-decoration: none; }
  body.ep-body .ep-lead h2 a:hover, body.ep-body .ep-sec h3 a:hover { color: var(--ep-ink); }
}
/* Category and tag labels */
body.ep-body .ep-article .ep-cat, body.ep-body .ep-lead .ep-cat, body.ep-body .ep-story .ep-cat { display: inline-block; background: var(--c); color: #fff; padding: 5px 12px 4px; border-radius: 2px; font-size: 11.5px; letter-spacing: 0.12em; line-height: 1.4; }
body.ep-body .ep-article .ep-cat:hover, body.ep-body .ep-lead .ep-cat:hover { text-decoration: none; filter: brightness(1.12); }
body.ep-body .ep-lead .ep-meta { align-items: center; gap: 8px 14px; }
.ep-article > .ep-cat { margin-bottom: 6px; }
.ep-tags { gap: 10px 10px; align-items: center; }
.ep-tags::before { content: 'Topics'; width: 100%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ep-navy); }
body.ep-body .ep-tags a { display: inline-block; padding: 6px 14px; font-size: 14px; line-height: 1.3; color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
body.ep-body .ep-tags a:hover { background: var(--c); color: #fff; border-color: var(--c); text-decoration: none; }