/*
Theme Name: Feito por Glauciano
Theme URI: https://example.com/feito-por-glauciano
Author: Glauciano
Author URI: https://example.com
Description: Tema editorial responsivo para portais de notícias, com página inicial em grids, páginas de postagem, arquivos, busca, logos personalizáveis e rodapé minimalista.
Version: 1.1.2
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feito-por-glauciano
Tags: news, blog, custom-logo, custom-colors, custom-menu, featured-images, translation-ready, wide-blocks
*/

:root {
  --fp-primary: #a30d28;
  --fp-primary-dark: #7c0019;
  --fp-primary-mid: #91051f;
  --fp-sports: #075b2c;
  --fp-entertainment: #b86b00;
  --fp-services: #07547a;
  --fp-black: #090909;
  --fp-text: #111111;
  --fp-muted: #646464;
  --fp-border: #d9d9d9;
  --fp-bg-soft: #f4f4f4;
  --fp-white: #ffffff;
  --fp-container: 1200px;
  --fp-radius: 10px;
  --fp-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fp-text);
  background: var(--fp-white) !important;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open,
body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fp-primary-dark); }
button,
input,
textarea,
select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  z-index: 99999;
  background: #fff;
  color: #000;
  border-radius: 4px;
}
.fp-container {
  width: min(calc(100% - 32px), var(--fp-container));
  margin-inline: auto;
}
.fp-section { margin: 48px 0; }
.fp-section--tight { margin: 34px 0 46px; }
.fp-divider { border: 0; border-top: 1px solid var(--fp-border); margin: 24px 0; }
.site-main { min-height: 58vh; background: #fff; }

/* Header */
.fp-site-header { position: relative; z-index: 100; }
.fp-brandbar { background: var(--fp-primary-dark); color: #fff; }
.fp-brandbar__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
}
.fp-icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.fp-icon-button:hover { background: rgba(255,255,255,.11); color: #fff; }
.fp-icon-button svg { width: 25px; height: 25px; stroke: currentColor; }
.fp-site-brand { display: flex; align-items: center; justify-content: center; min-width: 0; }
.fp-site-brand .custom-logo-link { display: inline-flex; align-items: center; justify-content: center; }
.fp-site-brand .custom-logo {
  width: auto;
  max-height: 52px;
  max-width: min(350px, 68vw);
  object-fit: contain;
}
.fp-site-title {
  color: #fff;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 800;
}
.fp-nav-wrap {
  background: #fff;
  border-bottom: 1px solid #cecece;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.fp-primary-nav { overflow-x: auto; scrollbar-width: none; }
.fp-primary-nav::-webkit-scrollbar { display: none; }
.fp-primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  min-width: max-content;
}
.fp-primary-nav li { margin: 0; }
.fp-primary-nav a {
  min-height: 55px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: #171717;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.fp-primary-nav li:first-child a { padding-left: 0; }
.fp-primary-nav li.current-menu-item > a,
.fp-primary-nav li.current-category-ancestor > a,
.fp-primary-nav a:hover {
  color: var(--fp-primary-dark);
  border-bottom-color: var(--fp-primary-dark);
}

/* Drawer and search */
.fp-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.58);
  opacity: 0;
  visibility: hidden;
  transition: .22s ease;
}
.menu-open .fp-overlay,
.search-open .fp-overlay { opacity: 1; visibility: visible; }
.fp-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 310;
  width: min(430px, 92vw);
  background: #fff;
  transform: translateX(-102%);
  transition: transform .25s ease;
  overflow-y: auto;
  box-shadow: 20px 0 60px rgba(0,0,0,.2);
}
.menu-open .fp-drawer { transform: translateX(0); }
.fp-drawer__head {
  min-height: 86px;
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fp-primary-dark);
  color: #fff;
}
.fp-drawer__brand { min-width: 0; font-size: 25px; font-weight: 800; }
.fp-drawer__brand .custom-logo-link { display: flex; }
.fp-drawer__brand .custom-logo { width: auto; max-height: 44px; max-width: 235px; object-fit: contain; }
.fp-drawer__close { color: #fff; }
.fp-drawer__body { padding: 24px; }
.fp-drawer__search { display: flex; margin-bottom: 23px; }
.fp-drawer__search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px 0 0 6px;
  outline: 0;
}
.fp-drawer__search input:focus { border-color: var(--fp-primary-dark); }
.fp-drawer__search button {
  width: 50px;
  border: 0;
  background: var(--fp-primary-dark);
  color: #fff;
  border-radius: 0 6px 6px 0;
}
.fp-drawer__search svg { width: 21px; height: 21px; stroke: currentColor; }
.fp-drawer .menu { list-style: none; margin: 0; padding: 0; }
.fp-drawer .menu li { border-bottom: 1px solid #e8e8e8; }
.fp-drawer .menu a { display: block; padding: 13px 2px; font-size: 16px; font-weight: 700; }
.fp-drawer .sub-menu { padding-left: 16px; }
.fp-drawer__categories { margin-top: 28px; }
.fp-drawer__categories h3 {
  margin: 0 0 11px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fp-muted);
}
.fp-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-chip {
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  background: #fff;
}
.fp-chip:hover { border-color: var(--fp-primary-dark); color: var(--fp-primary-dark); }
.fp-search-panel {
  position: fixed;
  left: 50%;
  top: 16vh;
  z-index: 320;
  width: min(740px, calc(100% - 32px));
  transform: translate(-50%, -28px);
  padding: 26px;
  background: #fff;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}
.search-open .fp-search-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fp-search-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.fp-search-panel__top h2 { margin: 0; font-size: 23px; }
.fp-search-panel__top .fp-icon-button { color: #111; }
.fp-search-form { display: flex; gap: 10px; }
.fp-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 2px solid #d5d5d5;
  border-radius: 7px;
  padding: 0 16px;
  outline: 0;
}
.fp-search-form input[type="search"]:focus { border-color: var(--fp-primary-dark); }
.fp-search-form button {
  border: 0;
  border-radius: 7px;
  padding: 0 24px;
  background: var(--fp-primary-dark);
  color: #fff;
  font-weight: 800;
}

/* Common editorial elements */
.fp-main-top-space { height: 26px; }
.fp-eyebrow {
  margin: 0 0 7px;
  color: var(--fp-primary-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.fp-title { margin: 0; letter-spacing: -.035em; line-height: 1.09; }
.fp-excerpt { color: #4f4f4f; margin: 10px 0 0; }
.fp-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--fp-radius);
  background: #e6e6e6;
}
.fp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
a:hover .fp-media img,
.fp-card:hover .fp-media img { transform: scale(1.018); }
.fp-placeholder {
  min-height: 180px;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee, #d9d9d9);
  color: #888;
  font-weight: 700;
}
.fp-card { min-width: 0; }
.fp-card__title {
  margin: 9px 0 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 700;
}
.fp-card__excerpt { margin: 8px 0 0; color: #555; font-size: 14px; line-height: 1.48; }
.fp-card--horizontal {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fp-border);
}
.fp-card--horizontal .fp-media { aspect-ratio: 16 / 10; border-radius: 8px; }
.fp-card--horizontal .fp-card__title { margin: 0; font-size: 17px; line-height: 1.22; }
.fp-card--horizontal .fp-eyebrow { margin: 0 0 5px; }
.fp-card--compact {
  display: grid;
  grid-template-columns: 106px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--fp-border);
}
.fp-card--compact .fp-media { aspect-ratio: 16 / 10; border-radius: 7px; }
.fp-card--compact .fp-card__title { margin: 0; font-size: 15px; line-height: 1.22; }
.fp-card--tile .fp-media { aspect-ratio: 16 / 10; border-radius: 8px; }
.fp-card--tile .fp-card__title { margin-top: 8px; font-size: 17px; line-height: 1.22; }
.fp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding-top: 10px;
  border-top: 2px solid var(--fp-primary-dark);
  color: var(--fp-primary-dark);
}
.fp-section-title h2 { margin: 0; font-size: 20px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.fp-section-title svg { width: 16px; height: 16px; stroke: currentColor; }
.fp-section-title--green { border-top-color: var(--fp-sports); color: var(--fp-sports); }
.fp-section-title--yellow { border-top-color: var(--fp-entertainment); color: var(--fp-entertainment); }
.fp-section-title--blue { border-top-color: var(--fp-services); color: var(--fp-services); }

/* Homepage */
.fp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(330px, .84fr);
  gap: 30px;
  align-items: start;
}
.fp-hero-main .fp-title { max-width: 900px; font-size: clamp(36px, 4.1vw, 58px); font-weight: 700; }
.fp-hero-main .fp-excerpt { max-width: 850px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; }
.fp-hero-main .fp-media { aspect-ratio: 16 / 9; margin-top: 18px; }
.fp-related-bullets {
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fp-related-bullets li { position: relative; padding-left: 17px; font-size: 16px; line-height: 1.42; }
.fp-related-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fp-primary-dark);
}
.fp-hero-side { border-left: 1px solid var(--fp-border); padding-left: 25px; }
.fp-hero-side .fp-card:first-child { padding-top: 0; }
.fp-hero-side .fp-card--horizontal { grid-template-columns: 140px minmax(0,1fr); }
.fp-hero-promo {
  margin-top: 23px;
  padding: 14px;
  background: #f2f2f2;
  border-radius: 10px;
}
.fp-hero-promo .fp-media { aspect-ratio: 16 / 10; }
.fp-hero-promo .fp-card__title { font-size: 21px; }

