/* Emma's Tech Blog - listing and article pages. Prefix: eb- */
:root {
  --eb-accent: #A00000;
  --eb-accent-dark: #7F0000;
  --eb-accent-soft: #F8EDED;
  --eb-ink: #191B18;
  --eb-text: #1F2937;
  --eb-muted: #4B5563;
  --eb-line: #E5E7EB;
  --eb-bg: #F5F6F8;
  --eb-white: #FFFFFF;
  --eb-radius: 14px;
  --eb-shadow: 0 6px 18px rgba(25, 27, 24, .07);
}
.eb-main { background: var(--eb-white); color: var(--eb-text); }
.eb-wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.eb-narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.eb-main a { color: var(--eb-accent); }
.eb-main a:hover { color: var(--eb-accent-dark); }
.eb-main :is(a, button, input, select, summary):focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; border-radius: 4px; }

/* Hero */
.eb-hero { background: linear-gradient(180deg, var(--eb-bg), #fff); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--eb-line); }
.eb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.eb-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 .5rem; color: var(--eb-ink); }
.eb-subtitle { font-size: 1.2rem; color: var(--eb-accent); font-weight: 600; margin: 0 0 1rem; }
.eb-intro { color: var(--eb-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1rem; max-width: 62ch; }
.eb-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.eb-meet { background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); box-shadow: var(--eb-shadow); padding: 1.1rem; display: flex; gap: 1rem; align-items: flex-start; }
.eb-meet img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--eb-accent-soft); }
.eb-meet h2 { font-size: 1.05rem; margin: 0 0 .25rem; color: var(--eb-ink); }
.eb-meet p { margin: 0 0 .5rem; font-size: .95rem; line-height: 1.5; color: var(--eb-muted); }
.eb-meet p:last-child { margin-bottom: 0; font-weight: 600; }

/* Search and filters */
.eb-tools { padding: 1.75rem 0 .5rem; }
.eb-search { position: relative; max-width: 560px; }
.eb-search label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--eb-ink); }
.eb-search input { width: 100%; box-sizing: border-box; padding: .8rem 1rem; font-size: 1rem; border: 2px solid #9CA3AF; border-radius: 10px; color: var(--eb-text); background: #fff; }
.eb-search input:focus { border-color: var(--eb-accent); }
.eb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .25rem; padding: 0; list-style: none; }
.eb-chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; padding: .5rem .95rem; border: 2px solid #9CA3AF; border-radius: 999px; background: #fff; color: var(--eb-ink); min-height: 44px; }
.eb-chip:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-chip[aria-pressed="true"] { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; }
.eb-chip .eb-n { font-weight: 500; opacity: .9; }
.eb-status { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: .75rem 0 0; color: var(--eb-muted); }
.eb-link-btn { background: none; border: 0; padding: .25rem; font: inherit; color: var(--eb-accent); text-decoration: underline; cursor: pointer; font-weight: 600; }
.eb-link-btn[hidden] { display: none; }

/* Sections */
.eb-section { padding: 2rem 0; }
.eb-section h2.eb-h2 { font-size: 1.6rem; margin: 0 0 1.25rem; color: var(--eb-ink); }
.eb-section[hidden] { display: none; }
.eb-section--tint { background: var(--eb-bg); }

/* Featured */
.eb-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); overflow: hidden; box-shadow: var(--eb-shadow); }
.eb-featured .eb-thumb { aspect-ratio: auto; height: 100%; min-height: 260px; }
.eb-featured .eb-body { padding: 1.75rem; }
.eb-featured h3 { font-size: 1.6rem; line-height: 1.25; margin: 0; }
.eb-flag { display: inline-block; background: var(--eb-ink); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 4px; margin-right: .4rem; }

