/*
Theme Name: Plioty Editorial
Description: Reference-inspired editorial styling for Plioty, preserving GeneratePress functionality.
Template: generatepress
Version: 1.0.0
Text Domain: plioty-editorial
*/

body { background:#fff; color:#404040; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:17px; line-height:1.75; }
body .grid-container { max-width:1200px; }
body a { color:#005437; }
body a:hover { color:#003b27; }
body a:focus-visible, body button:focus-visible, body input:focus-visible, body textarea:focus-visible { outline:3px solid #b78b32; outline-offset:4px; }
body #site-navigation, body #sticky-navigation { background:#005437; color:#fff; box-shadow:0 2px 4px #0000000a; }
body #site-navigation .inside-navigation { position:relative; min-height:64px; padding:0 24px; }
body #site-navigation .navigation-branding { margin:0; position:absolute; left:50%; transform:translateX(-50%); }
body #site-navigation .navigation-branding .main-title { font-family:Arial,Helvetica,sans-serif; font-size:27px; font-weight:700; letter-spacing:.12em; line-height:1; text-transform:uppercase; }
body #site-navigation .navigation-branding a, body #site-navigation .main-nav ul li a, body #site-navigation .menu-toggle, body #site-navigation .menu-bar-items a { color:#fff; }
body #site-navigation .main-nav { margin-left:0; margin-right:auto; }
body #site-navigation .main-nav ul li a { padding:0 16px; font-family:Arial,Helvetica,sans-serif; font-size:13px; font-weight:500; letter-spacing:.05em; line-height:64px; }
body #site-navigation .main-nav ul li:hover>a, body #site-navigation .main-nav ul li:focus-within>a, body #site-navigation .main-nav ul li[class*="current-menu-"]>a { background:#ffffff14; color:#fff; text-decoration:underline; text-underline-offset:5px; }
body #site-navigation .menu-bar-items { margin-left:auto; }
body #site-navigation .menu-bar-items a { min-width:48px; line-height:64px; text-align:center; }
body #site-navigation .menu-toggle { min-height:64px; padding:0 12px; margin:0; background:transparent; }
body #site-navigation .main-nav ul ul { background:#005437; }
body .site-content { padding:46px 24px 64px; gap:44px; }
body .content-area { min-width:0; flex:1; }
body .site-main { margin:0; }
body.separate-containers .inside-article, body.separate-containers .page-header, body.separate-containers .comments-area, body.separate-containers .paging-navigation { background:#fff; padding:0; }
body .site-main article { margin-bottom:52px; }
body.blog .site-main article, body.archive .site-main article, body.search .site-main article { padding-bottom:44px; border-bottom:1px solid #e5e8e5; }
body .entry-title, body .page-title { font-family:"Playfair Display",Georgia,"Times New Roman",serif; color:#222; font-weight:700; font-size:clamp(30px,3.25vw,43px); line-height:1.23; text-wrap:balance; }
body .entry-title a { color:#222; }
body .entry-title a:hover { color:#005437; text-decoration:underline; text-underline-offset:5px; }
body .entry-header { text-align:center; }
body .entry-header::after { content:""; display:block; width:96px; height:1px; background:#333; margin:25px auto; }
body .entry-meta { margin-top:18px; font-size:12px; letter-spacing:.03em; line-height:1.65; text-transform:uppercase; color:#616761; }
body .entry-meta a { color:#505850; }
body .entry-summary, body .entry-content { margin-top:25px; }
body .entry-content h2, body .entry-content h3, body .entry-content h4, body .comments-title, body .comment-reply-title { font-family:Georgia,"Times New Roman",serif; color:#222; font-weight:700; line-height:1.3; }
body .entry-content h2 { margin-top:1.5em; font-size:30px; }
body .entry-content h3 { margin-top:1.35em; font-size:25px; }
body .entry-content a { text-decoration:underline; text-underline-offset:3px; }
body .entry-content, body .entry-summary, body .widget { overflow-wrap:anywhere; }
body .entry-content img, body .post-image img { height:auto; max-width:100%; }
body .post-image { float:none; margin:0 0 28px; }
body .entry-content table { display:block; max-width:100%; overflow-x:auto; }
body .entry-content pre { max-width:100%; overflow-x:auto; }
body .read-more, body a.button, body button:not(.menu-toggle):not(.gp-modal__close), body input[type="submit"] { background:#005437; color:#fff; border-radius:0; }
body .read-more { display:inline-block; padding:10px 22px; font-size:13px; letter-spacing:.06em; text-transform:uppercase; text-decoration:none; }
body .read-more:hover, body a.button:hover, body input[type="submit"]:hover { background:#003b27; color:#fff; }
body #right-sidebar { width:270px; flex:0 0 270px; }
body #right-sidebar .inside-right-sidebar { margin:0; }
body #right-sidebar .widget { background:#fff; padding:0 0 28px; margin-bottom:28px; border-bottom:1px solid #e5e8e5; font-size:15px; line-height:1.65; }
body .widget-title, body .wp-block-search__label { font-family:Georgia,"Times New Roman",serif; font-size:22px; font-weight:700; color:#222; }
body .wp-block-search__inside-wrapper { display:flex; gap:8px; max-width:100%; }
body .wp-block-search__input { min-width:0; width:0; flex:1; border:1px solid #d2d8d3; background:#fff; padding:10px; }
body .wp-block-search__button { flex-shrink:0; white-space:nowrap; margin-left:0; padding:10px 14px; font-size:14px; }
body #right-sidebar .wp-block-latest-posts li { margin-bottom:18px; }
body input:not([type="checkbox"]):not([type="radio"]), body textarea, body select { max-width:100%; box-sizing:border-box; }
body .site-footer { background:#fff; border-top:1px solid #dfe5df; }
body .site-info { background:#fff; color:#555; padding:40px 24px 30px; font-size:14px; }
body .inside-site-info { display:flex; flex-direction:column; align-items:center; gap:24px; }
body .site-footer .footer-bar { order:0; margin:0; width:100%; }
body .site-footer .footer-bar .widget { padding:0; margin:0; }
body .site-footer .footer-bar .widget-title { display:none; }
body .site-footer .footer-bar ul { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 28px; margin:0; padding:0; list-style:none; }
body .site-footer .footer-bar li { float:none; margin:0; }
body .site-footer a { color:#333; text-decoration:none; }
body .site-footer a:hover { color:#005437; text-decoration:underline; }
body .site-footer .copyright-bar { order:1; text-align:center; margin:0; }
body .generate-back-to-top { background:#005437; color:#fff; }
@media (max-width:1024px) {
  body .site-content { gap:28px; padding:32px 24px 48px; }
  body #right-sidebar { width:230px; flex-basis:230px; }
  body .entry-title, body .page-title { font-size:34px; }
}
@media (max-width:768px) {
  body #site-navigation .inside-navigation { padding:0 12px; min-height:58px; }
  body #site-navigation .navigation-branding .main-title { font-size:24px; }
  body #site-navigation .menu-toggle { display:block; order:0; flex:0 0 auto; margin:0; min-height:58px; }
  body #site-navigation .menu-toggle .mobile-menu { font-size:12px; margin-left:8px; }
  body #site-navigation .menu-bar-items a { line-height:58px; }
  body #site-navigation .menu-bar-items { order:3; margin-left:auto; flex:0 0 auto; }
  body #site-navigation .main-nav { width:100%; flex-basis:100%; order:5; margin:0; }
  body #site-navigation .main-nav ul li a { line-height:48px; padding:0 18px; }
  body #site-navigation.toggled .navigation-branding { top:17px; }
  body .site-content { display:flex; flex-direction:column; padding:30px 20px 40px; gap:36px; }
  body .content-area, body #right-sidebar { width:100%; flex:auto; }
  body .entry-title, body .page-title { font-size:32px; }
  body .entry-content h2 { font-size:27px; }
  body .entry-content h3 { font-size:23px; }
  body .site-main article { margin-bottom:34px; }
  body .site-footer .footer-bar ul { gap:12px 22px; }
}
@media (max-width:400px) {
  body .site-content { padding-left:16px; padding-right:16px; }
  body .entry-title, body .page-title { font-size:28px; }
  body .site-footer .footer-bar ul { flex-direction:column; align-items:center; gap:12px; }
}

/* Header: brand left, navigation centered, search right. */
body #site-navigation .inside-navigation { display:grid; grid-template-columns:minmax(150px,1fr) auto minmax(220px,1fr); align-items:center; column-gap:24px; min-height:80px; }
body #site-navigation .navigation-branding { position:static; transform:none; grid-column:1; grid-row:1; justify-self:start; }
body #site-navigation .main-nav { grid-column:2; grid-row:1; margin:0; justify-self:center; }
body #site-navigation .main-nav ul { justify-content:center; }
body #site-navigation .main-nav ul li a { line-height:80px; font-size:14px; }
body #site-navigation .menu-bar-items { display:none; }
body .plioty-header-search { grid-column:3; grid-row:1; justify-self:end; display:flex; width:240px; max-width:100%; border:1px solid #ffffff4d; background:#ffffff12; border-radius:5px; overflow:hidden; }
body .plioty-header-search input { width:0; flex:1; min-width:0; padding:10px 12px; border:0; background:transparent; color:#fff; font:14px Arial,sans-serif; height:42px; }
body .plioty-header-search input::placeholder { color:#ffffffd9; opacity:1; }
body .plioty-header-search button { display:grid; place-items:center; width:44px; min-height:42px; padding:0; flex-shrink:0; border:0; }
body .plioty-header-search:focus-within { outline:2px solid #e6c477; outline-offset:3px; }
body .plioty-header-search input:focus-visible { outline:0; }
body .plioty-article-topic { margin:0 0 16px; font:600 11px/1.5 Arial,sans-serif; text-transform:uppercase; letter-spacing:.12em; }
body .plioty-article-topic a { display:inline-block; background:#edf4ef; color:#005437; padding:6px 12px; border-radius:3px; text-decoration:none; }
body .site-content { gap:48px; }
body #right-sidebar { width:320px; flex-basis:320px; }
body #right-sidebar .inside-right-sidebar { border-left:1px solid #e4e9e5; padding-left:28px; }
body #right-sidebar .widget { padding-bottom:30px; }
body .plioty-sidebar-articles h2 { border-top:3px solid #005437; padding-top:14px; margin-bottom:24px; font:700 27px/1.25 Georgia,serif; }
body #right-sidebar .wp-block-post-template { margin:0; padding:0; list-style:none; }
body #right-sidebar .wp-block-post-template > li { margin:0 0 22px; padding:0 0 22px; border-bottom:1px solid #dfe6e0; }
body #right-sidebar .wp-block-post-title { font:700 21px/1.3 Georgia,serif; margin:8px 0 10px; text-wrap:pretty; }
body #right-sidebar .wp-block-post-title a { color:#222; text-decoration:none; }
body #right-sidebar .wp-block-post-title a:hover { color:#005437; text-decoration:underline; }
body #right-sidebar .wp-block-post-excerpt { font-size:14px; line-height:1.65; color:#5d665f; }
body #right-sidebar .wp-block-post-excerpt p { margin:0 0 10px; }
body #right-sidebar .wp-block-post-excerpt__more-link { font-size:12px; font-weight:600; text-decoration:none; }
body #right-sidebar .wp-block-post-date { color:#737b74; font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
body #right-sidebar .plioty-card-topics { font-size:10px; font-weight:600; line-height:1.5; text-transform:uppercase; letter-spacing:.06em; }
body #right-sidebar .plioty-card-topics a { text-decoration:none; }
body #right-sidebar .wp-block-post-featured-image { margin:0 0 12px; }
body #right-sidebar .wp-block-post-featured-image img { width:100%; object-fit:cover; border-radius:4px; }
body #right-sidebar .wp-block-categories-list { list-style:none; margin:0; padding:0; }
body #right-sidebar .wp-block-categories-list li { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #e5eae6; }
body #right-sidebar .wp-block-categories-list a { text-decoration:none; }
body.single .entry-content { font-size:18px; line-height:1.85; }
body.single .entry-content p { margin-bottom:1.5em; }
body.blog .entry-summary, body.archive .entry-summary { font-size:17px; line-height:1.8; }
@media (min-width:769px) and (max-width:1024px) {
 body #site-navigation .inside-navigation { column-gap:12px; grid-template-columns:minmax(125px,1fr) auto minmax(160px,1fr); padding-inline:20px; }
 body #site-navigation .navigation-branding .main-title { font-size:23px; }
 body #site-navigation .main-nav ul li a { padding-inline:11px; font-size:13px; }
 body .plioty-header-search { width:200px; }
 body .site-content { gap:28px; }
 body #right-sidebar { width:270px; flex-basis:270px; }
 body #right-sidebar .inside-right-sidebar { padding-left:20px; }
}
@media (max-width:768px) {
 body #site-navigation .inside-navigation { grid-template-columns:1fr auto; column-gap:16px; padding:0 20px 14px; min-height:64px; }
 body #site-navigation .navigation-branding { grid-column:1; grid-row:1; position:static; transform:none; }
 body #site-navigation .menu-toggle { grid-column:2; grid-row:1; justify-self:end; min-height:60px; }
 body #site-navigation .plioty-header-search { grid-column:1/-1; grid-row:2; justify-self:stretch; width:100%; }
 body #site-navigation .main-nav { grid-column:1/-1; grid-row:3; width:100%; justify-self:stretch; }
 body #site-navigation .main-nav ul li a { line-height:48px; }
 body #site-navigation.toggled .main-nav { margin-top:12px; }
 body #right-sidebar { width:100%; flex-basis:auto; }
 body #right-sidebar .inside-right-sidebar { border-left:0; padding-left:0; }
 body .site-content { gap:36px; }
 body.single .entry-content { font-size:17px; }
}
body .entry-meta .author, body .entry-meta .author a { text-transform:none; }

/* Readable editorial elements and stable system-font headings. */
body .entry-title, body .page-title { font-family:Georgia,"Times New Roman",serif; }
body .plioty-toc { background:#f3f7f4; border-left:3px solid #005437; padding:20px 24px; margin:28px 0; font-size:15px; }
body .plioty-toc ul { margin:10px 0 0 20px; }
body .plioty-toc li { margin-bottom:7px; }
body .entry-content .wp-block-table { margin:28px 0; }
body .entry-content table { border-collapse:collapse; font-size:15px; line-height:1.6; }
body .entry-content caption { text-align:left; font-weight:600; padding-bottom:12px; }
body .entry-content th { text-align:left; background:#eef4ef; color:#173b29; }
body .entry-content th, body .entry-content td { padding:12px 14px; border:1px solid #dce5dd; vertical-align:top; min-width:120px; }
body .post-image img { display:block; width:100%; height:auto; border-radius:4px; }
body .entry-content h2 { scroll-margin-top:24px; }
@media (max-width:768px) { body .plioty-toc { padding:16px 18px; } }
body #right-sidebar .wp-block-post-date { color:#58645b; }
body .wp-element-caption { color:#58645b; font-size:12px; line-height:1.6; text-align:left; }

/* Navigation and reading improvements across smaller screens. */
body .plioty-welcome { margin:0 0 36px; padding:24px; background:#f3f7f4; border-top:3px solid #005437; }
body .plioty-welcome h2 { font:700 clamp(25px,3vw,34px)/1.25 Georgia,serif; margin:0 0 12px; color:#222; }
body .plioty-welcome p { margin:0 0 16px; }
body .plioty-topic-links, body .plioty-policy-links { display:flex; flex-wrap:wrap; gap:8px 14px; }
body .plioty-topic-links a, body .plioty-policy-links a { display:inline-flex; align-items:center; min-height:44px; padding:6px 12px; border:1px solid #cad8cd; border-radius:4px; font-size:14px; line-height:1.5; }
body .plioty-policy-links { margin-top:30px; padding-top:20px; border-top:1px solid #dce5dd; }
body .plioty-related { margin-top:32px; padding:22px; background:#f3f7f4; }
body .plioty-related h2 { margin-top:0; font-size:25px; }
body .plioty-related ul { margin:0 0 18px 20px; }
body .plioty-related li { margin-bottom:12px; }
body .entry-content :is(h2,h3,h4) { overflow-wrap:anywhere; }
body .site-footer .footer-bar a { display:inline-flex; align-items:center; min-height:44px; padding:4px 2px; }
body .plioty-toc a { display:inline-block; padding-block:5px; }
@media (max-width:900px) {
 body .site-content { flex-direction:column; }
 body.right-sidebar .content-area, body .content-area, body #right-sidebar { width:100%; flex:auto; }
 body.right-sidebar .site-main { margin:0; }
 body #right-sidebar .inside-right-sidebar { border-left:0; padding-left:0; }
 body #right-sidebar .wp-block-post-template { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
}
@media (max-width:768px) {
 body .plioty-header-search input { font-size:16px; min-height:44px; }
 body .plioty-header-search button { min-height:44px; }
 body input:not([type="checkbox"]):not([type="radio"]), body textarea, body select { font-size:16px; }
 body .plioty-welcome { padding:20px; }
 body .entry-content figure { max-width:100%; margin-inline:0; }
 body .entry-content .wp-block-table { overflow-x:auto; }
}
@media (max-width:540px) {
 body #right-sidebar .wp-block-post-template { display:block; }
 body .plioty-related { padding:18px; }
 body .plioty-toc { padding-inline:14px; }
 body .site-footer .footer-bar ul { gap:8px 18px; }
}
