/* Pluris static rebuild: original main.css is loaded first. All visual adaptation below. */
html { scroll-behavior: auto; }
[hidden] { display:none!important; }
body { overflow-x: hidden; }
#page { max-width: 100%; }
#main { min-height: 340px; }
.page-title { margin: 0 0 22px; font-size: 23px; font-weight: bold; }
.footer-note { padding:30px 10px 14px; text-align:right; color:#aaa; font:11px Arial,sans-serif; }
.mobile-menu-button { display: none; }
#primary.page #content.home { max-width: 800px; width: 100%; height: auto; line-height:0; }
#primary.page #content.home .homepage-image { display:block; width:100%; max-width:800px; height:auto; }
#primary.page #content.home .homepage-text { line-height:1.5; width:373px; max-width:calc(100% - 20px); }
#primary.page #content.home .homepage-text p {margin:0;}
#primary.page #content.home .homepage-text p + p { margin-top:10px; }
#primary.page #content.home .homepage-text p a {margin-top: 3px; }
.who-we-are-content {margin-bottom:22px;}
.who-we-are-content div, .who-we-are-content p { font-size: 16px; }
.page.authors .author { min-height: 365px; height: auto; }
/* Use the original three-across people layout on desktop; mobile rules remain below. */
.page.authors .author-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding-top:15px; gap:14px 0; }
.page.authors .author-grid::after { content:none; display:none; } /* Prevent the old clearfix pseudo-element from becoming a tenth grid cell. */
.page.authors .author-grid .author { width:calc(100% - 70px); max-width:206px; min-width:0; padding:10px; margin:0 auto; float:none; clear:none; min-height:365px; box-sizing:border-box; }