.fp-special {
  margin-inline: 0;
  padding: 30px;
  background: linear-gradient(145deg, #271071, #570045);
  border-radius: 0;
  color: #fff !important;
}
.fp-special,
.fp-special h1,
.fp-special h2,
.fp-special h3,
.fp-special p,
.fp-special a { color: #fff !important; }
.fp-special .fp-section-title--special { border-top-color: rgba(255,255,255,.75); color: #fff; }
.fp-special__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 28px;
}
.fp-special .fp-title { font-size: clamp(31px, 3.45vw, 48px); }
.fp-special .fp-excerpt { color: rgba(255,255,255,.78) !important; }
.fp-special .fp-media { aspect-ratio: 16 / 9; margin-top: 17px; }
.fp-special .fp-card--horizontal { border-color: rgba(255,255,255,.24); grid-template-columns: 138px minmax(0,1fr); }
.fp-special .fp-eyebrow { color: #f5ca73 !important; }

.fp-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: 28px;
}
.fp-feature-lead .fp-media { aspect-ratio: 16 / 9; }
.fp-feature-lead .fp-card__title { font-size: clamp(28px, 2.9vw, 40px); }
.fp-feature-list .fp-card:first-child { padding-top: 0; }
.fp-latest-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 26px; }
.fp-latest-list .fp-card--horizontal:nth-child(1),
.fp-latest-list .fp-card--horizontal:nth-child(2) { padding-top: 0; }
.fp-category-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 28px;
}
.fp-category-lead .fp-media { aspect-ratio: 16 / 9; }
.fp-category-lead .fp-card__title { font-size: clamp(27px, 2.55vw, 37px); }
.fp-category-side { min-width: 0; }
.fp-category-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--fp-border); }
.fp-category-list .fp-card--horizontal:first-child { padding-top: 14px; }
.fp-most-read-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fp-most-read-card {
  display: grid;
  grid-template-columns: 56px 146px minmax(0,1fr);
  gap: 15px;
  align-items: center;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--fp-border);
}
.fp-most-read-card:nth-child(-n+2) { padding-top: 0; }
.fp-most-read-card__rank {
  color: var(--fp-primary);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}
