/* WordPress-specific additions for the Four Brothers theme */

/* Admin bar offset */
.admin-bar .site-header { top: 48px; }
.admin-bar .site-header.scrolled { top: 42px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 62px; }
  .admin-bar .site-header.scrolled { top: 56px; }
  #wpadminbar { position: fixed !important; }
}

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
  top: 10px; left: 10px; padding: 12px 18px; background: #fff; color: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow-lg);
}

/* Product detail (editor content) */
.detail .detail-title span { color: var(--green); }
.detail .lead-content { margin-bottom: 18px; }
.detail .lead-content p { color: var(--muted); margin-bottom: 18px; }
.detail .lead-content > :last-child { margin-bottom: 0; }

/* About page content in the text column */
.entry-content.sec-text p + p { margin-top: 14px; }

/* Generic editor content */
.container-narrow { max-width: 980px; }
.entry-content { color: var(--muted); line-height: 1.8; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { color: var(--ink); line-height: 1.3; margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.entry-content h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.entry-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 6px; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--green); padding: 14px 22px; background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid rgba(0,0,0,.08); padding: 10px 14px; text-align: left; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-thumb { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 28px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(6vw, 80px)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-block-button__link { border-radius: 999px; }
.ceo-letter.entry-content > * + * { margin-top: 0; }
.home-faq .answer p, .faq-item .answer p + p { margin-top: 0; }
.faq-item .answer p + p { margin-top: 10px; }

/* Blog list (fallback) */
.post-list { display: grid; gap: 22px; }
.post-item { padding: 26px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.post-item h2 { font-size: 1.35rem; margin-bottom: 6px; }
.post-item h2 a { color: var(--ink); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* Pagination */
.fb-pagination { margin-top: 40px; }
.fb-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fb-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow);
}
.fb-pagination .page-numbers.current, .fb-pagination a.page-numbers:hover { background: var(--green); color: #fff; }
.fb-pagination .screen-reader-text { position: absolute !important; }

/* Bigger logo on tablets & phones */
@media (max-width: 1140px) {
  .brand img { height: 72px; }
  .nav-bar { padding: 6px 8px 6px 14px; }
  .drawer-head img { height: 58px; }
}
@media (max-width: 767px) {
  .brand img { height: 66px; max-width: calc(100vw - 150px); object-fit: contain; object-position: left center; }
  .nav-bar { padding: 4px 6px 4px 10px; }
}
@media (max-width: 380px) {
  .brand img { height: 58px; }
}

/* Hero points: one row on phones (icon above text) */
@media (max-width: 575px) {
  .hero-points {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    max-width: none; margin-top: 30px; padding-top: 22px; align-items: start;
  }
  .hero-points li {
    flex-direction: column; justify-content: flex-start; text-align: center;
    gap: 8px; font-size: 12.5px; line-height: 1.3;
  }
  .hero-points i { margin: 0 auto; }
}
@media (max-width: 360px) {
  .hero-points li { font-size: 11.5px; }
}
