/* ==========================================================
   EpiVet Chronicles - pages that did not exist on Blogger
   (courses, newsletter, contact, legal) and their forms.
   ========================================================== */
main p, main li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.muted { color: var(--mist); }
.small { font-size: 15px; line-height: 1.5; }
.eyebrow a { color: inherit; }
.band--paper { background: var(--paper); }
.band--purple .eyebrow { color: #F6D9E8; }
.band--purple p { color: #F3EEFA; }
.narrow { max-width: 760px; }
.h3-size { font-size: 26px; line-height: 1.25; }

/* Page header */
.page-hero { padding: 64px 0 56px; background: radial-gradient(circle at 95% 0%, rgba(240, 107, 168, .14), transparent 45%), linear-gradient(135deg, #fff, var(--lavender)); border-bottom: 1px solid var(--pearl); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.prose { padding: 56px 0 88px; }
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--magenta); }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); padding: 30px 28px 26px; box-shadow: var(--shadow); overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.card p { font-size: 17px; line-height: 1.6; }
.card p:last-child { margin-bottom: 0; }
.card .card-end { margin-top: auto; padding-top: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px; border-radius: 999px; background: var(--lavender); color: var(--purple); font-size: 14px; font-weight: 700; line-height: 1.2; }
.pill-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }

/* Lists, notes, quotes */
.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; margin: 0; padding-left: 36px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B1E8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.note { padding: 20px 24px; background: var(--lavender); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.note > :last-child { margin-bottom: 0; }

/* Forms */
.signup, .contact-form { display: grid; gap: 14px; }
.signup { max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; text-align: left; }
.field input, .field select { min-height: 50px; padding: 0 18px; border: 1px solid #80798E; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--font-text); font-size: 17px; }
.field textarea { min-height: 180px; padding: 14px 18px; border: 1px solid #80798E; border-radius: 16px; background: #fff; color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--mist); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; text-align: left; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--magenta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; padding: 14px 18px; border-radius: var(--radius); font-size: 16px; line-height: 1.5; text-align: left; }
.form-msg.ok { background: #E9F6EE; color: #17552F; }
.form-msg.err { background: #FCE4EF; color: #8E0B47; }
.signup .actions, .contact-form .actions { margin: 4px 0 0; }
.signup-card { padding: 36px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.band--purple .field label, .band--purple .consent { color: #fff; }
.band--purple .field input { border-color: #fff; }
.band--purple .consent a { color: #fff; }

/* Article end: newsletter call to action */
.article-signup { margin-top: 32px; padding: 32px; background: var(--lavender); border-radius: var(--radius-lg); }
.article-signup h2 { font-size: 24px; margin: 0 0 8px; }

/* Search results counter */
.search-status { margin: -16px 0 24px; color: var(--mist); }

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-3, .field-row { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 40px; }
  .signup-card, .article-signup { padding: 28px 22px; }
}