.fp-most-read-card__media { display: block; min-width: 0; }
.fp-most-read-card__media .fp-media { aspect-ratio: 16 / 10; border-radius: 7px; }
.fp-most-read-card__content { min-width: 0; }
.fp-most-read-card__content .fp-eyebrow { margin-bottom: 5px; }
.fp-most-read-card h3 { margin: 0; font-size: 18px; line-height: 1.22; letter-spacing: -.02em; }
.fp-link-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  border-radius: 10px;
}
.fp-link-cards li {
  list-style: none;
  min-height: 120px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--fp-border);
}
.fp-link-cards li:last-child { border-right: 0; }
.fp-link-cards a { color: var(--fp-primary-dark); font-weight: 700; }

/* Archives */
.fp-page-head { padding: 40px 0 22px; }
.fp-page-head h1 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
.fp-page-head p { margin: 12px 0 0; color: var(--fp-muted); font-size: 17px; }
.fp-subcategory-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.fp-subcategory-nav a { padding: 8px 13px; border: 1px solid #d8d8d8; border-radius: 999px; font-size: 13px; font-weight: 700; }
.fp-subcategory-nav a:hover { border-color: var(--fp-primary-dark); color: var(--fp-primary-dark); }
.fp-archive-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 28px; margin-bottom: 44px; }
.fp-archive-feature__main .fp-media { aspect-ratio: 16 / 9; }
.fp-archive-feature__main .fp-card__title { font-size: clamp(30px, 3.4vw, 46px); }
.fp-archive-list { max-width: 900px; }
.fp-archive-item {
  display: grid;
  grid-template-columns: 255px minmax(0,1fr);
  gap: 21px;
  padding: 21px 0;
  border-bottom: 1px solid var(--fp-border);
}
.fp-archive-item .fp-media { aspect-ratio: 16 / 10; }
.fp-archive-item .fp-card__title { margin-top: 4px; font-size: 23px; }
.fp-archive-item time { display: inline-block; margin-top: 9px; color: #777; font-size: 12px; }
.fp-load-more-wrap { margin: 30px 0 55px; }
.fp-button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: var(--fp-primary-dark);
  color: #fff;
  font-weight: 800;
}
.fp-button:hover { background: var(--fp-primary-mid); color: #fff; }
.fp-button[disabled] { opacity: .55; cursor: wait; }
.fp-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 55px; }
.fp-pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--fp-border); border-radius: 7px; }
.fp-pagination .current { background: var(--fp-primary-dark); color: #fff; border-color: var(--fp-primary-dark); }

/* Single post */
.single-post .site-main { background: #fff; }
.fp-breadcrumbs {
  padding-top: 29px;
  color: #737373;
  font-size: 12px;
  line-height: 1.5;
}
.fp-breadcrumbs a { color: var(--fp-primary-dark); font-weight: 600; }
.fp-article-head { max-width: 1040px; padding: 25px 0 24px; }
.fp-article-head .fp-eyebrow { margin-bottom: 9px; font-size: 14px; }
.fp-article-head h1 {
  max-width: 1030px;
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 700;
}
.fp-article-subtitle {
  max-width: 960px;
  margin: 17px 0 0;
  color: #4c4c4c;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}
.fp-article-byline { display: flex; align-items: center; gap: 11px; margin-top: 22px; }
.fp-article-author-avatar { width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #e4e4e4; flex: 0 0 auto; }
.fp-article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fp-article-author { font-size: 13px; line-height: 1.3; }
.fp-article-author a { font-weight: 700; }
.fp-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 3px; color: #777; font-size: 12px; line-height: 1.4; }
.fp-share-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--fp-border);
}
.fp-share-row__label { margin-right: 3px; color: #666; font-size: 12px; font-weight: 700; }
.fp-share-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #fff;
  color: #202020;
}
.fp-share-button:hover { border-color: var(--fp-primary-dark); color: var(--fp-primary-dark); }
.fp-share-button svg { width: 17px; height: 17px; fill: currentColor; }
.fp-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(280px, 330px);
  gap: 62px;
  align-items: start;
}
.fp-article-figure { margin: 5px 0 27px; }
.fp-article-figure .fp-media { aspect-ratio: 16 / 9; border-radius: 9px; }
.fp-article-caption { margin-top: 7px; color: #777; font-size: 11px; line-height: 1.45; }
.fp-entry-content { color: #222; font-size: 18px; line-height: 1.78; }
.fp-entry-content > * { max-width: 100%; }
.fp-entry-content p { margin: 0 0 23px; }
.fp-entry-content h2 { margin: 40px 0 15px; font-size: 31px; line-height: 1.2; letter-spacing: -.025em; }
.fp-entry-content h3 { margin: 33px 0 12px; font-size: 25px; line-height: 1.22; }
.fp-entry-content h4 { margin: 28px 0 10px; font-size: 20px; }
.fp-entry-content a { color: var(--fp-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.fp-entry-content blockquote {
  margin: 29px 0;
  padding: 9px 0 9px 21px;
  border-left: 4px solid var(--fp-primary-dark);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}
.fp-entry-content ul,
.fp-entry-content ol { padding-left: 24px; }
.fp-entry-content img { border-radius: 8px; }
.fp-entry-content .wp-caption-text,
.fp-entry-content figcaption { margin-top: 7px; color: #777; font-size: 11px; }
.fp-entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fp-entry-content th,
.fp-entry-content td { padding: 10px; border: 1px solid var(--fp-border); }
.fp-read-more-box {
  margin: 30px 0;
  padding: 17px 0;
  border-top: 2px solid var(--fp-primary-dark);
  border-bottom: 1px solid var(--fp-border);
}
.fp-read-more-box h3 { margin: 0 0 9px; color: var(--fp-primary-dark); font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.fp-read-more-box ul { margin: 0; padding-left: 20px; }
.fp-read-more-box li { margin: 7px 0; }
.fp-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 31px; padding-top: 20px; border-top: 1px solid var(--fp-border); }
.fp-article-tags a { padding: 7px 11px; border: 1px solid #d7d7d7; border-radius: 999px; font-size: 12px; font-weight: 600; }
.fp-article-tags a:hover { border-color: var(--fp-primary-dark); color: var(--fp-primary-dark); }
.fp-author-box {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 17px;
  align-items: start;
  margin: 36px 0 43px;
  padding: 21px;
  border-radius: 9px;
  background: var(--fp-bg-soft);
}
.fp-author-box__avatar { overflow: hidden; border-radius: 50%; }
.fp-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.fp-author-box__label { margin: 0 0 3px !important; color: var(--fp-primary-dark) !important; font-size: 11px !important; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.fp-author-box h3 { margin: 0 0 6px; font-size: 19px; }
.fp-author-box p { margin: 0; color: #555; font-size: 13px; line-height: 1.5; }
.fp-sidebar { position: sticky; top: 20px; }
.fp-sidebar-block { margin-bottom: 32px; }
.fp-sidebar-title {
  margin: 0 0 11px;
  padding-top: 9px;
  border-top: 2px solid var(--fp-primary-dark);
  color: var(--fp-primary-dark);
  font-size: 18px;
}
.fp-ranked-list { counter-reset: rank; list-style: none; margin: 0; padding: 0; }
.fp-ranked-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--fp-border);
}
.fp-ranked-list li::before { content: counter(rank); color: var(--fp-primary-dark); font-size: 25px; font-weight: 800; line-height: 1; }
.fp-ranked-list a { font-size: 14px; font-weight: 700; line-height: 1.25; }
.fp-article-related { margin-top: 51px; }
.fp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.fp-related-grid .fp-card__title { font-size: 16px; }

/* Pages and search */
.fp-content-narrow { max-width: 840px; margin-inline: auto; padding: 45px 0 70px; }
.fp-content-narrow h1 { margin: 0 0 28px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; }
.fp-search-result-title { margin: 0; font-size: clamp(32px, 4vw, 50px); }
.fp-empty { padding: 65px 0; text-align: center; }
.fp-empty h1 { margin: 0; font-size: clamp(40px, 7vw, 82px); }
.fp-empty p { color: #666; font-size: 17px; }

/* Footer */
.fp-footer { margin-top: 58px; background: var(--fp-primary-dark); color: #fff; }
.fp-footer__inner {
  min-height: 175px;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  text-align: center;
}
.fp-footer__logo .custom-logo { width: auto; max-height: 58px; max-width: 300px; object-fit: contain; }
.fp-footer__text-logo { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; }
.fp-footer__copyright { margin: 0; color: rgba(255,255,255,.8); font-size: 12px; }

/* Gutenberg */
.alignwide { margin-left: max(-90px, calc((100vw - 100%) / -2 + 24px)); margin-right: max(-90px, calc((100vw - 100%) / -2 + 24px)); max-width: none; width: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

@media (max-width: 1050px) {
  .fp-hero,
  .fp-special__grid,
  .fp-feature-grid,
  .fp-category-block,
  .fp-archive-feature { grid-template-columns: 1fr; }
  .fp-hero-side {
    padding-left: 0;
    border-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 21px;
  }
  .fp-hero-promo { grid-column: 1 / -1; }
  .fp-special__side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
  .fp-category-side { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 20px; }
  .fp-category-tiles { align-content: start; border-bottom: 0; grid-template-columns: 1fr; }
  .fp-category-list .fp-card--horizontal:first-child { padding-top: 0; }
  .fp-single-layout { grid-template-columns: minmax(0,1fr) 285px; gap: 38px; }
  .fp-link-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .fp-link-cards li:nth-child(3) { border-right: 0; }
  .fp-link-cards li:nth-child(-n+3) { border-bottom: 1px solid var(--fp-border); }
}

@media (max-width: 782px) {
  .fp-container { width: min(calc(100% - 28px), var(--fp-container)); }
  .fp-brandbar__inner { min-height: 68px; grid-template-columns: 46px minmax(0,1fr) 46px; }
  .fp-site-brand .custom-logo { max-height: 42px; max-width: 225px; }
  .fp-site-title { font-size: 35px; }
  .fp-primary-nav a { min-height: 52px; padding: 0 15px; font-size: 14px; }
  .fp-primary-nav li:first-child a { padding-left: 0; }
  .fp-main-top-space { height: 22px; }
  .fp-section { margin: 42px 0; }
  .fp-hero-main .fp-title { font-size: 38px; }
  .fp-hero-main .fp-excerpt { font-size: 17px; }
  .fp-hero-side { grid-template-columns: 1fr; }
  .fp-special { margin-inline: -14px; padding: 24px 14px; }
  .fp-special__side { grid-template-columns: 1fr; }
  .fp-latest-list { grid-template-columns: 1fr; }
  .fp-latest-list .fp-card--horizontal:nth-child(2) { padding-top: 16px; }
  .fp-category-side { grid-template-columns: 1fr; }
  .fp-category-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 17px; border-bottom: 1px solid var(--fp-border); }
  .fp-category-list .fp-card--horizontal:first-child { padding-top: 14px; }
  .fp-single-layout { grid-template-columns: 1fr; }
  .fp-sidebar { position: static; margin-top: 12px; }
  .fp-article-head h1 { font-size: 42px; }
  .fp-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fp-page-head { padding-top: 31px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .fp-container { width: calc(100% - 30px); }
  .fp-brandbar__inner { min-height: 64px; }
  .fp-icon-button { width: 42px; height: 42px; }
  .fp-icon-button svg { width: 23px; height: 23px; }
  .fp-site-brand .custom-logo { max-height: 38px; max-width: 205px; }
  .fp-site-title { font-size: 30px; letter-spacing: -1.3px; }
  .fp-primary-nav a { min-height: 50px; padding: 0 14px; font-size: 13px; }
  .fp-search-panel { top: 9vh; padding: 19px; }
  .fp-search-form { flex-direction: column; }
  .fp-search-form button { min-height: 48px; }
  .fp-main-top-space { height: 19px; }
  .fp-section--tight { margin-top: 25px; }
  .fp-hero { gap: 23px; }
  .fp-hero-main .fp-title { font-size: 31px; line-height: 1.12; letter-spacing: -.032em; }
  .fp-hero-main .fp-excerpt { margin-top: 10px; font-size: 16px; line-height: 1.55; }
  .fp-hero-main .fp-media { margin-top: 14px; border-radius: 8px; }
  .fp-related-bullets { margin-top: 15px; gap: 9px; }
  .fp-related-bullets li { font-size: 15px; }
  .fp-card--horizontal { grid-template-columns: 122px minmax(0,1fr); gap: 13px; padding: 14px 0; }
  .fp-card--horizontal .fp-card__title { font-size: 15px; line-height: 1.22; }
  .fp-card--horizontal .fp-eyebrow { font-size: 11px; }
  .fp-card--compact { grid-template-columns: 100px minmax(0,1fr); }
  .fp-card--tile .fp-card__title { font-size: 14px; }
  .fp-hero-promo { padding: 13px; }
  .fp-hero-promo .fp-card__title { font-size: 19px; }
  .fp-feature-lead .fp-card__title,
  .fp-category-lead .fp-card__title { font-size: 27px; line-height: 1.18; }
  .fp-feature-lead .fp-card__excerpt,
  .fp-category-lead .fp-card__excerpt { font-size: 14px; }
  .fp-special .fp-title { font-size: 29px; }
  .fp-section-title { margin-bottom: 15px; padding-top: 9px; }
  .fp-section-title h2 { font-size: 18px; }
  .fp-most-read-grid { grid-template-columns: 1fr; }
  .fp-most-read-card:nth-child(2) { padding-top: 18px; }
  .fp-most-read-card { grid-template-columns: 45px 112px minmax(0,1fr); gap: 12px; padding: 15px 0; }
  .fp-most-read-card__rank { font-size: 28px; }
  .fp-most-read-card h3 { font-size: 15px; }
  .fp-link-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fp-link-cards li { min-height: 105px; border-bottom: 1px solid var(--fp-border); }
  .fp-link-cards li:nth-child(odd) { border-right: 1px solid var(--fp-border); }
  .fp-link-cards li:nth-child(even) { border-right: 0; }
  .fp-link-cards li:nth-last-child(-n+2) { border-bottom: 0; }
  .fp-archive-item { grid-template-columns: 124px minmax(0,1fr); gap: 13px; padding: 15px 0; }
  .fp-archive-item .fp-card__title { font-size: 16px; }
  .fp-archive-item .fp-card__excerpt { display: none; }
  .fp-page-head h1 { font-size: 41px; }
  .fp-breadcrumbs { padding-top: 21px; font-size: 11px; }
  .fp-article-head { padding-top: 17px; }
  .fp-article-head .fp-eyebrow { font-size: 12px; }
  .fp-article-head h1 { font-size: 34px; line-height: 1.1; }
  .fp-article-subtitle { margin-top: 13px; font-size: 17px; line-height: 1.5; }
  .fp-article-byline { margin-top: 18px; }
  .fp-share-row { overflow-x: auto; }
  .fp-share-row__label { display: none; }
  .fp-article-figure { margin-top: 2px; }
  .fp-article-figure .fp-media { border-radius: 8px; }
  .fp-entry-content { font-size: 17px; line-height: 1.72; }
  .fp-entry-content h2 { font-size: 27px; }
  .fp-entry-content h3 { font-size: 23px; }
  .fp-entry-content blockquote { font-size: 20px; }
  .fp-author-box { grid-template-columns: 60px minmax(0,1fr); padding: 17px; }
  .fp-related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fp-related-grid .fp-card__title { font-size: 14px; }
  .fp-footer__inner { min-height: 155px; }
  .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 380px) {
  .fp-container { width: calc(100% - 24px); }
  .fp-site-brand .custom-logo { max-width: 175px; }
  .fp-hero-main .fp-title { font-size: 28px; }
  .fp-card--horizontal { grid-template-columns: 110px minmax(0,1fr); }
  .fp-category-tiles { grid-template-columns: 1fr; }
  .fp-related-grid { grid-template-columns: 1fr; }
}
