/* Shared brand, buttons, header and footer come from /style.css. */
.blog-page [hidden] { display: none !important; }
.blog-page :focus-visible { outline: 3px solid #006fad; outline-offset: 5px; }
.blog-page .nav-links a[aria-current] { color: #006fad; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 50; padding: 14px 24px; border-radius: 12px; background: white; color: #006fad; }
.skip-link:focus { position: fixed; top: 12px; }
.blog-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.blog-hero { position: relative; padding: 34px 0 108px; color: white; background: linear-gradient(110deg, rgba(7, 22, 36, .96), rgba(7, 22, 36, .88)), url('../assets/images/tiv-hero-bg.jpg') center / cover; }
.blog-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 36px; background: white; clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; font-size: .87rem; color: #cbd5e1; }
.breadcrumbs li + li::before { content: '/'; padding-right: 10px; opacity: .6; }
.breadcrumbs a:hover { text-decoration: underline; }
.blog-hero-copy { max-width: 790px; margin: 48px auto 0; text-align: center; }
.blog-label { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.blog-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.blog-hero h1 { margin: 20px 0; font-size: clamp(2.4rem, 4.6vw, 4.3rem); line-height: 1.08; letter-spacing: -.035em; }
.blog-hero-copy > p { max-width: 610px; margin: 0 auto; color: #cbd5e1; line-height: 1.75; font-size: 1.05rem; }
.blog-library { padding-top: 60px; padding-bottom: 80px; scroll-margin-top: 110px; }
.library-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.library-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.025em; }
.library-heading p { margin: 0; color: #64748b; font-size: .9rem; }
.blog-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filter-button { min-height: 44px; padding: 10px 20px; border: 1px solid #dbe3ea; border-radius: 99px; color: #475569; background: white; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.filter-button:hover { border-color: #006fad; color: #006fad; }
.filter-button[aria-pressed="true"] { color: white; background: #006fad; border-color: #006fad; }
.blog-search { display: flex; align-items: center; gap: 10px; width: 300px; max-width: 100%; padding: 0 16px; border: 1px solid #dbe3ea; border-radius: 99px; color: #64748b; }
.blog-search:focus-within { border-color: #006fad; box-shadow: 0 0 0 3px #006fad20; }
.blog-search svg { flex-shrink: 0; width: 19px; height: 19px; }
.blog-search input { width: 100%; min-width: 0; min-height: 46px; border: 0; outline: none; background: transparent; font: inherit; color: #111827; }
.blog-search input:focus-visible { outline: none; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.article-grid { scroll-margin-top: 100px; }
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.blog-pagination .filter-button { min-width: 44px; padding-inline: 15px; }
.blog-pagination [aria-current="page"] { color: white; background: #006fad; border-color: #006fad; }
.blog-pagination button:disabled { opacity: .45; cursor: default; }
.article-card { overflow: hidden; border: 1px solid #e1e8ee; border-radius: 28px; background: white; transition: box-shadow .2s, border-color .2s; }
.article-card:hover { border-color: #9ac5df; box-shadow: 0 14px 34px #0716240c; }
.article-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; background: #f3faff; }
.article-cover { position: relative; display: flex; min-height: 270px; align-items: center; justify-content: center; overflow: hidden; background: #e5eff5; }
.article-cover > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.article-cover-mise > img { filter: grayscale(1); }
.article-cover-toys > img { object-position: 75% 55%; }
.article-cover-investment > img { object-position: center; }
.image-credit { color: #475569; font-size: .78rem; font-weight: 400; line-height: 1.6; }
.image-credit a { color: #006fad; text-decoration: underline; text-underline-offset: 3px; }
.image-credit-overlay { position: absolute; right: 12px; bottom: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .95); }
.post-cover .image-credit { margin-top: 10px; }
.post-cover.post-cover-investment img { object-position: center; }
.cover-badge { position: absolute; left: 24px; top: 24px; padding: 8px 14px; background: white; border-radius: 99px; font-size: .77rem; font-weight: 800; }
.article-cover-locativ { background: #eaf5fc; color: #006fad; }
.rental-art { width: 75%; max-width: 360px; padding: 24px; border: 1px solid #d4e7f3; background: #fff; border-radius: 18px; transform: rotate(-4deg); box-shadow: 12px 16px 0 #cce6f5; }
.rental-art strong { display: block; margin-bottom: 20px; color: #071624; font-size: 1.5rem; }
.rental-art-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.rental-art-grid span { aspect-ratio: 1; border-radius: 5px; background: #edf4f8; }
.rental-art-grid span:nth-child(5n), .rental-art-grid span:nth-child(6n) { background: #006fad; }
.article-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
.article-card-featured .article-card-body { padding: clamp(28px, 4vw, 48px); }
.article-category { display: inline-block; color: #006fad; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.article-card h3 { margin: 14px 0 12px; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.article-card h3 a:hover { color: #006fad; }
.article-card-body > p { margin: 0 0 22px; color: #64748b; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #64748b; font-size: .83rem; }
.article-card .article-meta { margin-top: auto; }
.read-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; margin-top: 16px; color: #006fad; font-weight: 800; }
.read-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty-results { padding: 56px 24px; border: 1px dashed #b5cddd; border-radius: 24px; text-align: center; }
.empty-results h3 { margin-top: 0; font-size: 1.5rem; }
.empty-results p { color: #64748b; }
.empty-results button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; margin-bottom: 88px; border-radius: 28px; background: #f3faff; }
.blog-cta h2 { margin: 10px 0 12px; max-width: 620px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
.blog-cta p { color: #64748b; margin: 0; line-height: 1.7; }
.blog-cta .primary-button { flex-shrink: 0; }
.post-hero .blog-hero-copy { max-width: 900px; text-align: left; margin-inline: 0; }
.post-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.7rem); }
.post-hero .blog-hero-copy > p { margin: 0; max-width: 750px; }
.post-hero .article-meta { color: #cbd5e1; margin-top: 28px; }
.post-cover { margin-top: 36px; margin-bottom: 0; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 55%; border-radius: 28px; }
.post-screenshot { margin: 36px 0; }
.post-screenshot > a { display: block; border: 1px solid #dbe3ea; border-radius: 16px; overflow: hidden; }
.post-screenshot img { display: block; width: 100%; height: auto; }
.post-screenshot figcaption { margin-top: 12px; color: #64748b; font-size: .88rem; line-height: 1.6; }
.post-screenshot figcaption a { display: inline-block; }
.post-layout { display: grid; grid-template-columns: minmax(0, 740px) 280px; justify-content: space-between; gap: 64px; padding-block: 64px 80px; }
.post-body { min-width: 0; font-size: 1.1rem; line-height: 1.85; color: #475569; }
.post-body > p:first-child { margin-top: 0; color: #111827; font-size: 1.2rem; }
.post-body h2 { color: #111827; margin-top: 44px; font-size: 1.8rem; line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 110px; }
.post-body h3 { color: #111827; line-height: 1.4; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: #006fad; text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: #111827; }
.post-table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid #dbe3ea; border-radius: 16px; }
.post-table-wrap { max-width: 100%; }
.post-sidebar li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.post-body caption { padding: 16px 20px; color: #475569; text-align: left; font-size: .88rem; background: #f8fbfd; }
.post-body th, .post-body td { padding: 14px 20px; border-bottom: 1px solid #e1e8ee; text-align: left; vertical-align: top; }
.post-body th { color: #071624; background: #f3faff; }
.post-body th:last-child, .post-body td:last-child { white-space: nowrap; text-align: right; }
.post-body tbody tr:last-child td { border-bottom: 0; background: #f8fbfd; }
.post-body hr { border: 0; border-top: 1px solid #dbe3ea; margin-block: 36px; }
.post-references { margin-top: 44px; padding-top: 8px; border-top: 1px solid #dbe3ea; }
.post-references li { overflow-wrap: anywhere; }
.post-sidebar-long > div { max-height: calc(100dvh - 136px); overflow-y: auto; scrollbar-width: thin; }
.post-note { padding: 24px 28px; margin: 30px 0; background: #f3faff; border-left: 3px solid #006fad; border-radius: 0 16px 16px 0; }
.post-note p { margin: 0; }
.post-sidebar > div { position: sticky; top: 110px; padding: 26px; background: #f3faff; border-radius: 24px; }
.post-sidebar h2 { margin: 0 0 20px; font-size: 1rem; }
.post-sidebar ol { margin: 0; padding-left: 20px; color: #475569; }
.post-sidebar li { padding-left: 4px; margin-bottom: 16px; font-size: .92rem; line-height: 1.5; }
.post-sidebar a:hover { color: #006fad; text-decoration: underline; }
.post-sidebar .read-link { border-top: 1px solid #dbe3ea; padding-top: 20px; font-size: .9rem; }
.post-related { padding-top: 32px; border-top: 1px solid #dbe3ea; margin-top: 44px; }
.post-related h2 { margin-top: 0; }
@media (max-width: 980px) {
  .blog-controls { flex-direction: column; align-items: flex-start; }
  .blog-search { width: 100%; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-sidebar { grid-row: 1; }
  .post-sidebar > div { position: static; }
  .post-sidebar-long > div { max-height: none; overflow: visible; }
  .post-sidebar ol { display: flex; flex-wrap: wrap; gap: 10px 32px; }
  .post-sidebar li { margin: 0; }
}
@media (max-width: 760px) {
  .blog-container { width: calc(100% - 40px); }
  .blog-hero { padding: 24px 0 72px; }
  .blog-hero-copy { margin-top: 36px; }
  .blog-hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.8rem); }
  .blog-library { padding-top: 36px; padding-bottom: 48px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .article-grid, .article-card-featured { grid-template-columns: 1fr; }
  .article-card-body, .article-card-featured .article-card-body { padding: 26px; }
  .article-cover { min-height: 240px; }
  .article-card-featured .article-cover { min-height: 260px; }
  .filter-button { padding-inline: 15px; }
  .blog-cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; margin-bottom: 48px; }
  .post-layout { padding-top: 36px; padding-bottom: 48px; }
  .post-cover img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .post-body { font-size: 1.05rem; }
  .post-body ul, .post-body ol { padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-page *, .blog-page *::before, .blog-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
