/*
Theme Name: Vasilescu Editorial
Description: Temă copil Davenport pentru revista byvasilescu.ro.
Template: davenport
Version: 1.0.0
Text Domain: vasilescu-editorial
*/
:root {
  --bv-paper: #fbfaf6;
  --bv-ink: #172d27;
  --bv-muted: #52605a;
  --bv-green: #163d32;
  --bv-rust: #983d26;
  --bv-line: #d7dcd3;
  --bv-serif: Baskervville, Georgia, "Times New Roman", serif;
  --bv-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
body.bv-edition { background: var(--bv-paper); color: var(--bv-ink); font-family: var(--bv-sans); }
.bv-edition :is(a,button,input,textarea):focus-visible { outline: 3px solid #ba5c25; outline-offset: 3px; }
.bv-shell { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.bv-skip { position: absolute; left: 10px; top: -150px; z-index: 99999; padding: 8px 15px; background: white; }
.bv-skip:focus { top: 50px; }
.bv-mast, .bv-footer { background: var(--bv-green); color: #fffaf0; }
.bv-mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0 15px; }
.bv-mast .bv-brand, .bv-footer .bv-brand { color: #fffaf0; font: bold clamp(42px,4.7vw,68px)/1 var(--bv-serif); letter-spacing: -.075em; text-decoration: none; }
.bv-brand span { color: #eda96e; }
.bv-nav { border-bottom: 1px solid var(--bv-line); background: var(--bv-paper); }
.bv-nav .bv-links, .bv-footer .bv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding: 0; margin: 0; list-style: none; }
.bv-nav .bv-links > li { margin: 0; padding: 0; }
.bv-nav .bv-links a { display: block; padding: 15px 0 13px; border-bottom: 2px solid transparent; font: 650 15px/1.35 var(--bv-sans); color: var(--bv-ink); text-decoration: none; }
.bv-nav .bv-links a:hover, .bv-nav .current-menu-item > a, .bv-nav .current-menu-ancestor > a { color: var(--bv-rust); border-bottom-color: var(--bv-rust); }
.bv-toggle { display: none; }
.bv-search { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 15px; margin: 0; width: min(270px,100%); background: white; border-radius: 6px; border: 1px solid #bbc6bc; box-sizing: border-box; }
.bv-search:focus-within { outline: 3px solid #e8a56a; outline-offset: 2px; }
.bv-search label { display: block; flex: 1; min-width: 0; margin: 0; }
.bv-edition .bv-search input[type=search] { width: 100%; height: 36px; border: 0; border-radius: 0; padding: 0; margin: 0; color: var(--bv-ink); background: transparent; box-shadow: none; outline: 0; font: 500 16px/1.3 var(--bv-sans); }
.bv-search input::placeholder { opacity: 1; color: #53625a; }
.bv-edition .bv-search button { display: grid; place-items: center; width: 38px; min-height: 36px; padding: 0; border: 0; border-radius: 3px; background: #e7ede5; color: var(--bv-green); }
.bv-edition .bv-search button:hover { color: white; background: var(--bv-green); }
.bv-lens { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; margin: -2px 3px 0 0; }
.bv-lens::after { content: ''; position: absolute; width: 8px; height: 2px; background: currentColor; top: 11px; left: 10px; transform: rotate(45deg); transform-origin: left center; }
.bv-feed { padding: clamp(24px,3.8vw,48px) 0 52px; }
.bv-lead { display: grid; grid-template-columns: 55% minmax(0,1fr); align-items: stretch; background: #edece2; }
.bv-lead.bv-text-lead { grid-template-columns: 1fr; }
.bv-lead-photo, .bv-photo { display: block; background: #e0e5db; overflow: hidden; }
.bv-lead-photo img, .bv-photo img { display: block; width: 100%; object-fit: cover; }
.bv-lead-photo { position: relative; min-height: clamp(335px,34vw,455px); }
.bv-lead-photo img { position: absolute; inset: 0; height: 100%; }
.bv-lead-copy { align-self: center; padding: clamp(28px,3.4vw,48px); }
.bv-edition .bv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin: 0 0 13px; color: var(--bv-muted); font: 550 13px/1.4 var(--bv-sans); }
.bv-meta a { color: var(--bv-rust); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .085em; text-decoration: none; }
.bv-meta a:hover { text-decoration: underline; }
.bv-edition .bv-lead h1, .bv-edition .bv-card h2, .bv-edition .bv-section :is(h1,h2) { color: var(--bv-ink); font-family: var(--bv-serif); font-weight: 700; text-transform: none; letter-spacing: -.045em; }
.bv-edition .bv-lead h1 { margin: 0 0 14px; font-size: clamp(35px,3.65vw,54px); line-height: 1.045; }
.bv-lead h1 a, .bv-card h2 a { color: inherit; text-decoration: none; }
.bv-lead h1 a:hover, .bv-card h2 a:hover { color: var(--bv-rust); }
.bv-lead p, .bv-card p, .bv-description, .bv-empty { font: 400 16px/1.6 var(--bv-sans); color: var(--bv-muted); }
.bv-lead p { margin: 0 0 19px; }
.bv-edition .bv-read { display: inline-flex; gap: 12px; align-items: center; color: var(--bv-green); font: 700 15px/1.5 var(--bv-sans); border-bottom: 1px solid #7d9787; padding-bottom: 2px; text-decoration: none; }
.bv-read:hover { border-bottom-color: var(--bv-rust); }
.bv-section { display: flex; align-items: center; gap: 22px; margin: 0 0 24px; }
.bv-lead + .bv-section { margin-top: clamp(32px,4vw,54px); }
.bv-section::after { content: ''; flex: 1; height: 1px; min-width: 20px; background: var(--bv-line); }
.bv-edition .bv-section :is(h1,h2) { font-size: clamp(29px,3.1vw,43px); line-height: 1.13; margin: 0; overflow-wrap: anywhere; }
.bv-description { max-width: 75ch; }
.bv-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px 28px; }
.bv-card { padding: 0 0 21px; border-bottom: 1px solid var(--bv-line); min-width: 0; }
.bv-photo { margin: 0 0 15px; }
.bv-photo img { height: auto; aspect-ratio: 16/10; }
.bv-edition .bv-card .bv-meta { margin-bottom: 6px; }
.bv-edition .bv-card h2 { font-size: clamp(23px,2.1vw,30px); line-height: 1.12; margin: 0 0 9px; }
.bv-card p { margin: 0; }
.bv-feed .navigation { display: block; margin: 32px 0 0; }
.bv-feed .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.bv-feed .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; color: var(--bv-ink); padding: 6px 11px; border: 1px solid var(--bv-line); text-decoration: none; font: 650 15px/1.3 var(--bv-sans); }
.bv-feed .page-numbers.current, .bv-feed a.page-numbers:hover { background: var(--bv-green); color: white; }
.bv-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 35px 0; }
.bv-footer .bv-brand { font-size: 40px; }
.bv-footer p { margin: 7px 0 0; color: #c6d6c9; font: 400 13px/1.5 var(--bv-sans); }
.bv-footer .bv-links { gap: 8px 18px; }
.bv-footer .bv-links a { color: #f7f5eb; font: 550 14px/1.5 var(--bv-sans); text-decoration: none; }
.bv-footer .bv-links a:hover { text-decoration: underline; }
.bv-edition .davenport-post-single h1.post-title, .bv-edition .page h1, .bv-edition .page-item-title h1 { color: var(--bv-ink); font: 700 clamp(32px,4.4vw,57px)/1.07 var(--bv-serif); letter-spacing: -.045em; }
.bv-edition .blog-post-single .entry-content, .bv-edition.page .entry-content { color: #25352e; font: 400 18px/1.73 var(--bv-sans); overflow-wrap: break-word; }
.bv-edition .blog-post-single .entry-content :is(h2,h3,h4), .bv-edition.page .entry-content :is(h2,h3,h4) { color: var(--bv-ink); font-family: var(--bv-serif); font-weight: 700; line-height: 1.17; letter-spacing: -.025em; }
.bv-edition .blog-post-single .entry-content h2 { font-size: clamp(26px,3vw,35px); }
.bv-edition .blog-post-single .entry-content h3 { font-size: clamp(22px,2.4vw,28px); }
.bv-edition .entry-content :is(p,li) a { color: var(--bv-rust); text-decoration: underline; text-underline-offset: .15em; }
.bv-edition .davenport-post .post-categories a { background: var(--bv-green); color: white; }
.bv-edition .blog-post-single .blog-post-thumb img { display: block; width: 100%; max-height: 510px; object-fit: cover; }
.bv-edition .sidebar .widget_recent_entries { border-top: 3px solid var(--bv-green); }
.bv-edition .sidebar .wp-block-latest-posts li { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 12px; align-items: center; border-bottom: 1px solid var(--bv-line); margin: 0; padding: 12px 0; }
.bv-edition .sidebar .wp-block-latest-posts__featured-image { margin: 0; }
.bv-edition .sidebar .wp-block-latest-posts__featured-image img { width: 68px; height: 62px; object-fit: cover; }
.bv-edition .sidebar .wp-block-latest-posts__post-title { font: 650 15px/1.35 var(--bv-sans); color: var(--bv-ink); text-decoration: none; }
@media (max-width: 900px) {
  .bv-shell { width: calc(100% - 44px); }
  .bv-nav .bv-links { gap: 0 16px; }
  .bv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 22px; }
  .bv-lead { grid-template-columns: 50% minmax(0,1fr); }
  .bv-lead-copy { padding: 25px; }
  .bv-lead h1 { overflow-wrap: break-word; }
}
@media (max-width: 700px) {
  .bv-shell { width: calc(100% - 32px); }
  .bv-mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0 13px; }
  .bv-mast .bv-brand { font-size: 44px; }
  .bv-mast .bv-search { grid-column: 1/-1; width: 100%; }
  .bv-edition button.bv-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid #719081; border-radius: 4px; background: transparent; color: #fffaf0; padding: 5px 10px; font: 600 14px/1.4 var(--bv-sans); }
  .bv-nav.bv-collapsible:not(.bv-open) { display: none; }
  .bv-nav .bv-links { gap: 0 14px; padding: 7px 0; }
  .bv-nav .bv-links a { padding: 8px 0; }
  .bv-feed { padding: 20px 0 34px; }
  .bv-lead { grid-template-columns: 1fr; }
  .bv-lead-photo { min-height: 0; aspect-ratio: 3/2; }
  .bv-lead-copy { padding: 19px 18px 22px; }
  .bv-edition .bv-lead h1 { font-size: clamp(31px,7vw,40px); margin-bottom: 10px; }
  .bv-lead p { font-size: 15px; margin-bottom: 13px; }
  .bv-edition .bv-meta { margin-bottom: 9px; }
  .bv-grid { grid-template-columns: 1fr; }
  .bv-footer-inner { display: grid; }
  .bv-edition .blog-post-single .entry-content, .bv-edition.page .entry-content { font-size: 17px; line-height: 1.67; }
  .bv-edition .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Let article titles wrap and use the entire thumbnail area in the sidebar. */
body.bv-edition .sidebar .widget_recent_entries .wp-block-latest-posts li a {
  display: block; padding: 0; background: transparent; color: var(--bv-ink);
  white-space: normal; overflow: visible; text-overflow: clip; border-radius: 0;
}
body.bv-edition .sidebar .widget_recent_entries .wp-block-latest-posts li a:hover { color: var(--bv-rust); text-decoration: underline; }
body.bv-edition .sidebar .widget_recent_entries .wp-block-latest-posts li img { display: block; width: 68px; height: 62px; }
.bv-widget-title { font: 700 25px/1.2 var(--bv-serif); color: var(--bv-ink); margin: 14px 0 8px; }
