/* foyerboreal.com / bento / split */
:root {
  --ca-primary: #2f8f45;
  --ca-accent: #e7a72b;
  --ca-bg: #f4fbf0;
  --ca-text: #1f3521;
  --ca-radius: 20px;
  --ca-shadow: 0 6px 20px rgba(0,0,0,.09);
  --font-heading: 'Nunito', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}
body.site-ca { margin: 0; background: var(--ca-bg); color: var(--ca-text); font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3, .brand-title { font-family: var(--font-heading); }
a { color: var(--ca-primary); }
.site-header { background: #fff; border-bottom: 3px solid var(--ca-primary); box-shadow: var(--ca-shadow); }
.site-header.nav-centered .inner { text-align: center; }
.site-header.nav-split .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-header.nav-stacked .brand-block { text-align: center; margin-bottom: .5rem; }
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-logo { display: block; width: min(230px, 78vw); height: auto; }
.brand-title { font-size: 1.5rem; font-weight: 700; color: var(--ca-primary); text-decoration: none; }
.brand-tagline { font-size: .78rem; color: #5f6f5c; margin: 0; line-height: 1.35; max-width: 34rem; }
.header-nav { flex-shrink: 0; }
.header-browse {
  box-shadow: none !important;
  font-weight: 600;
  padding: .4rem .9rem;
}
.header-nav .dropdown-menu {
  margin-top: .4rem;
  border-radius: 12px;
  border: 1px solid #d7e6d4;
  box-shadow: 0 10px 28px rgba(31, 53, 33, .12);
  min-width: 11rem;
}
.header-nav .dropdown-item { font-weight: 600; font-size: .9rem; color: var(--ca-text); }
.header-nav .dropdown-item:hover { background: #eef7eb; color: var(--ca-primary); }
.nav-links a { margin-right: 1rem; text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-links a:hover { color: var(--ca-accent); }
.site-wrap { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.promo-block { background: linear-gradient(135deg, var(--ca-primary), color-mix(in srgb, var(--ca-primary) 70%, #000)); color: #fff; border-radius: var(--ca-radius); padding: 2rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
.promo-block .promo-ribbon { position: absolute; top: 12px; right: -28px; background: var(--ca-accent); color: #111; font-size: .7rem; font-weight: 700; padding: 4px 36px; transform: rotate(35deg); text-transform: uppercase; }
.promo-block h2 a { color: #fff; text-decoration: none; }
.promo-block .btn-promo { background: var(--ca-accent); border: none; color: #111; font-weight: 700; }
.rubric-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.rubric-chip { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--ca-primary); color: var(--ca-primary); text-decoration: none; font-size: .85rem; font-weight: 600; }
.rubric-chip:hover, .rubric-chip.active { background: var(--ca-primary); color: #fff; }
.feed { display: grid; gap: 1.25rem; }
.feed.layout-magazine { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feed.layout-list .art-card { display: flex; gap: 1rem; align-items: flex-start; }
.feed.layout-mosaic { grid-template-columns: repeat(3, 1fr); }
.feed.layout-mosaic .art-card:first-child { grid-column: span 2; grid-row: span 2; }
.feed.layout-bento { grid-template-columns: repeat(4, 1fr); }
.feed.layout-bento .art-card:nth-child(1) { grid-column: span 2; }
.feed.layout-bento .art-card:nth-child(4) { grid-column: span 2; }
.feed.layout-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.art-card { background: #fff; border-radius: var(--ca-radius); box-shadow: var(--ca-shadow); overflow: hidden; transition: transform .2s; }
.art-card:hover { transform: translateY(-2px); }
.art-thumb img { width: 100%; height: 180px; object-fit: cover; }
.art-copy { padding: 1rem 1.1rem 1.2rem; }
.art-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ca-accent); font-weight: 700; }
.art-card h3 { font-size: 1.05rem; margin: .35rem 0; line-height: 1.35; }
.art-card h3 a { color: inherit; text-decoration: none; }
.art-card h2 { font-size: 1.35rem; margin: .4rem 0 .55rem; line-height: 1.3; }
.art-card h2 a { color: var(--ca-text); text-decoration: none; }
.art-card h2 a:hover,
.art-card h3 a:hover { color: var(--ca-primary); }
.art-card p { font-size: .9rem; color: #555; margin: 0; }
.section-head { margin: 2rem 0 1rem; border-left: 4px solid var(--ca-accent); padding-left: 1rem; }
.cat-head h1 { margin-bottom: .25rem; }
.article-page { max-width: 780px; margin: 0 auto; padding: 1rem; }
.article-hero { width: 100%; border-radius: var(--ca-radius); margin: 1rem 0; max-height: 420px; object-fit: cover; }
.article-lead { font-size: 1.15rem; color: #444; }
.article-body h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.ad-note { background: #fff8e6; border-left: 4px solid var(--ca-accent); padding: .75rem 1rem; margin: 1rem 0; font-size: .9rem; }
.promo-banner { background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.08)); border: 2px dashed var(--ca-primary); }
.promo-banner-img { max-height: 220px; width: 100%; object-fit: cover; }
.quiz-wrap { background: #fff; border-radius: var(--ca-radius); padding: 1.5rem; margin: 2rem 0; box-shadow: var(--ca-shadow); border: 1px solid #e2eedc; }
.quiz-wrap > h2 { font-size: 1.35rem; margin: 0 0 1rem; color: var(--ca-text); }
.quiz-progress { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin-bottom: .75rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--ca-primary), #4caf65); transition: width .35s ease; }
.quiz-question { font-weight: 700; font-size: 1.05rem; margin: 0 0 1rem; color: var(--ca-text); }
.quiz-options { display: flex; flex-direction: column; gap: .55rem; }
.quiz-option {
  display: block; width: 100%; text-align: left;
  background: #f7fbf5; border: 1.5px solid #d5e8d1; color: var(--ca-text);
  border-radius: 12px; padding: .7rem 1rem; font-weight: 600; font-size: .95rem;
  transition: border-color .2s, background .2s, transform .15s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--ca-primary); background: #eef8ea; }
.quiz-option.selected { border-color: var(--ca-primary); background: #e4f4df; box-shadow: inset 0 0 0 1px var(--ca-primary); }
.quiz-option:disabled { opacity: .75; cursor: default; }
.quiz-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; min-height: 140px; text-align: center; color: #567055; }
.quiz-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #d7e8d2; border-top-color: var(--ca-primary);
  animation: quiz-spin .7s linear infinite;
}
@keyframes quiz-spin { to { transform: rotate(360deg); } }
.quiz-result-card {
  background: linear-gradient(160deg, #f7fbf4 0%, #fff 55%);
  border: 1px solid #d7e8d2; border-radius: 16px;
  padding: 1.25rem 1.35rem 1.4rem; margin-top: .5rem;
  box-shadow: 0 8px 22px rgba(47, 143, 69, .08);
}
.quiz-result-badge {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #8a6420; background: #fff3d6;
  border-radius: 999px; padding: .28rem .7rem; margin-bottom: .65rem;
}
.quiz-result-title { font-family: var(--font-heading); font-size: 1.35rem; margin: 0 0 .45rem; color: var(--ca-primary); }
.quiz-result-text { margin: 0 0 1.1rem; color: #445544; line-height: 1.55; }
.quiz-result-cta {
  background: var(--ca-primary) !important; border: none !important; color: #fff !important;
  font-weight: 700; border-radius: 999px; padding: .65rem 1.35rem;
  display: inline-block; text-decoration: none;
  box-shadow: 0 6px 16px rgba(47, 143, 69, .25);
  transition: transform .15s, background .15s;
}
.quiz-result-cta:hover { background: #267a39 !important; color: #fff !important; transform: translateY(-1px); }
.quiz-flip-card.flipped .quiz-flip-inner { transform: rotateY(180deg); }
.quiz-flip-inner { transition: transform .4s; min-height: 120px; }
.hidden { display: none !important; }
.site-footer { background: #1a1a1a; color: #ccc; padding: 2rem 1rem; margin-top: 3rem; font-size: .88rem; }
.site-footer a { color: #ddd; }
.cookie-bar { display: none; }
.ck-ribbon { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: #fff; border-top: 4px solid #20c997; padding: .75rem 0; box-shadow: 0 -4px 20px rgba(0,0,0,.08); transform: translateY(100%); opacity: 0; transition: transform .32s, opacity .32s; }
.ck-ribbon .ck-label { color: #20c997; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.ck-ribbon .ck-text { color: #444; }
.legal-page { max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
@media (max-width: 768px) {
  .feed.layout-mosaic, .feed.layout-bento { grid-template-columns: 1fr; }
  .feed.layout-mosaic .art-card:first-child { grid-column: span 1; grid-row: span 1; }
}

.feed-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.promo-bento {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9ead3;
  background: linear-gradient(180deg, #fff 0%, #f8fcf6 100%);
  min-height: 0;
}
.promo-bento .art-thumb {
  flex: 1 1 auto;
  min-height: 220px;
  overflow: hidden;
}
.promo-bento .art-thumb img,
.promo-bento .art-thumb-tall img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.promo-bento .art-copy {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.05rem 1.2rem 1.2rem;
  flex: 0 0 auto;
}
.promo-bento .art-cat {
  display: inline-block; align-self: flex-start;
  background: #fff3d6; color: #8a6420;
  padding: .2rem .55rem; border-radius: 999px; letter-spacing: .05em;
}
.promo-bento h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 0; }
.promo-bento p { margin: 0 !important; }
.promo-bento .btn {
  align-self: flex-start;
  margin-top: .15rem;
  font-weight: 700; border-radius: 999px; padding: .45rem 1.05rem;
  box-shadow: none;
}
.art-thumb-tall img { height: 220px; }
.feed-simple { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.feed-category { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.feed-bento .art-card,
.feed-simple .art-card,
.feed-category .art-card { display: flex; flex-direction: column; height: 100%; }
.feed-bento .art-thumb,
.feed-simple .art-thumb,
.feed-category .art-thumb { background: #dfe9d8; }
.art-text-only { display: none; }
.quiz-dots { display: flex; gap: .4rem; margin-bottom: .85rem; }
.quiz-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccd9c8; transition: background .2s, transform .2s; }
.quiz-dot.active { background: var(--ca-primary); transform: scale(1.15); }
.quiz-dot.done { background: #7cbc7f; }
@media (max-width: 768px) {
  .feed-bento { grid-template-columns: 1fr; }
  .promo-bento { grid-column: span 1; grid-row: span 1; }
  .promo-bento .art-thumb { flex: 0 0 auto; min-height: 180px; }
  .promo-bento .art-thumb img,
  .promo-bento .art-thumb-tall img { height: 180px; min-height: 180px; }
  .header-inner { align-items: center; }
  .brand-logo { width: min(300px, 72vw); }
}