/* Cards */
.eb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.eb-grid[hidden] { display: none; }
.eb-card { background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--eb-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.eb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25, 27, 24, .12); }
.eb-card[hidden] { display: none; }
.eb-thumb { display: block; aspect-ratio: 16 / 9; background: var(--eb-bg); overflow: hidden; }
.eb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.eb-cat { align-self: flex-start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--eb-accent-dark); background: var(--eb-accent-soft); padding: .2rem .6rem; border-radius: 4px; }
.eb-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.eb-card h3 a, .eb-featured h3 a { color: var(--eb-ink); text-decoration: none; }
.eb-card h3 a:hover, .eb-featured h3 a:hover { color: var(--eb-accent); text-decoration: underline; }
.eb-sum { margin: 0; color: var(--eb-muted); font-size: .96rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.eb-featured .eb-sum { -webkit-line-clamp: 6; font-size: 1.02rem; }
.eb-meta { margin: auto 0 0; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .88rem; color: var(--eb-muted); border-top: 1px solid var(--eb-line); }
.eb-meta strong { color: var(--eb-ink); font-weight: 600; }
.eb-more { font-weight: 700; text-decoration: none; }
.eb-more::after { content: " \2192"; }
.eb-more:hover { text-decoration: underline; }
.eb-card--resource .eb-cat { background: var(--eb-ink); color: #fff; }

/* Pagination */
.eb-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.eb-pager[hidden] { display: none; }
.eb-pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .9rem; border: 2px solid #9CA3AF; border-radius: 10px; color: var(--eb-ink); text-decoration: none; font-weight: 600; background: #fff; box-sizing: border-box; }
.eb-pager a:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-pager a[aria-current="page"] { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; }
.eb-pager a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Empty state */
.eb-empty { text-align: center; padding: 2.5rem 1rem; border: 2px dashed #9CA3AF; border-radius: var(--eb-radius); background: #fff; }
.eb-empty[hidden] { display: none; }
.eb-empty h3 { margin: 0 0 .5rem; color: var(--eb-ink); }

/* Service banner */
.eb-banner { background: var(--eb-ink); color: #fff; padding: 2.25rem 0; }
.eb-banner-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.eb-banner h2 { margin: 0 0 .35rem; color: #fff; font-size: 1.5rem; }
.eb-banner p { margin: 0; color: #E5E7EB; max-width: 60ch; }
.eb-banner .eb-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.eb-banner a:not(.btn) { color: #fff; }

/* About Emma (full) */
.eb-about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; align-items: start; }
.eb-about img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--eb-accent-soft); }
.eb-about h2 { margin-top: 0; }

/* Breadcrumb */
.eb-breadcrumb { padding: 1rem 0 0; font-size: .92rem; }
.eb-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--eb-muted); }
.eb-breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: #6B7280; }
.eb-breadcrumb [aria-current] { color: var(--eb-ink); }

/* Article */
.eb-article-head { padding: 1.25rem 0 1rem; }
.eb-article-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: .75rem 0 .75rem; color: var(--eb-ink); }
.eb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--eb-muted); font-size: .98rem; margin: 0; }
.eb-byline strong { color: var(--eb-ink); }
.eb-hero-img { margin: 1rem 0 1.5rem; }
.eb-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--eb-radius); display: block; box-shadow: var(--eb-shadow); }
.eb-toc { background: var(--eb-bg); border: 1px solid var(--eb-line); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.eb-toc summary { font-weight: 700; cursor: pointer; color: var(--eb-ink); }
.eb-toc ol { margin: .75rem 0 0; padding-left: 1.25rem; line-height: 1.7; }
.eb-prose { font-size: 1.1rem; line-height: 1.8; color: var(--eb-text); }
.eb-prose p { margin: 0 0 1.25rem; }
.eb-prose h2 { font-size: 1.65rem; line-height: 1.3; margin: 2.5rem 0 1rem; color: var(--eb-ink); scroll-margin-top: 90px; }
.eb-prose h3 { font-size: 1.3rem; line-height: 1.35; margin: 2rem 0 .75rem; color: var(--eb-ink); scroll-margin-top: 90px; }
.eb-prose h4 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; color: var(--eb-ink); }
.eb-prose ul, .eb-prose ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.eb-prose li { margin-bottom: .6rem; }
.eb-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.eb-prose .article-image { margin: 1.5rem 0; text-align: center; }
.eb-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .98rem; display: block; overflow-x: auto; }
.eb-prose th, .eb-prose td { border: 1px solid var(--eb-line); padding: .6rem .75rem; text-align: left; }
.eb-prose th { background: var(--eb-bg); }
.eb-prose .article-conclusion { background: var(--eb-accent-soft); border-left: 4px solid var(--eb-accent); padding: 1rem 1.25rem; border-radius: 8px; margin: 2rem 0; }
.eb-prose .article-conclusion p:last-child { margin-bottom: 0; }
.eb-prose .habits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.eb-prose .habit-card, .eb-prose .faq-item, .eb-prose .checklist-item { background: var(--eb-bg); border: 1px solid var(--eb-line); border-radius: 10px; padding: .9rem 1.1rem; }
.eb-prose .faq-section { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.eb-prose .habit-card p, .eb-prose .faq-item p, .eb-prose .checklist-item p { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.65; }
.eb-prose .checklist-container { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.eb-prose .checklist-item { display: flex; gap: .6rem; align-items: flex-start; }
.eb-prose .checklist { background: var(--eb-bg); border: 1px solid var(--eb-line); border-radius: 10px; padding: 1rem 1.25rem 1rem 2.5rem; }
.eb-prose a { text-decoration: underline; text-underline-offset: 2px; }

.eb-authorbox { display: flex; gap: 1.1rem; align-items: flex-start; border: 1px solid var(--eb-line); border-left: 5px solid var(--eb-accent); border-radius: var(--eb-radius); padding: 1.25rem; margin: 2.5rem 0 1.5rem; background: #fff; }
.eb-authorbox img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.eb-authorbox h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.eb-authorbox p { margin: 0 0 .5rem; font-size: .98rem; line-height: 1.55; color: var(--eb-muted); }
.eb-help { background: var(--eb-accent-soft); border-radius: var(--eb-radius); padding: 1.5rem; margin: 1.5rem 0; }
.eb-help h2 { margin: 0 0 .4rem; font-size: 1.3rem; color: var(--eb-ink); }
.eb-help p { margin: 0 0 1rem; }
.eb-help .eb-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.eb-svc { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }
.eb-related-wrap { padding: 2rem 0 2.5rem; background: var(--eb-bg); margin-top: 2rem; }

/* Buttons (scoped so they do not depend on other page CSS) */
.eb-main .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.2rem; border-radius: 10px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.eb-main .btn-primary { background: var(--eb-accent); color: #fff; border: 2px solid var(--eb-accent); }
.eb-main .btn-primary:hover { background: var(--eb-accent-dark); border-color: var(--eb-accent-dark); color: #fff; }
.eb-main .btn-secondary { background: #fff; color: var(--eb-accent); border: 2px solid var(--eb-accent); }
.eb-main .btn-secondary:hover { background: var(--eb-accent-soft); color: var(--eb-accent-dark); }
.eb-banner .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.eb-banner .btn-secondary:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* FAQ blocks carried over from the previous page */
.eb-faq dt { font-weight: 700; margin-top: 1rem; font-size: 1.05rem; }
.eb-faq dd { margin: .5rem 0 0; line-height: 1.6; }

@media (max-width: 1023px) {
  .eb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eb-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .eb-grid { grid-template-columns: 1fr; }
  .eb-featured { grid-template-columns: 1fr; }
  .eb-featured .eb-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .eb-about { grid-template-columns: 1fr; justify-items: center; }
  .eb-about img { width: 140px; height: 140px; }
  .eb-prose { font-size: 1.05rem; }
  .eb-authorbox { flex-direction: column; }
  .eb-meet { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .eb-card { transition: none; } .eb-card:hover { transform: none; } }
@media print { .eb-tools, .eb-banner, .eb-help, .eb-related-wrap { display: none; } }