.author-grid .author .wrap {height: 205px; display:flex; align-items:flex-start; justify-content:center;}
.author-grid .author img {max-height: 193px; width:auto; object-fit:contain;}
.author-grid .author h2 {font-size:16px; line-height:1.15; margin-top: 3px;}
.author-grid .author .description {font-size: 12px; line-height:1.28;}
#primary .intro-copy {font-size:13px;line-height:1.5;}
.service-grid {background: url('/img/white_wall_hash.jpg'); padding:0 3px;}
.service-grid:after { content: ''; display:block;clear:both; }
.case.type-case .case-study-topic { margin: 13px 10px 26px; height: 340px; width: 213px; padding: 10px; position:relative; }
.case.type-case .case-study-topic h2 {font-size:13px;line-height:1.25;margin:5px 0;}
.case.type-case .case-study-topic p {font-size:12px;line-height:1.45;}
.case.type-case .case-study-topic img { width:100%; height:130px; object-fit:cover; }
.case.type-case .case-study-topic a.button {bottom: 10px; right: 10px;}
.case-sidebar .case-browse, .case-sidebar .get-in-touch {float:none;display:inline-block;margin:20px 0 0;}
.case-sidebar p {font-size:15px; margin:18px 0 0;}
.case-sidebar .get-in-touch {margin: 8px 0 0;}
.case-study h2 {font-size:20px;margin:0 0 5px;}
.case-study h3 {font-size:15px; font-weight:bold;margin:0 0 16px;}
.case-study p {font-size:14px;line-height:1.5;}
.case-study .button {margin-top:0;}
.case-detail {padding:20px;}
.case-detail:after {content:'';display:block;clear:both;}
.case-filter-status {color:#666;}
.blog > article.post { margin:0 0 26px; min-height:150px; }
.blog-sidebar { margin-top: 30px !important; }
.blog-sidebar .widget { margin: 0 0 24px; }
.blog-sidebar .widget h2 {margin:0 0 3px;}
.blog-sidebar input {width:95%;font-size:12px;}
.blog-sidebar li {line-height:1.3;}
.blog-sidebar a {line-height:1.3;}
.blog-thumbnail, .article-thumbnail {position:absolute;right:15px;top:0;max-width:105px;max-height:105px;object-fit:contain;border:1px solid #ddd;}
.article-thumbnail {top:10px;}
.blog .entry-header {min-height:90px;padding-right:110px;}
.blog .entry-title {padding-right:0; font-size:21px; line-height:1.2; margin-bottom:3px; }
.blog .by-author {font-size:12px;}
.blog .entry-meta .post-meta {float:none;display:flex;align-items:center;gap:8px;line-height:1.4;padding:0;}
.blog .entry-meta .post-meta .ico {transform: scale(.65); transform-origin:left center; margin-right:-12px;}
.blog .entry-content {margin:0;padding:10px 0;min-height:50px;}
.blog .entry-content p {padding:0; font-size:13px;line-height:1.5;}
.blog .entry-meta small {font-size:12px;}
.blog .more-link {float:none;display:inline-block;margin:4px 0 0;}
.blog-filter {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:11px;background:#f5f5f5;box-shadow:0 0 2px #ddd;margin:4px 0 17px;}
.blog-filter label {font-size:12px;}
.blog-filter select,.blog-filter input {max-width:100%;height:28px;padding:4px;font:12px Arial,sans-serif;border:1px solid #ccc;background:white;}
.blog-filter input {flex:1;min-width:120px;}
.blog-filter button {font-size:12px;padding:6px 10px;}
.filter-feedback {font-size:12px;color:#777;margin:0 0 13px;}
.show-more {float:none;margin:0 auto 40px;display:block;}
.blog .original-article {font-size:13px;line-height:1.55;word-break:normal;overflow-wrap:anywhere;}
.blog .original-article p {font-size:13px;padding:0;margin:0 0 17px;}
.blog .original-article img {max-width:100%;height:auto;}
.blog .original-article a {word-break:break-word;}
.post-navigation {margin: 0 0 25px;}
/* Minimal contact page: one request on the left and the original envelope on the right. */
.contact-page#primary { width:100%; float:none; max-width:960px; }
.contact-page .contact { display:grid; grid-template-columns:minmax(0,600px) minmax(0,260px); gap:40px; align-items:start; }
.contact-page .contact > article { float:none; width:auto; min-width:0; }
.contact-page #contact-side { float:none; width:auto; margin:0; text-align:center; }
.contact-page #contact-side img { margin-top:0; }

.contact-primary {font-size:16px;}
.contact .email-button {float:none; display:inline-block;font-size:12px;}
.site-footer {clear:both;}
@media (max-width: 980px) {
  #page {width:auto;margin:0 auto;padding:0 18px;}
  header#masthead {height:70px;margin:10px 0;padding:0;position:relative;}
  #site-navigation {width:calc(100% - 160px);padding-top:29px;height:auto;}
  #site-navigation ul {margin:0;display:flex;justify-content:space-between;}
  #site-navigation li {float:none;}
  #site-navigation li a {padding:0 8px;font-size:clamp(12px,2vw,20px);white-space:nowrap;}
  #primary {width:75%;padding:0 12px;}
  #secondary {width:25%;padding:0 12px;}
  .page.authors {width:100%;}
  .page.authors .author-grid .author { width:calc(100% - 30px); margin:0 auto; min-height:345px; padding:8px; }
  .service-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
  .case.type-case .case-study-topic {float:none;width:auto;margin:10px 5px;height:310px;}
  .case.type-case .case-study-topic img {height:auto;aspect-ratio:300/199;}
}
@media (max-width: 670px) {
  #page {padding:0 17px;}
  header#masthead {height:auto;min-height:66px;margin:5px 0 12px;}
  .site-branding {float:none;display:inline-block;}
  .site-branding h1 {position:relative;}
  .site-title a {height:60px;width:151px;margin:0;}
  .mobile-menu-button {display:block;position:absolute;top:17px;right:0;font:700 13px Arial,sans-serif;padding:9px 11px;background:white;border:1px solid #ddd;border-radius:3px;color:#231f20;}
  .mobile-menu-button span {margin-left:7px;}
  #site-navigation {float:none;clear:both;padding:0;width:100%;height:auto;display:none;}
  #site-navigation.open {display:block;}
  #site-navigation ul {display:flex;flex-direction:column;gap:0;margin:10px 0 13px;border:1px solid #eee;background:#fff;}
  #site-navigation li {height:auto;width:100%;border-bottom:1px solid #eee;}
  #site-navigation li:last-child {border:0;}
  #site-navigation li a {display:block;padding:13px;font-size:16px;line-height:1.2;height:auto;}
  #primary,#secondary,#primary.page,.page.authors {float:none;width:100%;padding:0;}
  #primary.page #content.home {margin:5px auto 25px;}
  #primary.page #content.home .homepage-text {position:relative;bottom:auto;right:auto;width:100%;max-width:100%;border:1px solid #eee;padding:15px;}
  #primary.page #content.home .homepage-text p:first-child {padding-right:0;}
  #primary.page #content.home .homepage-text p + p:after {content:'';display:block;clear:both;}
  #primary.page #content.home .homepage-text p a {float:left;margin:12px 0 0;}
  .page.authors .author {width:calc(50% - 14px);margin:0 7px 16px;padding:8px;min-height:0;height:auto;}
  .page.authors .author-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .page.authors .author-grid .author { width:auto; max-width:none; min-height:0; margin:0; padding:8px; float:none; }
  .author-grid .author .wrap {height:auto;min-height:145px;align-items:start;}
  .author-grid .author img {width:auto;height:150px;max-height:150px;object-fit:contain;}
  .author-grid .author h2 {font-size:15px;}
  .author-grid .author .description {font-size:12px;}
  .service-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .case.type-case .case-study-topic {height:auto;min-height:325px;margin:0;padding:8px 8px 42px;}
  .case.type-case .case-study-topic img {height:auto;}
  .case-sidebar,.blog-sidebar {display:block;clear:both;float:none!important;width:100%!important;padding:12px 0 20px!important;margin:15px 0!important;border-top:1px solid #eee;}
  .case-sidebar ul {columns:2;}
  .blog-filter {gap:7px;}
  .blog-filter select {max-width:100%;}
  .blog .entry-header {min-height:80px;}
  .blog .entry-title {font-size:19px;}
  .blog .entry-content {margin:0;}
  .blog > article.post {margin-bottom:18px;}
  .blog .entry-meta small {font-size:11px;}
  .contact-page .contact { grid-template-columns:minmax(0,1fr); gap:20px; }
  .contact-page #contact-side { margin:0 auto; width:100%; text-align:center; }
  .contact-page .contact > article { width:100%; float:none; }
  .footer-note {text-align:center;}
}
@media (max-width:390px) {
  .service-grid {grid-template-columns:1fr;}
  .case.type-case .case-study-topic {min-height:0;padding-bottom:55px;}
  .case.type-case .case-study-topic img {aspect-ratio:300/199;object-fit:cover;}
  .author-grid {gap:5px;}
  .author-grid .author img {height:130px;max-height:130px;}
  .page.authors .author {padding:5px;}
}
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto!important;} }

/* Review refinements — November 2026. Preserve the original Pluris desktop identity. */
/* Center the original 800px homepage image, while allowing the first line of copy to fit. */
#primary.page #content.home { display:block; width:800px; max-width:100%; margin:19.5px auto 0; box-sizing:border-box; }
#primary.page #content.home .homepage-image { display:block; margin:0 auto; }
#primary.page #content.home .homepage-text { width:373px; box-sizing:border-box; }
#primary.page #content.home .homepage-text p:first-child { padding-right:0; }
/* Existing coral accent used by other article headings. */
.case-detail h2, .blog > article.post .entry-title { color:#e9654e; }
/* Team profile sidebar: same text size as the main biography. */
#secondary.author-area li, #secondary.author-area li a { font-size:13px; line-height:1.5; }
/* Contact: one centered invitation, then the original envelope image. */
.contact-page .contact { display:flex; flex-direction:column; align-items:center; gap:18px; max-width:720px; margin:10px auto 0; text-align:center; }
.contact-page .contact > article { float:none; width:100%; max-width:640px; padding:0; text-align:center; }
.contact-page .contact .entry-header .entry-title { padding:0; }
.contact-page .contact #contact-side { float:none; width:auto; margin:0 auto; text-align:center; }
.contact-page .contact #contact-side img { display:block; margin:0 auto; width:116px; height:auto; }
.contact-page .contact .email-button { float:none; }
@media (max-width:670px) {
  #primary.page #content.home { margin:5px auto 25px; }
  #primary.page #content.home .homepage-text { width:100%; }
  .contact-page .contact { gap:14px; }
}

/* Review v5 — match the original What We Do design, November 2026. */
/* The service headings are bold in the original website. */
.case.type-case .case-study-topic h2 { font-weight: 700; }
/* Match the text size of team-profile Recent Articles links. */
#secondary.case-sidebar ul li,
#secondary.case-sidebar ul li a { font-size: 13px; line-height: 1.5; }
