/* ============ Presa hierarchy templates (singles, blog, 404) ============ */

/* HERO */
  .page-hero { position: relative; height: 50vh; min-height: 380px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 20%); z-index: 1; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.68) 0%, rgb(0 0 0 / 0.25) 30%, transparent 55%); z-index: 1; pointer-events: none; }
.page-hero-bg { position: absolute; inset: 0; background: var(--presa-ink); }
.page-hero-content { position: relative; z-index: 2; padding: 0 60px 40px; max-width: 800px; margin-left: 8%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero h1 { font-family: var(--presa-font-heading); font-size: 52px; font-weight: 700; color: white; line-height: 1.05; margin-bottom: 12px; letter-spacing: -0.5px;  }
.page-hero-sub { font-family: var(--presa-font-accent); font-size: 30px; color: rgba(255,255,255,0.92); line-height: 1.4; max-width: 560px; font-weight: 400;  }
/* FEATURED POST */
  .featured {
    background: #ffffff;
    padding: 80px 60px 0;
  }
.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
.featured-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--presa-ink); margin-bottom: 24px;
  }
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--presa-surface);
    border-radius: 9px;
    overflow: hidden;
    
    text-decoration: none;
    color: inherit;
  }
.featured-card:hover {
  }
.featured-card-img {
    height: 420px;
    overflow: hidden;
  }
.featured-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    
  }
.featured-card:hover .featured-card-img img {
  }
.featured-card-body {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
.featured-card-tag {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--presa-ink);
    background: rgba(255, 190, 154, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
  }
.featured-card-body h2 {
    font-family: var(--presa-font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--presa-ink);
    line-height: 1.2;
    margin-bottom: 16px;
  }
.featured-card-body p {
    color: var(--presa-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
  }
.featured-card-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 13px;
    color: var(--presa-muted);
  }
.featured-card-meta span { display: flex; align-items: center; gap: 6px; }
.featured-card-meta svg {
    width: 14px; height: 14px;
    stroke: var(--presa-ink); fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
  }
.read-more-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--presa-font-body); font-size: 13px; font-weight: 700;
    color: var(--presa-ink); letter-spacing: 0.02em;
    margin-top: auto;
  }
.read-more-arrow svg {
    width: 16px; height: 16px;
    stroke: var(--presa-ink); fill: none; stroke-width: 2;
    
  }
.featured-card:hover .read-more-arrow svg {
  }
/* CATEGORY FILTERS */
  .blog-filters {
    background: var(--presa-surface);
    padding: 60px 60px 0;
    position: sticky;
    top: 90px;
    z-index: 100;
  }
.blog-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
.blog-filters-inner::-webkit-scrollbar { display: none; }
.filter-pill {
    background: transparent;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    padding: 10px 22px;
    font-family: var(--presa-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--presa-muted);
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
.filter-pill:hover {
    border-color: var(--presa-ink);
    color: var(--presa-ink);
  }
.filter-pill.active {
    background: var(--presa-ink);
    border-color: var(--presa-ink);
    color: white;
  }
/* BLOG GRID */
  .blog-grid-section {
    background: var(--presa-surface);
    padding: 50px 60px 100px;
  }
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
.blog-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
  }
.blog-card:hover {
    box-shadow: 0 10px 34px rgba(0,0,0,0.11);
  }
.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
  }
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    
  }
.blog-card:hover .blog-card-img img {
  }
.blog-card-tag-overlay {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
    color: white;
    background: var(--presa-ink);
    padding: 5px 12px;
    border-radius: 4px;
  }
.blog-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
  }
.blog-card-body h3 {
    font-family: var(--presa-font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--presa-ink);
    line-height: 1.35;
    margin-bottom: 6px;
  }
