/* WordPressi-spetsiifiline: uudisekaardid pildiga, sisulehed, vormid. */

.news-card .news-thumb{display:block; overflow:hidden; border-radius:14px; margin:0 0 18px}
.news-card .news-thumb img{width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.news-card:hover .news-thumb img{transform:scale(1.04)}
.news-card h3 a{text-decoration:none}
.news-card h3 a:hover{text-decoration:underline; text-underline-offset:3px}
.news-more{display:inline-flex; align-items:center; gap:8px; margin-top:auto; font-family:var(--display);
  font-weight:700; font-size:14px; letter-spacing:.06em; color:var(--blue)}
.news-more::after{content:"→"; transition:transform .3s ease}
.news-card:hover .news-more::after{transform:translateX(4px)}
.news-all{margin-top:36px}

/* --- sisulehed --- */
/* Paisuriba ulatub kleepuva headeri alla, nagu esilehe hero: nii jaab valge logo
   ja menuu tumedale taustale ning peal pole valget riba. */
.page-main{padding-top:0}
.page-hero{position:relative; background:var(--grad-navy); color:#fff; overflow:hidden;
  padding:calc(var(--hdr) + clamp(44px,5vw,72px)) 0 clamp(48px,6vw,80px); margin-top:calc(var(--hdr) * -1)}
.page-hero h1{color:#fff; font-size:clamp(34px,5.2vw,62px); max-width:18ch}
.page-hero .lead{color:rgba(255,255,255,.82); margin-top:18px}
.page-hero .lead.on-dark{color:rgba(255,255,255,.82)}
.page-body{padding:clamp(44px,6vw,80px) var(--gut) clamp(64px,8vw,110px)}
.page-body .news-grid{margin-top:0}

.entry{max-width:820px; margin-inline:auto}
.entry-media{margin:0 0 32px}
.entry-media img{width:100%; height:auto; border-radius:var(--r)}
.entry-content{font-size:clamp(16px,1.15vw,18px); line-height:1.75}
.entry-content h2{font-size:clamp(26px,2.6vw,36px); margin:44px 0 16px}
.entry-content h3{font-size:clamp(21px,2vw,26px); margin:34px 0 12px}
.entry-content p{margin:0 0 1.15em}
.entry-content a{color:var(--blue); text-decoration:underline; text-underline-offset:3px}
.entry-content a:hover{color:var(--navy)}
.entry-content ul,.entry-content ol{margin:0 0 1.3em; padding-left:1.3em}
.entry-content li{margin:.35em 0}
.entry-content img,.entry-content iframe,.entry-content video{max-width:100%; height:auto; border-radius:14px}
.entry-content figure{margin:32px 0}
.entry-content figcaption{font-size:14px; color:var(--dim); margin-top:10px}
.entry-content blockquote{margin:32px 0; padding:4px 0 4px 24px; border-left:4px solid var(--yellow);
  font-family:var(--display); font-size:clamp(19px,2vw,24px); font-weight:600; color:var(--ink)}
.entry-content table{width:100%; border-collapse:collapse; margin:0 0 1.5em}
.entry-content th,.entry-content td{border:1px solid var(--line); padding:10px 14px; text-align:left}
.entry-content th{background:var(--ice); font-family:var(--display); font-weight:700}
.entry-content .wp-caption,.entry-content .alignwide{max-width:100%}
.alignleft{float:left; margin:0 28px 20px 0}
.alignright{float:right; margin:0 0 20px 28px}
.aligncenter{margin-inline:auto}
.screen-reader-text{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap}

.entry-nav{display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  max-width:820px; margin:56px auto 0; padding-top:28px; border-top:1px solid var(--line)}
.entry-nav a{font-family:var(--display); font-weight:700; color:var(--blue); text-decoration:none}
.entry-nav a:hover{text-decoration:underline; text-underline-offset:3px}

.pagination{display:flex; justify-content:center; gap:10px; margin-top:56px}
.pagination .page-numbers{display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; height:44px; padding:0 14px; border-radius:999px; border:1px solid var(--line);
  font-family:var(--display); font-weight:700; text-decoration:none; color:var(--ink)}
.pagination .page-numbers.current{background:var(--navy); border-color:var(--navy); color:#fff}
.pagination .page-numbers:hover{border-color:var(--blue); color:var(--blue)}
.pagination .page-numbers.current:hover{color:#fff}

.avs-search{display:flex; gap:12px; flex-wrap:wrap; max-width:560px; margin:0 0 40px}
.avs-search input[type=search]{flex:1 1 220px; min-width:0; padding:14px 18px; border-radius:12px;
  border:1px solid var(--line); font:inherit; background:#fff}
.avs-search input[type=search]:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(23,82,179,.15)}

.formmsg{margin:0 0 18px; padding:12px 16px; border-radius:12px; font-size:15px}
.formmsg.ok{background:rgba(46,173,101,.12); color:#1c7a45; border:1px solid rgba(46,173,101,.3)}
.formmsg.err{background:rgba(242,140,40,.12); color:#a35a10; border:1px solid rgba(242,140,40,.3)}

.comments{max-width:820px; margin:64px auto 0; padding-top:32px; border-top:1px solid var(--line)}
.comments-title{font-size:clamp(22px,2.2vw,28px); margin-bottom:24px}
.comment-list{list-style:none; margin:0 0 40px; padding:0}
.comment-list ol{list-style:none; padding-left:28px}
.comment-body{padding:20px 0; border-bottom:1px solid var(--line)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{
  width:100%; padding:14px 18px; border-radius:12px; border:1px solid var(--line); font:inherit; background:#fff}
.comment-form .submit{margin-top:8px}

/* Tahvlil mahub uudiseid kaks korvuti (pohikujundus laheb 860px all uhele veerule). */
@media (min-width:641px) and (max-width:860px){
  .news-grid{grid-template-columns:repeat(2,1fr)}
}

/* admin bar ei tohi sticky headerit katta */
body.admin-bar .site.hdr,body.admin-bar header.site{top:32px}
@media (max-width:782px){ body.admin-bar .site.hdr,body.admin-bar header.site{top:46px} }
@media (max-width:600px){ .alignleft,.alignright{float:none; margin:0 0 20px} }
