/**
 * Vet-Approved Article Template Styles
 * For veterinary-written pet care articles
 */
/* ===========================
   Vertical rhythm
   =========================== */
/* sureflap.less gives every .container 46px of top AND bottom padding, so each
   section on this page contributed ~92px of white space and the article read as
   mostly empty. Tightened to 12px, scoped to `body.vet-approved-article` so the
   global rule is untouched everywhere else on the site.
   Stacked selectors (not a `.container` descendant rule) because these sections
   ARE the containers — they are not nested inside one. */
body.vet-approved-article .container-breadcrumb,
body.vet-approved-article .container-vet-article-header,
body.vet-approved-article .container-vet-article,
body.vet-approved-article .container-vet-profile,
body.vet-approved-article .container-social-share {
  padding-top: 12px;
  padding-bottom: 12px;
  /* The xs/sm branch of the global rule sets 50px/10px; match the desktop
           intent on small screens too rather than inheriting that asymmetry. */
}
@media (max-width: 749px) {
  body.vet-approved-article .container-breadcrumb,
  body.vet-approved-article .container-vet-article-header,
  body.vet-approved-article .container-vet-article,
  body.vet-approved-article .container-vet-profile,
  body.vet-approved-article .container-social-share {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
/* ===========================
   Body text colour
   =========================== */
/* The mockup PDF sets body copy in pure black (fill operator `0 g`), with teal
   #02a6b6 reserved for headings. Locally `.article-body` asked for #333 but a
   bare `p { color: #838383 }` in forms.less won on specificity, so paragraphs
   rendered light grey — noticeably washed out against the PDF. Both are now
   black, and `.article-body p` is explicit so it beats that global `p` rule. */
/* ===========================
   Header Image
   =========================== */
.container-vet-article-header {
  padding: 0;
  margin-bottom: 30px;
}
.container-vet-article-header img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===========================
   Vet Badge & Credentials
   =========================== */
/* The badge sits in the narrow left column, so the pill graphic straddles the
   top edge of a bordered box holding the photo and credentials. */
.vet-badge-section {
  margin-bottom: 25px;
}
.vet-badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Room for the pill, which is pulled up over the top border. */
  padding: 30px 15px 15px;
  border: 2px solid #02a6b6;
  border-radius: 8px;
}
.vet-badge-image {
  position: absolute;
  /* Half the pill's height, so it straddles the border. */
  top: -18px;
  left: 15px;
  width: 175px;
  max-width: calc(100% - 30px);
  height: auto;
}
/* Small inline portrait shown beside "Written by:" in the badge box. */
.vet-badge-photo {
  flex-shrink: 0;
}
.vet-badge-photo img {
  width: 72px;
  height: 82px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.vet-credentials {
  /* No min-width — this column is only ~290px wide. */
  flex: 1;
  min-width: 0;
}
.vet-credentials p {
  margin: 2px 0;
  line-height: 1.35;
}
.vet-credentials .vet-written-by {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.vet-credentials .vet-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.vet-credentials .vet-title {
  font-size: 14px;
  font-weight: 700;
  color: #02a6b6;
}
.vet-credentials .vet-qualifications {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
.article-last-updated {
  font-size: 13px;
  color: #333;
  margin: 0 0 25px 0;
}
.article-last-updated strong {
  font-weight: 700;
}
/* ===========================
   Left column (badge + date + quick links)
   =========================== */
@media (max-width: 749px) {
  .vet-article-aside {
    margin-bottom: 30px;
  }
}
/* ===========================
   Quick Links Sidebar
   =========================== */
@media (max-width: 749px) {
  .quick-links-wrapper {
    position: static;
  }
}
.quick-links-title {
  font-size: 18px;
  font-weight: 700;
  color: #02a6b6;
  margin: 0 0 15px 0;
}
.article-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Nested H3 entries (e.g. the individual tips under a numbered section). */
}
.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.article-toc li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.article-toc li a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}
.article-toc li a:hover {
  color: #02a6b6;
  text-decoration: underline;
}
.article-toc li.active a {
  color: #02a6b6;
  font-weight: 600;
}
.article-toc .article-toc-sub {
  list-style: lower-alpha;
  padding-left: 18px;
  margin: 8px 0 0 0;
}
.article-toc .article-toc-sub li {
  margin-bottom: 6px;
}
.article-toc .article-toc-sub li a {
  font-size: 14px;
  /* Was #555 — the nested tips looked disabled next to the
                   top-level entries. Same black, distinguished by size only. */
  color: #000000;
}
/* ===========================
   Main Article Content
   =========================== */
.container-vet-article {
  margin-bottom: 50px;
}
.vet-article-content {
  padding-left: 30px;
}
@media (max-width: 749px) {
  .vet-article-content {
    padding-left: 15px;
  }
}
.article-body {
  /* 1.1em against the inherited 16px = 17.6px. Deliberately em, not rem:
       html is 10px on this site, so 1.1rem would SHRINK the text to 11px. */
  font-size: 1.1em;
  line-height: 1.8;
  color: #000000;
  /* forms.less carries a bare `p { color: #838383 }`, which outranks the
       inherited colour above — so paragraphs need naming explicitly. */
}
.article-body p,
.article-body li,
.article-body span,
.article-body td,
.article-body th {
  color: #000000;
}
.article-body h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
@media (max-width: 749px) {
  .article-body h1 {
    font-size: 28px;
  }
}
.article-body .article-intro {
  font-size: 18px;
  color: #555;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.7;
}
.article-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: #02a6b6;
  margin: 40px 0 20px 0;
  padding-top: 20px;
  line-height: 1.4;
  scroll-margin-top: 100px;
}
@media (max-width: 749px) {
  .article-body h2 {
    font-size: 22px;
  }
}
.article-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px 0;
  line-height: 1.4;
}
@media (max-width: 749px) {
  .article-body h3 {
    font-size: 18px;
  }
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.article-body strong {
  font-weight: 700;
  color: #222;
}
.article-body a {
  color: #02a6b6;
  text-decoration: underline;
}
.article-body a:hover {
  color: #018a97;
}
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 4px;
}
/* ===========================
   Vet Author Profile Section
   =========================== */