.blog-card-body p {
    color: var(--presa-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
  }
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
.blog-card-date {
    font-size: 12px;
    color: var(--presa-muted-2);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px;
  }
.blog-card-date svg {
    width: 13px; height: 13px;
    stroke: var(--presa-muted); fill: none; stroke-width: 2;
  }
.blog-card-read {
    font-size: 12px;
    color: var(--presa-muted);
  }
@media (max-width: 768px) {
.page-hero { height: 45vh; min-height: 340px; }
.page-hero-content { margin-left: 0; padding: 0 32px 24px; }
.page-hero h1 { font-size: 40px; }
.featured { padding: 48px 32px 0; }
.featured-card { grid-template-columns: 1fr; }
.featured-card-img { height: 260px; }
.featured-card-body { padding: 32px 28px; }
.featured-card-body h2 { font-size: 24px; }
.blog-filters { padding: 36px 32px 0; top: 70px; }
.blog-grid-section { padding: 36px 32px 60px; }
.blog-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
.page-hero { height: 40vh; min-height: 300px; }
.page-hero-content { padding: 0 24px 20px; }
.page-hero h1 { font-size: 32px; }
.featured { padding: 36px 24px 0; }
.featured-card-img { height: 200px; }
.featured-card-body { padding: 24px 20px; }
.blog-filters { padding: 28px 24px 0; top: 60px; }
.blog-grid-section { padding: 28px 24px 48px; }
.blog-grid { grid-template-columns: 1fr; }
.blog-card-img { height: 200px; }
}
.article-head { background: #ffffff; padding: 150px 60px 30px; }
.article-head-inner { max-width: 680px; margin: 0 auto; text-align: left; }
.article-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--presa-accent); text-decoration: none; margin-bottom: 14px; }
.article-head h1 { font-family: var(--presa-font-heading); font-size: 40px; line-height: 1.15; color: var(--presa-ink); margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--presa-muted); display: flex; gap: 8px; }
.article-body-section { background: #ffffff; padding: 30px 60px 90px; }
.article-lead-img { max-width: 920px; margin: 0 auto 40px; border-radius: 9px; overflow: hidden; aspect-ratio: 16 / 8; }
.article-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 680px; margin: 0 auto; }
.article-body p { color: #444; font-size: 17px; line-height: 1.85; margin-bottom: 22px; }
.article-body h2 { font-family: var(--presa-font-heading); font-size: 26px; color: var(--presa-ink); margin: 38px 0 14px; }
@media (max-width: 768px) {
.article-head { padding: 110px 32px 20px; }
.article-head h1 { font-size: 30px; }
.article-body-section { padding: 20px 32px 60px; }
}
.nf-head { padding: 170px 60px 110px; }
.nf-inner { text-align: center; max-width: 640px; }
.nf-code { font-family: var(--presa-font-heading); font-size: 20px; font-weight: 700; color: var(--presa-ink); margin-bottom: 8px; }
.nf-lede { color: var(--presa-muted); font-size: 16px; line-height: 1.7; margin: 14px 0 30px; }
.nf-label { display: block; font-size: 13px; font-weight: 700; color: var(--presa-ink); margin-bottom: 8px; text-align: left; }
.nf-search-row { display: flex; gap: 10px; }
.nf-search-row input { flex: 1; font-family: var(--presa-font-body); font-size: 16px; padding: 14px 18px; border: 1.5px solid rgba(0,0,0,0.18); border-radius: 50px; background: #ffffff; }
.nf-search-row input:focus-visible { outline: 2px solid var(--presa-accent); outline-offset: 2px; border-color: var(--presa-ink); }
@media (max-width: 600px) {
.nf-head { padding: 130px 24px 70px; }
.nf-search-row { flex-direction: column; }
}
/* FAQ (details/summary, kit pattern) */
.tpl-faq { background: var(--presa-surface); padding: 100px 60px; }
.tpl-faq .faq-inner { max-width: 760px; margin: 0 auto; }
.tpl-faq .faq-header { text-align: center; margin-bottom: 40px; }
.tpl-faq .faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.tpl-faq .faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--presa-font-body); font-size: 16px; font-weight: 700; color: var(--presa-ink); }
.tpl-faq .faq-question::-webkit-details-marker { display: none; }
.tpl-faq .faq-question svg { width: 18px; height: 18px; stroke: var(--presa-ink); stroke-width: 2; fill: none; flex-shrink: 0; transition: transform 0.2s ease; }
.tpl-faq details[open] .faq-question svg { transform: rotate(45deg); }
.tpl-faq .faq-answer { padding: 0 0 22px; color: var(--presa-muted); font-size: 15px; line-height: 1.75; max-width: 640px; }
@media (max-width: 768px) { .tpl-faq { padding: 60px 32px; } }
@media (max-width: 480px) { .tpl-faq { padding: 48px 24px; } }

/* Section heading floor for template pages */
.presa-tpl .section-heading { font-family: var(--presa-font-heading); font-size: 38px; font-weight: 700; color: var(--presa-ink); line-height: 1.1; }
@media (max-width: 768px) { .presa-tpl .section-heading { font-size: 30px; } }

/* ============ refinements ============ */

/* Blog card - read-more pinned to the card foot */
.blog-card-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--presa-font-body); font-size: 14px; font-weight: 700;
  color: var(--presa-ink); letter-spacing: 0.02em;
  margin-top: auto;
  transition: gap 0.3s ease;
}
.blog-card:hover .blog-card-readmore { gap: 14px; }
.blog-card-readmore svg { width: 16px; height: 16px; stroke: var(--presa-ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Filter pills are links - no underline, ever */
.filter-pill { text-decoration: none; }
.filter-pill:hover, .filter-pill:focus-visible { text-decoration: none; }

/* Featured post row - breathing room below */
.featured { padding-bottom: 60px; }
@media (max-width: 768px) { .featured { padding-bottom: 40px; } }

/* Pagination */
.presa-tpl .navigation.pagination { max-width: 1200px; margin: 50px auto 0; }
.presa-tpl .navigation.pagination .nav-links {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.presa-tpl .navigation.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.presa-tpl .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 2px solid rgba(0,0,0,0.08); border-radius: 50px;
  font-family: var(--presa-font-body); font-size: 13px; font-weight: 700;
  color: var(--presa-muted); text-decoration: none; background: transparent;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.presa-tpl a.page-numbers:hover { border-color: var(--presa-ink); color: var(--presa-ink); }
.presa-tpl .page-numbers.current { background: var(--presa-ink); border-color: var(--presa-ink); color: #ffffff; }
.presa-tpl .page-numbers.dots { border: none; min-width: auto; padding: 0 4px; }
.presa-tpl .page-numbers.prev, .presa-tpl .page-numbers.next { padding: 0 20px; }

/* ============ refinements (cont.) ============ */
.blog-card.hidden, .featured.hidden { display: none; }
.filter-pill[data-filter] { cursor: pointer; }
/* Content-area links - house style, not browser blue */
.article-body a { color: var(--presa-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,0.35); transition: text-decoration-color 0.2s ease; }
.article-body a:hover { text-decoration-color: var(--presa-ink); }


/* HOS: pull-quotes inside article bodies (client-story quotes) */
.article-body blockquote { margin: 28px 0; padding: 20px 26px; border-left: 4px solid var(--ds-color-blue-dark); background: var(--ds-color-surface); border-radius: 0 8px 8px 0; }
.article-body blockquote p { margin: 0 0 8px; color: var(--ds-color-heading); font-size: 20px; line-height: 1.5; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite { display: block; font-style: normal; font-weight: 600; color: var(--ds-color-muted); font-size: 16px; }
