@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');
/* ===== COS-ABACUS clean & clinical restyle ===== */

/* Header title */
#logo, #logo a { font-size:34px !important; line-height:1.25 !important; letter-spacing:.2px; font-weight:700; max-width:960px; margin:0 auto !important; padding:6px 20px 2px !important; color:#1e73be !important; }
.sitetitle { padding-top:20px !important; padding-bottom:12px !important; }
@media (max-width:640px){ #logo, #logo a { font-size:24px !important; padding-left:14px !important; padding-right:14px !important; } }

/* Navigation */
.topnav { background:#1e73be !important; margin-bottom:8px; }
.top-menu > li > a { font-size:15px !important; letter-spacing:.3px; transition:background .15s ease,color .15s ease; }
.top-menu > li > a:hover { background:#155a94 !important; color:#fff !important; }
.top-menu > li.current-menu-item > a, .top-menu > li.current_page_item > a { background:#155a94 !important; }

/* Homepage cards */
article.anons { border:1px solid #e7edf3 !important; border-left:4px solid #1e73be !important; border-radius:8px !important; background:#fff !important; box-shadow:0 2px 10px rgba(20,60,100,.06) !important; padding:28px 32px !important; margin:0 0 34px !important; transition:box-shadow .2s ease,transform .2s ease; }
article.anons:hover { box-shadow:0 6px 22px rgba(20,60,100,.12) !important; transform:translateY(-2px); }
article.anons h2 { margin-top:4px; }
article.anons h2 a { color:#1e73be !important; }
article.anons h2 a:hover { color:#155a94 !important; }
.anons-thumbnail img, article.anons img { border-radius:6px !important; }

/* Read more buttons */
.more-link { border-radius:6px !important; padding:9px 20px !important; font-size:15px !important; font-weight:600; box-shadow:none !important; transition:background .15s ease; }
.more-link:hover { background:#155a94 !important; }

/* Clinical polish */
body.custom-background { background:#eef3f8 !important; }
#main { padding-top:22px !important; }

/* Consistent blue links */
#main a:not(.more-link):not(.anons-thumbnail) { color:#1e73be; }
#main a:not(.more-link):not(.anons-thumbnail):hover { color:#155a94; }
.sitedescription { color:#1e73be !important; }

/* Hide defunct share buttons (VK, OK.ru, Google+) */
.social_share a.psb.vk, .social_share a.psb.ok, .social_share a.psb.gp { display:none !important; }

/* All headings blue (consistent #1e73be) */
#main h1, #main h2, #main h3, #main h4,
article h1, article h2, article h3, article h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.post h1, .post h2, .post h3, .post h4,
.page h1, .page h2, .page h3 {
  color: #1e73be !important;
}
/* Heading links keep the same blue, darken slightly on hover */
#main h1 a, #main h2 a, #main h3 a, #main h4 a,
article h2 a, article h3 a { color: #1e73be !important; }
#main h1 a:hover, #main h2 a:hover, #main h3 a:hover, #main h4 a:hover,
article h2 a:hover, article h3 a:hover { color: #155a94 !important; }
/* Normalise the brighter block-editor blue headings to the site blue */
#main .has-vivid-cyan-blue-color,
#main strong[style*="0693e3"] { color: #1e73be !important; }

/* ===== Modern fonts: Montserrat headings + Inter body ===== */
body, #main, p, li, .top-menu a, .more-link, article, .widget, input, select, textarea, button {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
#logo, #logo a,
h1, h2, h3, h4, h5, h6,
#main h1, #main h2, #main h3, #main h4,
article h1, article h2, article h3, article h4,
article.anons h2, article.anons h2 a {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
/* Montserrat runs a touch wide - keep the big title readable */
#logo, #logo a { letter-spacing: -0.3px; }
/* ===== end fonts ===== */

/* ===== Consistent type scale ===== */
/* Site title */
#logo, #logo a { font-size: 34px !important; line-height: 1.25 !important; }
@media (max-width: 640px){ #logo, #logo a { font-size: 24px !important; } }

/* Page / post titles (H1) */
#main h1, article h1, .post h1, .page h1 {
  font-size: 30px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

/* Section headings (H2) + full-line bold pseudo-headings in post content */
#main h2, article h2, article.anons h2, .post h2, .page h2 {
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
/* Sub-headings (H3) */
#main h3, article h3, .post h3, .page h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

/* H4 and smaller */
#main h4, article h4 { font-size: 17px !important; line-height: 1.4 !important; font-weight: 600 !important; }

/* Body copy: consistent, comfortable reading size */
#main p, article p, #main li, article li { font-size: 16px !important; line-height: 1.6 !important; }
/* ===== end type scale ===== */

/* ===== Welcome box (home only, full width, CSS-injected) ===== */
body.home #main::before {
  content: "Welcome to the COS-ABACUS website. We're delighted you're here. This site shares information about our NIHR-funded study, which is developing a Core Outcome Set (COS) for trials on the management of atrial fibrillation in critically unwell patients. Here you can learn about atrial fibrillation and what a Core Outcome Set is, follow the progress of the COS-ABACUS study, meet the research team, and read about our patient, public and professional involvement. You will also find our publications, details of the e-Delphi consensus process, and information on how to contact us or join our stakeholder group.";
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-left: 4px solid #1e73be;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(20,60,100,0.06);
  padding: 24px 30px;
  margin: 0 0 30px;
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #16436a;
  clear: both;
}
/* first sentence bolder */
body.home #main::first-line { font-weight: 700; }
/* remove the old in-column welcome so it doesn't double up */
body.home #main main.content::before,
body.home #main .content::before { content: none !important; display: none !important; }
/* ===== end welcome ===== */

/* ===== Team photos uniform (Meet the Team) ===== */
body.postid-157 .wp-block-media-text__media {
  align-self: start;
}
body.postid-157 .wp-block-media-text__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  display: block;
}
/* mobile-friendly: keep square when stacked too */
@media (max-width: 600px){
  body.postid-157 .wp-block-media-text__media img { aspect-ratio: 1 / 1; }
}
/* ===== end team photos ===== */

/* Goodbody focal point (tall photo -> frame face) */
body.postid-157 .wp-block-media-text__media img.wp-image-1034 {
  object-position: center 32% !important;
}
/* end Goodbody */

/* ===== Hide all share buttons (Facebook, Twitter, etc.) ===== */
.social_share { display: none !important; }
/* ===== end share ===== */