.container-vet-profile {
  background-color: #f0f8f9;
  padding: 40px 0;
  margin-bottom: 30px;
}
.vet-profile-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.vet-profile-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 25px 0;
  text-align: center;
}
.vet-profile-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
@media (max-width: 749px) {
  .vet-profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.vet-profile-content .vet-photo {
  flex-shrink: 0;
}
.vet-profile-content .vet-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.vet-profile-content .vet-profile-text {
  flex: 1;
}
.vet-profile-content .vet-profile-text p {
  margin: 8px 0;
  line-height: 1.7;
}
.vet-profile-content .vet-profile-text .vet-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #02a6b6;
  margin-bottom: 5px;
}
.vet-profile-content .vet-profile-text .vet-profile-credentials {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  margin-bottom: 15px;
}
.vet-profile-content .vet-profile-text .vet-profile-bio {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}
/* ===========================
   Social Share Section
   =========================== */
.container-social-share {
  padding: 40px 0;
  text-align: center;
}
.social-share-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.social-share-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 25px 0;
}
.social-share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  /* Instagram has no web share endpoint, so this is a styled profile link
       sized to sit alongside the Facebook/Twitter widget buttons. */
}
.social-share-buttons .social-button {
  display: inline-block;
}
.social-share-buttons .instagram-share-button {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  background-color: #02a6b6;
  border-radius: 3px;
  text-decoration: none;
}
.social-share-buttons .instagram-share-button:hover,
.social-share-buttons .instagram-share-button:focus {
  background-color: #018a97;
  color: #fff;
  text-decoration: none;
}
/* ===========================
   Mobile Responsive Adjustments
   =========================== */
@media (max-width: 749px) {
  .quick-links-wrapper {
    position: static;
  }
  .article-body h1 {
    font-size: 24px;
  }
  .article-body .article-intro {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 20px;
  }
  .vet-profile-content .vet-photo img {
    width: 120px;
    height: 120px;
  }
}
