/* The Dog Wellness Journal — clinical journal theme */

:root {
  --ink: #0F2C4D;
  --ink-deep: #061833;
  --clinic-green: #2D7D5F;
  --clinic-green-deep: #1F5B45;
  --paper: #FFFFFF;
  --panel: #F4F6F9;
  --rule: #D9DEE6;
  --text: #1A1F2E;
  --muted: #5E6675;
  --warn: #A8431E;
  --gold: #C6991B;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--clinic-green-deep); }

img { max-width: 100%; height: auto; display: block; }

/* Masthead */
.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
}
.mast-top {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mast-issue { opacity: 0.85; }
.mast-tagline { opacity: 0.7; }
.mast-main {
  text-align: center;
  padding: 32px 24px 16px;
}
.mast-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
  text-decoration: none;
  display: inline-block;
}
.mast-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mast-nav a {
  color: var(--ink-deep);
  text-decoration: none;
  font-weight: 500;
}
.mast-nav a:hover, .mast-nav .nav-active {
  color: var(--clinic-green-deep);
  font-weight: 600;
}

/* Paper */
.paper {
  background: var(--paper);
  padding: 48px 24px 80px;
}
.article {
  max-width: 740px;
  margin: 0 auto;
}

.meta-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tag-cat { color: var(--clinic-green-deep); font-weight: 700; }
.tag-sep { color: var(--muted); margin: 0 6px; }
.tag-trial { color: var(--muted); }

.title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.18;
  color: var(--ink-deep);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}

.subhead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 32px;
  font-style: italic;
}

/* Byline block */
.byline-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 32px;
  flex-wrap: wrap;
}
.byline-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-deep);
}
.byline-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.byline-right {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.byline-date { line-height: 1.6; }
.byline-read {
  margin-top: 4px;
  font-weight: 600;
  color: var(--clinic-green-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero figure */
.hero-fig { margin: 0 0 32px; }
.hero-fig img { width: 100%; }
.hero-fig figcaption {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.credit {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-style: normal;
  font-size: 10px;
  margin-left: 8px;
  color: var(--clinic-green-deep);
  font-weight: 600;
}

/* Disclosure */
.disclosure-note {
  background: var(--panel);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-deep);
  margin: 0 0 36px;
  border-left: 3px solid var(--clinic-green);
}

/* Abstract */
.abstract {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 24px 28px;
  margin: 0 0 32px;
}
.abstract h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink-deep);
  font-weight: 700;
}
.abstract-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 18px;
  margin: 0;
}
.abstract-list dt {
  font-weight: 600;
  font-size: 13px;
  color: var(--clinic-green-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.abstract-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* CTA strip */
.cta-strip {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 18px 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}
.btn-go {
  background: var(--clinic-green);
  color: var(--paper);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-go:hover { background: var(--clinic-green-deep); color: var(--paper); }
.btn-go.big { font-size: 16px; padding: 16px 30px; }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 36px;
}
.proscons-col {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.proscons-col h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  margin: 0 0 12px;
}
.proscons-pros { border-top: 4px solid var(--clinic-green); }
.proscons-pros h3 { color: var(--clinic-green-deep); }
.proscons-cons { border-top: 4px solid var(--warn); }
.proscons-cons h3 { color: var(--warn); }
.proscons-col ul { margin: 0; padding-left: 20px; }
.proscons-col li { font-size: 14px; line-height: 1.55; margin-bottom: 8px; }

/* Contents nav */
.contents {
  background: var(--panel);
  padding: 22px 26px;
  margin: 0 0 48px;
  border-top: 3px solid var(--ink);
}
.contents h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink-deep);
}
.contents ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.contents li {
  font-size: 13px;
  line-height: 1.6;
  break-inside: avoid;
  margin-bottom: 4px;
}
.contents a {
  color: var(--ink-deep);
  text-decoration: none;
}
.contents a:hover {
  color: var(--clinic-green-deep);
  text-decoration: underline;
}

/* Article typography */
.article h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink-deep);
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.article h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-deep);
  margin: 24px 0 10px;
}
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 20px; }
.article li { margin-bottom: 6px; line-height: 1.6; }

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--rule);
  vertical-align: top;
}
.data-table thead th {
  background: var(--ink-deep);
  color: var(--paper);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-color: var(--ink-deep);
}
.data-table tbody tr:nth-child(odd) { background: var(--panel); }
.note { font-size: 12px; color: var(--muted); margin: -6px 0 20px; font-style: italic; }

.tbl-wrap { overflow-x: auto; margin: 0 0 28px; }
.compare { min-width: 720px; }

/* Pull quotes */
.pull-quote {
  margin: 24px 0;
  padding: 22px 28px;
  background: var(--panel);
  border-left: 4px solid var(--clinic-green);
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-deep);
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* FAQ */
.faq { margin: 0 0 32px; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.faq summary {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--clinic-green-deep);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Final block */
.final-block {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 30px;
  margin: 32px 0 0;
  border-top: 4px solid var(--clinic-green);
}
.score-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.score-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 8px;
  text-align: center;
}
.score-cell.score-total {
  background: var(--ink-deep);
  color: var(--paper);
  border-color: var(--ink-deep);
}
.score-cell.score-total .score-label { color: var(--paper); opacity: 0.8; }
.score-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.score-val {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--clinic-green-deep);
}
.score-total .score-val { color: var(--paper); }
.final-text {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.final-cta {
  text-align: center;
  margin: 24px 0 4px;
}
.final-sub {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Author bio */
.author-bio {
  margin-top: 44px;
  padding: 22px 24px;
  background: var(--panel);
  border-top: 2px solid var(--ink);
}
.author-bio h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink-deep);
}
.author-bio p { font-size: 14px; margin: 0; line-height: 1.6; }

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 44px 24px 22px;
  margin-top: 60px;
}
.foot-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.foot-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}
.foot-col p { font-size: 13px; margin: 0; opacity: 0.75; line-height: 1.55; }
.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.85;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 6px; font-size: 13px; }
.foot-col a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.foot-col a:hover { opacity: 1; text-decoration: underline; }
.foot-fine {
  max-width: 1040px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .mast-top { flex-direction: column; gap: 4px; text-align: center; font-size: 10px; }
  .mast-title { font-size: 30px; }
  .mast-nav { gap: 14px; font-size: 11px; padding: 10px 16px; }
  .paper { padding: 30px 18px 60px; }
  .title { font-size: 30px; }
  .subhead { font-size: 17px; }
  .article h2 { font-size: 22px; }
  .article h3 { font-size: 17px; }
  .abstract-list { grid-template-columns: 1fr; gap: 2px 0; }
  .abstract-list dt { margin-top: 10px; }
  .pros-cons { grid-template-columns: 1fr; }
  .contents ol { columns: 1; }
  .score-row { grid-template-columns: repeat(2, 1fr); }
  .score-cell.score-total { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .byline-right { text-align: left; }
}
