/* Artia13 News Engine 1.7.11 - unified editorial chrome for articles, categories, pages, authors and 404 */
:root{--a13p-ink:#111827;--a13p-muted:#526071;--a13p-border:#dfe4ea;--a13p-soft:#f8fafc;--a13p-accent:#b91c1c;--a13p-accent2:#0f766e;--a13p-max:1240px}
html,body{margin:0;padding:0}
body.a13-ne-custom-single,body.a13-ne-custom-archive,body.a13-ne-custom-page,body.a13-ne-custom-latest,body.a13-ne-custom-404,body.a13-ne-custom-author{background:#fff;color:var(--a13p-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;line-height:1.65}
.a13-ne-site-page{min-height:100vh;background:linear-gradient(180deg,#fff 0,#fff 90%,#f8fafc 100%);color:var(--a13p-ink)}
.a13-ne-site-page *{box-sizing:border-box}
.a13-news-header-main{position:relative;min-height:74px}
.a13-news-logo-frame{width:118px!important;height:44px!important;min-width:118px!important;max-width:118px!important;min-height:44px!important;max-height:44px!important;display:block!important;overflow:hidden!important;flex:0 0 118px!important}
.a13-news-logo-frame img,.a13-news-logo-frame img.a13-news-logo{display:block!important;width:118px!important;height:44px!important;min-width:118px!important;max-width:118px!important;min-height:44px!important;max-height:44px!important;object-fit:contain!important;object-position:left center!important}
.a13-ne-search-wrap{position:relative;display:block;z-index:1000}
.a13-ne-search-wrap>summary{list-style:none}
.a13-ne-search-wrap>summary::-webkit-details-marker{display:none}
.a13-ne-search-toggle{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #dfe4ea!important;border-radius:50%!important;background:#fff!important;color:#111827!important;font-size:25px!important;line-height:1!important;cursor:pointer!important;user-select:none!important}
.a13-ne-search-toggle:hover,.a13-ne-search-wrap[open]>.a13-ne-search-toggle{background:#b91c1c!important;color:#fff!important;border-color:#b91c1c!important}
.a13-ne-search-panel{position:fixed!important;top:74px!important;right:16px!important;left:auto!important;width:min(640px,calc(100vw - 32px))!important;max-width:calc(100vw - 24px)!important;z-index:2147483646!important;margin:0!important;padding:12px!important;border:1px solid #d7dde6!important;border-radius:14px!important;background:#fff!important;box-shadow:0 18px 50px rgba(15,23,42,.22)!important;pointer-events:auto!important}
.a13-ne-search-form{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important}
.a13-ne-search-input{display:block!important;flex:1 1 auto!important;width:1px!important;min-width:0!important;height:50px!important;min-height:50px!important;padding:0 14px!important;border:1px solid #c8d0db!important;border-radius:10px!important;background:#fff!important;color:#111827!important;caret-color:#111827!important;font:500 17px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;pointer-events:auto!important;user-select:text!important;appearance:textfield!important}
.a13-ne-search-input:focus{outline:0!important;border-color:#b91c1c!important;box-shadow:0 0 0 3px rgba(185,28,28,.12)!important}
.a13-ne-search-submit{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 122px!important;width:122px!important;min-width:122px!important;height:50px!important;border:0!important;border-radius:10px!important;background:#b91c1c!important;color:#fff!important;font:800 16px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer!important}
.a13-ne-search-submit:hover{background:#991b1b!important}
.a13-ne-page-container{width:min(var(--a13p-max),calc(100% - 32px));margin:0 auto}
.a13-ne-breadcrumbs{display:flex;flex-wrap:wrap;gap:6px 10px;padding:24px 0 0;color:#64748b;font-size:.9rem;font-weight:700}
.a13-ne-breadcrumbs a{color:#475569;text-decoration:none}
.a13-ne-breadcrumbs a:hover{text-decoration:underline}
.a13-ne-article{padding:20px 0 64px}
.a13-ne-article-header{max-width:980px;padding:14px 0 24px}
.a13-ne-category-label{display:inline-block;margin-bottom:9px;color:var(--a13p-accent2);font-size:.8rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.a13-ne-article-title{margin:0;color:#111827;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.35rem,5vw,4.7rem);line-height:1.05;letter-spacing:-.035em}
.a13-ne-article-deck{max-width:900px;margin:18px 0 0;color:#475569;font-size:1.22rem;line-height:1.55}
.a13-ne-hero{margin:0 0 26px;max-width:1100px}
.a13-ne-hero img{display:block;width:100%;max-height:620px;object-fit:cover;border-radius:10px;background:#edf1f5}
.a13-ne-hero figcaption{margin-top:7px;color:#64748b;font-size:.88rem}
.a13-ne-article-grid{display:grid;grid-template-columns:minmax(0,860px) minmax(220px,280px);gap:36px;align-items:start}
.a13-ne-article-content{max-width:860px;color:#1f2937;font-size:1.12rem;line-height:1.8}
.a13-ne-article-content p{margin:0 0 1.15em}
.a13-ne-article-content h2{margin:1.8em 0 .55em;font-size:1.85rem;line-height:1.2;letter-spacing:-.02em}
.a13-ne-article-content h3{margin:1.55em 0 .5em;font-size:1.4rem;line-height:1.25}
.a13-ne-article-content a{color:#991b1b;text-underline-offset:3px}
.a13-ne-article-content img{max-width:100%;height:auto;border-radius:8px}
.a13-ne-article-sidebar{position:sticky;top:24px;display:grid;gap:16px}
.a13-ne-side-box{padding:18px;border:1px solid var(--a13p-border);border-radius:12px;background:#f8fafc}
.a13-ne-side-box h2{margin:0 0 9px;font-size:1.05rem}
.a13-ne-side-box p{margin:0;color:#526071;font-size:.95rem;line-height:1.55}
.a13-ne-related{padding:40px 0 10px;margin-top:30px;border-top:2px solid #111827}
.a13-ne-related-head{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:16px}
.a13-ne-related-head h2{margin:0;font-size:2rem;letter-spacing:-.03em}
.a13-ne-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.a13-ne-archive{padding:20px 0 64px}
.a13-ne-archive-head{padding:18px 0 26px;display:flex;justify-content:space-between;gap:20px;align-items:end;border-bottom:2px solid #111827}
.a13-ne-archive-head h1{margin:.2rem 0 .5rem;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.06;letter-spacing:-.035em}
.a13-ne-archive-head p{margin:0;max-width:800px;color:#526071;font-size:1.06rem}
.a13-ne-count{white-space:nowrap;color:#64748b;font-weight:800}
.a13-ne-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px;padding-top:24px}
.a13-ne-page{padding:20px 0 64px}
.a13-ne-page-header{max-width:980px;padding:18px 0 24px;border-bottom:2px solid #111827}
.a13-ne-page-header h1{margin:.25rem 0 0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.2rem,4vw,3.7rem);line-height:1.08;letter-spacing:-.035em}
.a13-ne-page-updated{margin-top:10px;color:#64748b;font-size:.95rem}
.a13-ne-page-content{max-width:900px;padding-top:24px;font-size:1.1rem;line-height:1.8;color:#1f2937}
.a13-ne-page-content h2{margin:1.8em 0 .5em;font-size:1.85rem;line-height:1.2}
.a13-ne-page-content h3{margin:1.55em 0 .5em;font-size:1.4rem}
.a13-ne-page-content img{max-width:100%;height:auto;border-radius:8px}
.a13-ne-page-content a{color:#991b1b;text-underline-offset:3px}
.a13-ne-404{padding:52px 0 80px}
.a13-ne-404-card{max-width:860px;margin:0 auto;padding:36px 30px;border:1px solid var(--a13p-border);border-radius:16px;background:#f8fafc;text-align:center}
.a13-ne-404-card .a13-kicker{margin-bottom:7px}
.a13-ne-404-card h1{margin:.2rem 0 .65rem;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1}
.a13-ne-404-card p{margin:0 auto 20px;max-width:650px;color:#526071;font-size:1.1rem}
.a13-ne-404-search{display:flex;gap:10px;max-width:680px;margin:0 auto 26px}
.a13-ne-404-search input{flex:1;min-width:0;height:50px;padding:0 15px;border:1px solid #c8d0db;border-radius:10px;background:#fff;font-size:17px}
.a13-ne-404-search button{height:50px;padding:0 18px;border:0;border-radius:10px;background:#b91c1c;color:#fff;font-weight:800;cursor:pointer}
.a13-ne-404-latest{margin-top:32px;text-align:left;border-top:2px solid #111827}
.a13-ne-404-latest h2{margin:20px 0 0;font-size:1.8rem}
.a13-ne-author-shell{padding:20px 0 64px}
.a13-ne-author-results{padding-top:12px}
.a13-ne-author-results .a13-news-latest-list{border-bottom:1px solid var(--a13p-border)}

/* Search control must work on every Artia13 custom template, not only the homepage. */
body.a13-ne-custom-single .a13-ne-search-panel,body.a13-ne-custom-archive .a13-ne-search-panel,body.a13-ne-custom-page .a13-ne-search-panel,body.a13-ne-custom-latest .a13-ne-search-panel,body.a13-ne-custom-404 .a13-ne-search-panel,body.a13-ne-custom-author .a13-ne-search-panel{display:block!important}

@media(max-width:1000px){
  .a13-ne-article-grid{grid-template-columns:1fr}
  .a13-ne-article-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .a13-ne-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .a13-ne-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .a13-news-header-main{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:60px!important;padding:10px 0!important}
  .a13-news-logo-frame{width:104px!important;height:38px!important;min-width:104px!important;max-width:104px!important;min-height:38px!important;max-height:38px!important;flex-basis:104px!important}
  .a13-news-logo-frame img,.a13-news-logo-frame img.a13-news-logo{width:104px!important;height:38px!important;min-width:104px!important;max-width:104px!important;min-height:38px!important;max-height:38px!important}
  .a13-ne-search-panel{top:64px!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important}
  .a13-ne-search-form{flex-direction:column!important;align-items:stretch!important}
  .a13-ne-search-input,.a13-ne-search-submit{width:100%!important;min-width:0!important;flex-basis:auto!important}
  .a13-ne-page-container{width:min(var(--a13p-max),calc(100% - 20px))}
  .a13-ne-breadcrumbs{padding-top:18px;font-size:.84rem}
  .a13-ne-article-title{font-size:clamp(2rem,10vw,2.8rem)}
  .a13-ne-article-deck{font-size:1.05rem}
  .a13-ne-article-content{font-size:1.03rem;line-height:1.75}
  .a13-ne-article-sidebar{grid-template-columns:1fr}
  .a13-ne-related-grid{grid-template-columns:1fr}
  .a13-ne-archive-head{display:block}
  .a13-ne-count{display:block;margin-top:10px}
  .a13-ne-archive-grid{grid-template-columns:1fr;gap:18px}
  .a13-ne-page-content{font-size:1.03rem;line-height:1.75}
  .a13-ne-404-card{padding:28px 18px}
  .a13-ne-404-search{flex-direction:column}
  .a13-ne-404-search input,.a13-ne-404-search button{width:100%}
}
