/*
Theme Name: Duncraggan (Divi child)
Theme URI: https://www.shorthorn.co.za
Description: Brand styles for Duncraggan Beef Shorthorns. Requires the Divi theme.
Template: Divi
Version: 2.0.0
Text Domain: divi-duncraggan
*/

/*
  How this file is organised
  1. Tokens: colours, the four text sizes, heading sizes and spacing. Change a size here, not in a component.
  2. Base: page background, body text, headings, Divi resets.
  3. Layout: sections, rows, grids.
  4. Components, in roughly the order they appear on the pages.
  5. Header, footer and the phone call bar.
  6. Page types: heroes, articles, category archives.
  Each component carries its own tablet (max 980px) and phone (max 767px) rules.
*/

/* ==================================================================== 1. Tokens */
:root {
	--dg-red: #792F30;
	--dg-red-d: #5A2223;
	--dg-ink: #1F1B18;
	--dg-muted: #5B534C;
	--dg-cream: #F6F1E8;
	--dg-sand: #ECE3D3;
	--dg-line: #DDD1BF;
	--dg-green: #22341F;
	--dg-green-d: #1A2818;
	--dg-gold: #E9C9A0;
	--dg-on-dark: #E6DFD2;
	--dg-serif: 'Cormorant Garamond', Georgia, serif;
	--dg-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Text: four sizes only */
	--dg-fs: 18px;          /* body text */
	--dg-fs-sm: 16px;       /* text inside cards, tables, lists, footer */
	--dg-fs-xs: 14px;       /* dates, tags, captions, sources, breadcrumbs */
	--dg-fs-lead: 21px;     /* the intro paragraph under a section heading */
	--dg-fs-label: 22px;    /* the red italic label above a heading */
	--dg-fs-article: 19px;  /* news articles: a touch larger for long reading */

	/* Headings (Cormorant) */
	--dg-h1: 80px; --dg-h2: 54px; --dg-h3: 32px; --dg-h4: 24px;

	/* Spacing */
	--dg-sec: 104px;        /* section top and bottom */
	--dg-sec-tight: 72px;
	--dg-gap: 32px;         /* between cards */
	--dg-pad: 26px;         /* inside cards */
	--dg-wrap: min(1200px, calc(100% - 64px));
	--dg-measure: 860px;    /* longest comfortable line of text */
	--dg-header-h: 92px;
}
@media (max-width: 980px) {
	:root { --dg-h1: 58px; --dg-h2: 42px; --dg-h3: 28px; --dg-sec: 84px; --dg-sec-tight: 60px; --dg-gap: 24px; }
}
@media (max-width: 767px) {
	:root {
		--dg-fs: 17px; --dg-fs-sm: 15px; --dg-fs-lead: 19px; --dg-fs-label: 20px; --dg-fs-article: 17px;
		--dg-h1: 44px; --dg-h2: 34px; --dg-h3: 26px; --dg-h4: 22px;
		--dg-sec: 60px; --dg-sec-tight: 48px; --dg-gap: 16px; --dg-pad: 22px;
		--dg-wrap: calc(100% - 40px);
	}
}

/* ==================================================================== 2. Base */
html { overflow-anchor: none; }   /* stops the page jumping when the header shrinks */
body.dg, body.dg #page-container, body.dg #main-content { background: var(--dg-cream); }
body.dg *, body.dg *::before, body.dg *::after { box-sizing: border-box; }
body.dg { font-family: var(--dg-sans); color: var(--dg-ink); font-size: var(--dg-fs); line-height: 1.65; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
:where(body.dg p, body.dg li, body.dg .et_pb_text, body.dg .et_pb_module) { font-family: var(--dg-sans); font-size: var(--dg-fs); line-height: 1.65; color: inherit; }
body.dg p { padding-bottom: 0; margin: 0 0 16px; text-wrap: pretty; }
body.dg p:last-child { margin-bottom: 0; }
body.dg a { color: var(--dg-red); }
body.dg a:hover { color: var(--dg-red-d); }
body.dg h1, body.dg h2, body.dg h3, body.dg h4, body.dg h5,
body.dg .et_pb_text h1, body.dg .et_pb_text h2, body.dg .et_pb_text h3, body.dg .et_pb_text h4 {
	font-family: var(--dg-serif); font-weight: 600; line-height: 1.1; color: inherit; padding-bottom: 0; margin: 0; text-wrap: balance;
}
body.dg [id] { scroll-margin-top: 150px; }
@media (max-width: 980px) { body.dg [id] { scroll-margin-top: 185px; } }
@media (max-width: 767px) { body.dg [id] { scroll-margin-top: 100px; } }

/* Divi leftovers */
body.dg #main-content .container::before { display: none; }
body.dg.et_pb_pagebuilder_layout h2.entry-title { margin: 0 !important; padding: 0 !important; }
body.dg .et_builder_inner_content > p:empty,
body.dg .et_builder_inner_content > p:has(> br:only-child),
body.dg .et_pb_text_inner p:empty, .dg .card p:empty, .dg .bull p:empty { display: none !important; }
.dg .btns > br { display: none; }
.dg .dg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dg .et_pb_section.dg-sr-sec { padding: 0 !important; height: 0; overflow: hidden; }

/* Type roles */
.dg .h1 { font-size: var(--dg-h1); letter-spacing: -.01em; }
.dg .h2 { font-size: var(--dg-h2); }
.dg .h3 { font-size: var(--dg-h3); margin-bottom: 12px; }
.dg .h4 { font-size: var(--dg-h4); line-height: 1.15; }
.dg .eyebrow { display: block; font-family: var(--dg-serif); font-style: italic; font-weight: 600; font-size: var(--dg-fs-label); line-height: 1.2; color: var(--dg-red); margin-bottom: 6px; text-wrap: balance; }
.dg .dg-green .eyebrow, .dg .dg-hero .eyebrow { color: var(--dg-gold); }
.dg .lead { font-size: var(--dg-fs-lead); line-height: 1.55; color: var(--dg-muted); max-width: var(--dg-measure); margin: 16px 0 0; }
.dg .muted { color: var(--dg-muted); }
.dg p.muted, .dg span.muted { font-size: var(--dg-fs-sm); }
.dg .crumbs { font-size: var(--dg-fs-xs); color: var(--dg-muted); margin-bottom: 18px; }
.dg .dg-source { font-size: var(--dg-fs-xs); line-height: 1.5; color: var(--dg-muted); border-top: 1px solid var(--dg-line); padding-top: 10px; margin-top: 18px; }
.dg .dg-source + .dg-source, .dg .tblwrap ~ .dg-source { border-top: 0; padding-top: 0; margin-top: 6px; }
.dg .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; margin-bottom: 48px; flex-wrap: wrap; }
@media (max-width: 767px) { .dg .sec-head { margin-bottom: 28px; } .dg .sec-head > * { flex: 1 1 100%; min-width: 0; } }

/* ==================================================================== 3. Layout */
body.dg .et_pb_section { padding: var(--dg-sec) 0; background-color: transparent; }
body.dg .et_pb_section.dg-tight { padding: var(--dg-sec-tight) 0; }
.dg .dg-flush { padding-top: 0 !important; }
body.dg .et_pb_row { width: var(--dg-wrap); max-width: none; padding: 0; margin-left: auto; margin-right: auto; }
body.dg .et_pb_row + .et_pb_row { margin-top: 40px; }
body.dg .et_pb_module { margin-bottom: 0; }
body.dg .et_pb_column { margin-bottom: 0 !important; }
@media (max-width: 980px) { .dg .et_pb_row > .et_pb_column:not(:last-child) { margin-bottom: 32px !important; } }

.dg .et_pb_section.dg-white { background: #fff; }
.dg .et_pb_section.dg-sand, .dg .et_pb_section.dg-cta { background: var(--dg-sand) !important; }
.dg .et_pb_section.dg-green, .dg .dg-green { background-color: var(--dg-green) !important; }
.dg .dg-green, .dg .dg-green p, .dg .dg-green li, .dg .dg-green .et_pb_text { color: var(--dg-on-dark); }
.dg .dg-green h2, .dg .dg-green h3 { color: #fff; }
.dg .dg-green .lead { color: var(--dg-on-dark); }
.dg .et_pb_section.dg-white + .et_pb_section.dg-white { border-top: 1px solid var(--dg-line); }

.dg .grid { display: grid; gap: var(--dg-gap); }
.dg .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dg .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dg .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.dg .split:has(.tl), .dg .dg-green .split, .dg .split:has(.tags), .dg .split:has(.tblwrap) { align-items: start; }
@media (min-width: 981px) { .dg .dg-green .split > :first-child { position: sticky; top: 150px; } }
@media (max-width: 980px) {
	.dg .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dg .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.dg .split > div > p, .dg .split .lead { max-width: 68ch; }
}
@media (min-width: 768px) and (max-width: 980px) { .dg .g3 { gap: 18px; } }
@media (max-width: 767px) { .dg .g2, .dg .g3, .dg .g4 { grid-template-columns: minmax(0, 1fr); } }

/* Cards in one row end level with each other (only where a module holds a single card) */
.dg .grid > .card, .dg .grid > .linkcard { height: 100%; }
@media (min-width: 768px) {
	.dg .et_pb_row:has(> .et_pb_column > .et_pb_text > .et_pb_text_inner > .card:only-child) { display: flex; flex-wrap: wrap; align-items: stretch; }
	.dg .et_pb_row:has(> .et_pb_column > .et_pb_text > .et_pb_text_inner > .card:only-child) > .et_pb_column { display: flex; flex-direction: column; }
	.dg .et_pb_text:has(> .et_pb_text_inner > .card:only-child) { flex: 1 1 auto; display: flex; }
	.dg .et_pb_text:has(> .et_pb_text_inner > .card:only-child) > .et_pb_text_inner { display: flex; width: 100%; }
	.dg .et_pb_text:has(> .et_pb_text_inner > .card:only-child) .card { width: 100%; }
}
/* Four-column bull rows: two-up on tablets and small laptops */
@media (min-width: 768px) and (max-width: 1199px) {
	.dg .et_pb_row:has(> .et_pb_column_1_4) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
	.dg .et_pb_row:has(> .et_pb_column_1_4) > .et_pb_column { width: auto !important; margin: 0 !important; }
}

/* ==================================================================== 4. Components */

/* Buttons and text links */
.dg a.btn, .dg button.btn, .dg .et_pb_button.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
	background: var(--dg-red); color: #fff !important; text-decoration: none; font-family: var(--dg-sans); font-weight: 600; font-size: 16px;
	letter-spacing: .01em; border: 2px solid var(--dg-red); border-radius: 2px; white-space: nowrap; text-shadow: none; cursor: pointer;
}
.dg a.btn:hover, .dg button.btn:hover { background: var(--dg-red-d); border-color: var(--dg-red-d); }
.dg a.btn.ghost { background: transparent; border-color: rgba(255,255,255,.85); }
.dg a.btn.ghost:hover { background: #fff; color: var(--dg-ink) !important; }
.dg a.btn.line { background: transparent; color: var(--dg-red) !important; }
.dg a.btn.line:hover { background: var(--dg-red); color: #fff !important; }
.dg a.btn.sm { min-height: 44px; padding: 8px 16px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.3; }
.dg .btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dg a.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .dg .btns { width: 100%; } .dg .btns .btn { flex: 1 1 100%; } }

/* Cards */
.dg .card { background: #fff; border: 1px solid var(--dg-line); display: flex; flex-direction: column; min-width: 0; }
.dg .card > img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: var(--dg-sand); }
.dg .card > img.banner { aspect-ratio: 8/3; }
.dg .card .bd { padding: var(--dg-pad); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dg .card p { margin: 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
.dg .card figcaption.bd > b, .dg .card .bd > b:first-child { display: block; font-family: var(--dg-serif); font-size: var(--dg-h4); font-weight: 600; line-height: 1.15; }
.dg .card figcaption.bd > .muted { display: block; margin-top: 4px; }
.dg .card.noimg { border-top: 4px solid var(--dg-red); }
.dg .note { background: #fff; border: 1px solid var(--dg-line); padding: 22px 24px; margin-top: 24px; }
.dg .note p { margin: 6px 0 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }

/* Whole-card links */
.dg .linkcard { position: relative; transition: box-shadow .2s, transform .2s; }
.dg .linkcard:hover { box-shadow: 0 14px 30px rgba(31,27,24,.12); transform: translateY(-2px); }
.dg .linkcard a.stretch { color: inherit; text-decoration: none; }
.dg .linkcard a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dg .linkcard a.stretch:focus-visible { outline: 3px solid var(--dg-red); outline-offset: 4px; }

/* Small labels: one size, two looks (filled tag, outlined fact) */
.dg .tag, .dg .origin, .dg .status, .dg .top { display: inline-block; align-self: flex-start; font-size: var(--dg-fs-xs); font-weight: 700; letter-spacing: .02em; line-height: 1.3; padding: 5px 10px; background: var(--dg-sand); color: var(--dg-red-d); }
.dg .origin.home { background: var(--dg-red); color: #fff; }
.dg .status { background: #2E6B3A; color: #fff; }
.dg .status.sold { background: var(--dg-sand); color: var(--dg-muted); }
.dg .top { margin-left: 8px; padding: 2px 8px; background: #F3E7CF; color: #6B4E16; }
.dg .facts, .dg .chips, .dg .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dg .fact, .dg .chipf, .dg .tags span { font-size: var(--dg-fs-xs); font-weight: 600; line-height: 1.3; padding: 6px 12px; border: 1px solid var(--dg-line); background: var(--dg-cream); color: var(--dg-ink); }
.dg .fact.gold { background: #F3E7CF; border-color: #E2CFA8; }
.dg .chipf.strong { background: #fff; }
.dg .chipf.strong b { color: var(--dg-red); margin-left: 4px; }
.dg .dg-green .tags span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #F1E9DE; }
.dg .tl-item .tags { margin-top: 12px; }
@media (max-width: 767px) { .dg .tblwrap .top { margin: 4px 0 0; } }

/* Tick lists */
.dg .ticks { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dg .ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 0; }
.dg .ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; background: var(--dg-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Trait photo cards (home): a swipeable row on phones and tablets */
.dg .pill { display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; min-height: 320px; color: #fff; overflow: hidden; background: #2A221C; }
.dg .pill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg .pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,9,0) 25%, rgba(18,12,9,.9) 100%); }
.dg .pill .bd { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.dg .pill h3 { color: #fff; }
.dg .pill p { margin: 0; font-size: var(--dg-fs-sm); line-height: 1.5; color: #E9E0D3; min-height: calc(3 * 1.5em); }
@media (min-width: 981px) { .dg .pill h3 { white-space: nowrap; } }
@media (max-width: 980px) {
	.dg .g5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
	.dg .g5 > * { scroll-snap-align: start; }
}
@media (max-width: 767px) { .dg .g5 { grid-auto-columns: 78%; } .dg .pill { min-height: 340px; } }

/* Quote and figures band */
.dg .quote { font-family: var(--dg-serif); font-size: 44px; line-height: 1.2; color: #fff; max-width: 900px; margin: 0; }
.dg .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dg-gap); margin-top: 64px; border-top: 1px solid rgba(239,232,220,.25); padding-top: 48px; }
.dg .stat b { display: block; font-family: var(--dg-serif); font-size: 64px; line-height: 1; color: #fff; font-weight: 600; }
.dg .stat span { display: block; margin-top: 10px; color: #D7CDBE; font-size: var(--dg-fs-sm); }
.dg .num { font-family: var(--dg-serif); font-size: 56px; line-height: 1; color: var(--dg-red); }
.dg .big { font-family: var(--dg-serif); font-size: 120px; line-height: 1; color: #fff; }
.dg .dg-heifers .big { color: var(--dg-red); }
@media (max-width: 980px) { .dg .quote { font-size: 34px; } .dg .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dg .quote { font-size: 28px; } .dg .stats { margin-top: 40px; padding-top: 32px; gap: 24px 16px; } .dg .stat b { font-size: 46px; } .dg .big { font-size: 88px; } }

/* Ranking figures (Females, Home) */
.dg .dg-stat { border-top: 3px solid var(--dg-red); }
.dg .dg-sand .dg-stat { background: #fff; }
.dg .dg-stat .statnum { display: block; font-family: var(--dg-serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--dg-red); margin-bottom: 12px; }
.dg .dg-stat p { margin: 0; font-size: var(--dg-fs-sm); }
.dg .dg-figtext > p { max-width: var(--dg-measure); }
@media (max-width: 767px) {
	.dg .g4:has(.dg-stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.dg .dg-stat .bd { padding: 18px 16px; }
	.dg .dg-stat .statnum { font-size: 34px; margin-bottom: 8px; }
}
@media (max-width: 479px) { .dg .g4:has(.dg-stat) { grid-template-columns: 1fr; } }

/* Herd logo cards */
.dg .herd { text-align: center; text-decoration: none; color: inherit; }
.dg .herd .logoimg { height: 150px; width: 100%; object-fit: contain; padding: 28px; background: #fff; border-bottom: 1px solid var(--dg-line); aspect-ratio: auto; }
.dg .herd:first-child .logoimg { padding: 14px; }
.dg .logo-side { background: #fff; border: 1px solid var(--dg-line); padding: 32px; display: flex; align-items: center; justify-content: center; }
.dg .logo-side img { max-height: 200px; display: block; }
@media (max-width: 767px) { .dg .herd .logoimg { height: 110px; padding: 18px; } .dg .logo-side { padding: 24px; } .dg .logo-side img { max-height: 140px; } }

/* Numbered promises (home) */
.dg .assure { display: flex; gap: 18px; align-items: flex-start; }
.dg .assure .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--dg-sand); color: var(--dg-red); font-weight: 700; font-family: var(--dg-serif); font-size: 26px; }
.dg .assure p { margin: 6px 0 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }

/* Jump links under a page hero */
.dg .et_pb_section.dg-jump { padding: 0; background: #fff; border-bottom: 1px solid var(--dg-line); position: sticky; top: var(--dg-header-h); z-index: 10; }
body.dg.admin-bar .et_pb_section.dg-jump { top: calc(var(--dg-header-h) + 32px); }
@media (min-width: 981px) { body.dg:has(#main-header.et-fixed-header) .et_pb_section.dg-jump { top: var(--dg-header-shrunk, 55px); } }
@media (min-width: 768px) and (max-width: 980px) { body.dg .et_pb_section.dg-jump { top: 80px; } }
@media (max-width: 767px) { body.dg .et_pb_section.dg-jump { position: relative; top: auto; } }
.dg .jump { display: flex; gap: 10px; padding: 14px 0; overflow-x: auto; }
@media (max-width: 980px) { .dg .jump { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.dg .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--dg-line); background: #fff; color: var(--dg-ink); text-decoration: none; font-weight: 600; font-size: var(--dg-fs-sm); border-radius: 999px; white-space: nowrap; }
.dg .chip:hover { border-color: var(--dg-red); color: var(--dg-red); }
.dg .chip.now { background: var(--dg-red); border-color: var(--dg-red); color: #fff; }

/* Timeline (About) */
.dg .tl { display: flex; flex-direction: column; border-left: 2px solid var(--dg-line); margin-left: 8px; }
.dg .tl-item { position: relative; padding: 0 0 36px 36px; }
.dg .tl-item:last-child { padding-bottom: 0; }
.dg .tl-item::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--dg-red); border: 3px solid var(--dg-cream); }
.dg .tl-year { font-family: var(--dg-serif); font-size: 30px; font-weight: 600; color: var(--dg-red); line-height: 1.1; }
.dg .tl-item p { margin: 6px 0 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
.dg .dg-green .tl { border-color: rgba(255,255,255,.25); }
.dg .dg-green .tl-item::before { background: var(--dg-gold); border-color: var(--dg-green); }
.dg .dg-green .tl-year { color: var(--dg-gold); }
.dg .dg-green .tl-item p { color: var(--dg-on-dark); }
@media (max-width: 767px) { .dg .tl-year { font-size: 26px; } .dg .tl-item { padding-left: 28px; } }

/* Sale bulls */
.dg .bull { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--dg-line); }
.dg .bull img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.dg .bull .bd { padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.dg .bull p { margin: 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
.dg .ped { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: var(--dg-fs-sm); margin: 6px 0 0; padding: 16px 0; border-top: 1px solid var(--dg-line); border-bottom: 1px solid var(--dg-line); }
.dg .ped dt { color: var(--dg-muted); }
.dg .ped dd { margin: 0; font-weight: 600; }
.dg .callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--dg-green); color: var(--dg-on-dark); padding: 28px 32px; margin-top: 28px; }
.dg .callout b { color: #fff; }
.dg .callout a.btn { background: #fff; color: var(--dg-ink) !important; border-color: #fff; }
@media (max-width: 980px) { .dg .bull { grid-template-columns: minmax(0, 1fr); } .dg .bull img { min-height: 0; aspect-ratio: 3/2; } }
@media (max-width: 767px) { .dg .bull .bd { padding: var(--dg-pad); } }

/* "Next sale: details coming soon" panel */
.dg .coming { background: #fff; border: 1px solid var(--dg-line); border-left: 0; padding: 40px 44px; position: relative; overflow: hidden; }
.dg .coming::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--dg-red); }
.dg .coming h3 { margin-bottom: 10px; }
.dg .coming p { color: var(--dg-muted); max-width: var(--dg-measure); }
@media (max-width: 767px) { .dg .coming { padding: 26px 22px 26px 26px; } }

/* Section intro with a side note (Bull Sales years) */
.dg .yearhead { display: block; margin-bottom: 36px; }
.dg .yearhead .meta { margin: 14px 0 0; max-width: var(--dg-measure); color: var(--dg-muted); text-align: left; }

/* Tables */
.dg .tblwrap { overflow-x: auto; border: 1px solid var(--dg-line); background: #fff; margin-top: 40px; }
.dg .tblwrap table { width: 100%; border-collapse: collapse; min-width: 640px; border: 0; margin: 0; }
.dg .tblwrap th, .dg .tblwrap td { text-align: left; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--dg-line); vertical-align: top; font-size: var(--dg-fs-sm); }
.dg .tblwrap th { font-size: var(--dg-fs-xs); font-weight: 700; color: var(--dg-ink); background: var(--dg-cream); white-space: nowrap; }
.dg .tblwrap td.yr { font-family: var(--dg-serif); font-size: 26px; font-weight: 600; color: var(--dg-red); }
.dg .tblwrap td.price { font-weight: 700; white-space: nowrap; }
.dg .tblwrap table.dg-rank { min-width: 0; }
.dg .tblwrap table.dg-rank td, .dg .tblwrap table.dg-rank th, .dg .tblwrap table.dg-sirefig td, .dg .tblwrap table.dg-sirefig th { padding: 12px 14px; }
.dg .tblwrap table.dg-rank td.yr { font-size: 22px; }
.dg .tblwrap table.dg-sirefig { min-width: 560px; }
@media (min-width: 768px) { .dg table.dg-rank td:nth-child(2) b { white-space: nowrap; } }
@media (max-width: 767px) {
	/* rank table: rank, cow, value */
	.dg .tblwrap table.dg-rank th:nth-child(3), .dg .tblwrap table.dg-rank td:nth-child(3),
	.dg .tblwrap table.dg-rank th:nth-child(4), .dg .tblwrap table.dg-rank td:nth-child(4) { display: none; }
	.dg .tblwrap table.dg-rank td, .dg .tblwrap table.dg-rank th { padding: 10px; }
	/* sale results: stacked rows */
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) { min-width: 0; }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) thead { display: none; }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--dg-line); }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) td { padding: 0; border: 0; }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) td.yr { grid-column: 1 / -1; font-size: 22px; }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) td.yr:empty { display: none; }
	body.dg:not(.single-post) .tblwrap table:not(.dg-rank):not(.dg-sirefig) td:last-child { grid-column: 1 / -1; color: var(--dg-muted); font-size: var(--dg-fs-xs); }
	/* sire strengths: one card per sire */
	.dg .tblwrap table.dg-sirefig { min-width: 0; }
	.dg table.dg-sirefig thead { display: none; }
	.dg table.dg-sirefig tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--dg-line); }
	.dg table.dg-sirefig td { display: block; padding: 0; border: 0; }
	.dg table.dg-sirefig td:nth-child(2)::before { content: "Calves weighed in SA: "; color: var(--dg-muted); }
	.dg table.dg-sirefig td:nth-child(2) { font-size: var(--dg-fs-xs); margin: 2px 0 8px; }
}

/* What we look for (Females) */
.dg .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dg .checks li { background: #fff; border: 1px solid var(--dg-line); padding: 20px; }
.dg .checks b { display: block; }
.dg .checks span { display: block; margin-top: 4px; line-height: 1.5; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
@media (max-width: 767px) {
	.dg .checks { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--dg-line); }
	.dg .checks li { background: transparent; border: 0; border-bottom: 1px solid var(--dg-line); padding: 14px 0; }
}

/* Photo strip (Females) */
.dg .photostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dg .photostrip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (max-width: 767px) { .dg .photostrip { grid-template-columns: 1fr 1fr; } .dg .photostrip img:first-child { grid-column: 1 / -1; } }

/* Contact people */
.dg .people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dg .person { background: #fff; border: 1px solid var(--dg-line); padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px rgba(31,27,24,.08); }
.dg .person .role { font-size: var(--dg-fs-xs); font-weight: 700; color: var(--dg-red); }
.dg .person p { margin: 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
.dg .person > p:last-child { margin-top: auto; padding-top: 8px; }
.dg .person a.line { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--dg-ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.dg .hours { display: flex; gap: 16px; align-items: center; background: var(--dg-sand); padding: 20px 24px; margin-bottom: 32px; }
.dg .hours b { font-family: var(--dg-serif); font-size: 30px; color: var(--dg-red); line-height: 1; white-space: nowrap; }
@media (max-width: 980px) { .dg .people { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .dg .person { padding: var(--dg-pad); } .dg .hours { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* Archive rows */
.dg .article { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #fff; border: 1px solid var(--dg-line); }
.dg .article img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.dg .article .bd { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dg .article p { margin: 0; color: var(--dg-muted); font-size: var(--dg-fs-sm); }
@media (max-width: 767px) { .dg .article { grid-template-columns: minmax(0, 1fr); } .dg .article img { aspect-ratio: 3/2; min-height: 0; } .dg .article .bd { padding: var(--dg-pad); } }

/* Link lists (About) */
.dg .linkgroup { border-top: 3px solid var(--dg-red); padding: 20px 0 0; }
.dg .linkgroup h3.h4 { margin: 0 0 14px; }
.dg .linkgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dg .linkgroup li { padding: 0; font-size: var(--dg-fs-sm); }
.dg .linkgroup li a { font-weight: 700; text-decoration: none; display: inline-block; }
.dg .linkgroup li a:hover { text-decoration: underline; }
.dg .linkgroup li span { display: block; color: var(--dg-muted); font-size: var(--dg-fs-sm); margin-top: 2px; }
.dg .split h3.h4 { margin-top: 32px; margin-bottom: 12px; }

/* Herd sires */
.dg .dg-sirecards .card .bd { flex: 1 1 auto; }
.dg .dg-sirecards .sirelinks { margin-top: auto; padding-top: 14px; }
.dg .sirelinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: var(--dg-fs-sm); }
.dg .sirelinks a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
@media (min-width: 768px) and (max-width: 980px) { .dg .dg-sirecards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.dg .found-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.dg .found-card > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dg .found-card > div { padding: 16px 18px 18px; }
.dg .found-card b { display: block; font-family: var(--dg-serif); font-size: var(--dg-h4); line-height: 1.15; font-weight: 600; }
.dg .found-card .muted { display: block; line-height: 1.45; margin-top: 4px; font-size: var(--dg-fs-sm); }

/* Original-text dropdowns: a quiet text row that opens, not another card */
.dg details.dg-orig { margin-top: 28px; border-top: 1px solid var(--dg-line); border-bottom: 1px solid var(--dg-line); background: transparent; }
.dg details.dg-orig + details.dg-orig,
.dg .et_pb_text:has(> .et_pb_text_inner > details.dg-orig) + .et_pb_text:has(> .et_pb_text_inner > details.dg-orig) details.dg-orig { margin-top: -1px; }
.dg .et_pb_text:has(> .et_pb_text_inner > details.dg-orig) { margin-bottom: 0 !important; }
.dg details.dg-orig > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 4px; font-family: var(--dg-sans); font-size: var(--dg-fs-sm); font-weight: 600; line-height: 1.35; color: var(--dg-red); text-wrap: balance; }
.dg details.dg-orig > summary::-webkit-details-marker { display: none; }
.dg details.dg-orig > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.dg details.dg-orig[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.dg details.dg-orig > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.dg details.dg-orig > summary:focus-visible { outline: 3px solid var(--dg-red); outline-offset: 2px; }
.dg .dg-green details.dg-orig { border-color: rgba(255,255,255,.25); }
.dg .dg-green details.dg-orig > summary { color: var(--dg-gold); }
.dg .dg-orig-body { padding: 8px 4px 28px; }
.dg .dg-orig-body > * { max-width: var(--dg-measure); }
.dg .dg-orig-body > :first-child { margin-top: 0 !important; }
.dg .dg-orig-body > :last-child { margin-bottom: 0; }
.dg .dg-orig-body p, .dg .dg-orig-body li { font-size: var(--dg-fs-sm); color: var(--dg-muted); }
body.dg .dg-orig-body h1, body.dg .dg-orig-body h2, body.dg .dg-orig-body h3, body.dg .dg-orig-body h4 { font-family: var(--dg-serif); font-weight: 600; color: var(--dg-ink); font-size: var(--dg-h4); line-height: 1.2; margin: 24px 0 8px; padding: 0; }
.dg .dg-green .dg-orig-body p, .dg .dg-green .dg-orig-body li, .dg .dg-green .dg-orig-body h2 { color: var(--dg-on-dark); }
.dg .dg-orig-body img { max-width: 100%; height: auto; display: block; margin: 16px 0; }
.dg .dg-orig-body img.size-full, .dg .dg-orig-body img.size-large, .dg .dg-orig-body img.image_fix { width: 100%; max-width: var(--dg-measure); }
.dg .dg-orig-body .wp-caption, .dg .dg-orig-body .alignleft, .dg .dg-orig-body .alignright, .dg .dg-orig-body .aligncenter { float: none !important; width: auto !important; max-width: 100% !important; margin: 16px 0 !important; }
.dg .dg-orig-body .wp-caption-text { font-size: var(--dg-fs-xs); color: var(--dg-muted); text-align: left; }
.dg .dg-orig-body table, .dg .dg-orig-body tbody, .dg .dg-orig-body tr, .dg .dg-orig-body td { display: block; width: auto !important; height: auto !important; border: 0 !important; padding: 0 !important; background: none !important; }
.dg .dg-orig-body td + td, .dg .dg-orig-body tr + tr { margin-top: 12px; }
.dg .dg-orig-body .wp-video, .dg .dg-orig-body .mejs-container, .dg .dg-orig-body video, .dg .dg-orig-body iframe { width: 100% !important; max-width: var(--dg-measure) !important; height: auto; }
.dg .dg-orig-body .mejs-container { aspect-ratio: 16 / 9; height: auto !important; }

/* News grid (Divi blog module): plain CSS grid, newest first */
.dg .et_pb_blog_grid .et_pb_salvattore_content { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dg .et_pb_blog_grid .et_pb_salvattore_content > div { display: contents; }
.dg .et_pb_blog_grid .et_pb_salvattore_content::before { display: none; }
.dg .dg-latest3 .et_pb_post:nth-of-type(n+4) { display: none; }
.dg .et_pb_blog_grid .et_pb_post { background: #fff; border: 1px solid var(--dg-line); padding: 0; margin: 0 !important; width: auto !important; display: flex; flex-direction: column; }
.dg .et_pb_blog_grid .et_pb_post .et_pb_image_container { margin: 0; }
.dg .et_pb_blog_grid .et_pb_post .entry-featured-image-url { margin-bottom: 0; aspect-ratio: 3/2; overflow: hidden; display: block; }
.dg .et_pb_blog_grid .et_pb_post .entry-featured-image-url img { width: 100%; height: 100%; object-fit: cover; }
.dg .et_pb_blog_grid .et_pb_post h2.entry-title { font-family: var(--dg-serif); font-size: var(--dg-h4); line-height: 1.15; padding: 22px var(--dg-pad) 0 !important; margin: 0 !important; text-wrap: pretty; }
.dg .et_pb_blog_grid .et_pb_post .entry-title a { color: var(--dg-ink); }
.dg .et_pb_blog_grid .et_pb_post .post-meta { padding: 0 var(--dg-pad); margin: 8px 0 0; font-size: var(--dg-fs-xs); font-weight: 600; color: var(--dg-muted); }
.dg .et_pb_blog_grid .et_pb_post .post-content { display: flex; flex-direction: column; flex: 1; padding: 12px var(--dg-pad) 24px; color: var(--dg-muted); }
.dg .et_pb_blog_grid .et_pb_post .post-content, .dg .et_pb_blog_grid .et_pb_post .post-content p { font-size: var(--dg-fs-sm); color: var(--dg-muted); }
.dg .et_pb_blog_grid .et_pb_post .post-content .more-link { margin-top: auto; padding-top: 12px; display: inline-block; font-weight: 600; font-size: var(--dg-fs-sm); color: var(--dg-red); }
.dg .et_pb_blog_grid .et_pb_post .more-link::first-letter { text-transform: uppercase; }
@media (max-width: 980px) { .dg .et_pb_blog_grid .et_pb_salvattore_content { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 980px) { .dg .dg-latest3 .et_pb_post:nth-of-type(3) { display: none; } }
@media (max-width: 767px) { .dg .et_pb_blog_grid .et_pb_salvattore_content { grid-template-columns: minmax(0, 1fr); gap: var(--dg-gap); } }

/* Gallery */
.dg .et_pb_gallery_grid .et_pb_gallery_items { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg .et_pb_gallery_grid .et_pb_gallery_item { width: auto !important; margin: 0 !important; clear: none !important; float: none !important; display: block !important; }
.dg .et_pb_gallery_grid .et_pb_gallery_image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto !important; }
@media (max-width: 980px) { .dg .et_pb_gallery_grid .et_pb_gallery_items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Forms: contact and newsletter */
.dg .et_pb_contact_form_container .et_pb_contact_field input,
.dg .et_pb_contact_form_container .et_pb_contact_field textarea,
.dg .et_pb_contact_form_container .et_pb_contact_field select,
.dg .et_pb_newsletter_form input { background: #fff !important; border: 1px solid #CDBFAA !important; border-radius: 2px; color: var(--dg-ink) !important; font-size: 16px; padding: 14px !important; }
.dg .et_pb_contact_form_container .et_pb_contact_submit, .dg .et_pb_contact_submit.et_pb_button,
.dg .et_pb_newsletter_button { background: var(--dg-red) !important; color: #fff !important; border: 2px solid var(--dg-red) !important; border-radius: 2px !important; font-family: var(--dg-sans) !important; font-weight: 600 !important; font-size: 16px !important; letter-spacing: .01em !important; text-transform: none !important; padding: 12px 26px !important; min-height: 52px; }
.dg .et_pb_contact_form_container .et_pb_contact_submit::after, .dg .et_pb_newsletter_button::after { display: none; }
.dg .et_contact_bottom_container { margin-top: 16px; display: flex; align-items: center; gap: 16px; }
.dg .et_pb_newsletter { background: transparent !important; padding: 0 !important; }
.dg .et_pb_newsletter .et_pb_newsletter_description,
.dg .et_pb_newsletter .et_pb_newsletter_description *,
.dg .et_pb_newsletter .et_pb_newsletter_form p,
.dg .et_pb_newsletter label { color: var(--dg-ink) !important; text-shadow: none !important; }
.dg .et_pb_newsletter_description h2 { font-family: var(--dg-serif) !important; font-size: var(--dg-h3) !important; font-weight: 600 !important; line-height: 1.1 !important; color: var(--dg-ink); padding-bottom: 8px !important; }
.dg .et_pb_newsletter .et_pb_newsletter_description p, .dg .et_pb_newsletter .et_pb_newsletter_description .et_pb_newsletter_description_content { color: var(--dg-muted) !important; font-size: var(--dg-fs-sm) !important; }
.dg .et_pb_newsletter_result { display: none; }
.dg .et_pb_newsletter_result.et_pb_newsletter_show, .dg .et_pb_newsletter_result[style*="block"] { display: block; }
.dg .et_pb_newsletter_success, .dg .et_pb_newsletter_success h2, .dg .et_pb_newsletter_result, .dg .et_pb_newsletter_result h2 { color: var(--dg-ink) !important; text-shadow: none !important; }
.dg .et_pb_newsletter_form form .et_pb_newsletter_fields { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.dg .et_pb_newsletter_form .et_pb_newsletter_field { width: auto !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
.dg .et_pb_newsletter_form .et_pb_newsletter_field input { width: 100% !important; }
.dg .et_pb_newsletter_button_wrap { margin: 0 !important; display: flex; }
.dg .et_pb_newsletter_button { display: flex !important; align-items: center; justify-content: center; width: 100%; }
.dg .newsletter, .dg .et_pb_column_1_3 .et_pb_newsletter { display: block !important; }
.dg .et_pb_column_4_4 > .et_pb_newsletter::before, .dg .et_pb_column_4_4 > .et_pb_newsletter::after { content: none !important; display: none !important; }
@media (min-width: 981px) {
	.dg .et_pb_column_4_4 > .et_pb_newsletter { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
	.dg .et_pb_column_4_4 > .et_pb_newsletter .et_pb_newsletter_description, .dg .et_pb_column_4_4 > .et_pb_newsletter .et_pb_newsletter_form { width: auto !important; padding: 0 !important; }
}

/* Slider (kept for any page that still uses one) */
.dg .et_pb_section.et_pb_fullwidth_section { padding: 0 !important; }
.dg .et_pb_slider.dg-slider, .dg .et_pb_slider.dg-slider .et_pb_slide { min-height: 600px; }
.dg .et_pb_slider.dg-slider .et_pb_slide { background-size: cover; background-position: center; padding: 0; box-shadow: inset 0 0 0 2000px rgba(18,12,9,.28), inset 0 -360px 220px -60px rgba(18,12,9,.85) !important; }
.dg .et_pb_slider.dg-slider .et_pb_container { height: 600px !important; width: var(--dg-wrap); max-width: none; display: flex; align-items: flex-end; }
.dg .et_pb_slider.dg-slider .et_pb_slider_container_inner { display: block; width: 100%; vertical-align: bottom; padding-bottom: 72px; }
.dg .et_pb_slider.dg-slider .et_pb_slide_description { padding: 0; text-align: left; text-shadow: 0 2px 6px rgba(0,0,0,.55) !important; }
.dg .et_pb_slider.dg-slider .et_pb_slide_title { font-family: var(--dg-serif) !important; font-size: 58px !important; font-weight: 600 !important; line-height: 1.1 !important; color: #fff !important; max-width: 900px; padding: 0 0 12px; }
.dg .et_pb_slider.dg-slider .et_pb_slide_content, .dg .et_pb_slider.dg-slider .et_pb_slide_content p { color: #F1E9DE !important; font-size: var(--dg-fs-lead); max-width: 660px; }
.dg .et_pb_slider.dg-slider .et_pb_slide_content a { color: #fff !important; }
.dg .et_pb_slider.dg-slider .et-pb-controllers { text-align: left; width: var(--dg-wrap); left: 50%; transform: translateX(-50%); bottom: 28px; }
.dg .et_pb_slider.dg-slider .et-pb-controllers a { width: 36px; height: 4px; border-radius: 0; background: rgba(255,255,255,.4); }
.dg .et_pb_slider.dg-slider .et-pb-controllers a.et-pb-active-control { background: #fff; }
@media (max-width: 980px) { .dg .et_pb_slider.dg-slider .et_pb_slide_title { font-size: 44px !important; } }
@media (max-width: 767px) {
	.dg .et_pb_slider.dg-slider, .dg .et_pb_slider.dg-slider .et_pb_slide { min-height: 480px; }
	.dg .et_pb_slider.dg-slider .et_pb_container { height: 480px !important; }
	.dg .et_pb_slider.dg-slider .et_pb_slide_title { font-size: 32px !important; }
}

/* Video */
.dg .et_pb_video { background: #1A1411; }
.dg .dg-video { margin: 24px 0; aspect-ratio: 16/9; background: #1A1411; }
.dg .dg-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==================================================================== 5. Header, footer, call bar */

/* Top bar: phone and email on tablets and desktops. On phones the call bar at the bottom does this job. */
body.dg #page-container { padding-top: 0 !important; margin-top: 0 !important; }
body.dg #top-header { position: relative !important; top: auto !important; background: var(--dg-red-d) !important; font-family: var(--dg-sans); font-size: var(--dg-fs-xs); }
.dg #top-header, .dg #top-header a, .dg #top-header .et-social-icon a { color: #fff !important; }
.dg #top-header .container { width: var(--dg-wrap); max-width: none; padding-top: 10px; }
.dg #et-info { padding-bottom: 10px; }
.dg #et-info-phone { margin-right: 26px; }
.dg #et-info-phone::before, .dg #et-info-email::before { display: none; }
@media (max-width: 980px) {
	.dg #et-info a, .dg #et-info span { display: inline-flex; align-items: center; min-height: 44px; }
	.dg #top-header .container { padding-top: 0; }
	.dg #et-info { padding-bottom: 0; }
}
@media (max-width: 767px) { body.dg #top-header { display: none !important; } }

/* Main header: white, sticks to the top */
body.dg #main-header { position: sticky !important; top: 0 !important; z-index: 99; background: #fff; box-shadow: none; border-bottom: 1px solid var(--dg-line); }
body.dg.admin-bar #main-header { top: 32px !important; }
.dg #main-header .container { width: var(--dg-wrap); max-width: none; }
.dg .logo_container img#logo { max-height: 78% !important; }
.dg #main-header.et-fixed-header .logo_container img#logo { max-height: 92% !important; }
.dg #top-menu li { padding-right: 6px; }
.dg #top-menu > li > a { font-family: var(--dg-sans); font-weight: 600; font-size: 15px; color: var(--dg-ink); letter-spacing: .02em; padding: 0 8px 33px; }
.dg #top-menu > li.current-menu-item > a, .dg #top-menu > li.current-menu-ancestor > a, .dg #top-menu > li > a:hover { color: var(--dg-red) !important; opacity: 1; }
.dg #top-menu > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--dg-red); }
.dg #top-menu li.menu-cta { padding-left: 10px; padding-right: 0; }
.dg #top-menu li.menu-cta > a { background: var(--dg-red); color: #fff !important; padding: 15px 22px !important; border-radius: 2px; font-size: 15px; font-weight: 600; letter-spacing: .01em; margin-top: -15px; }
.dg #top-menu li.menu-cta > a:hover { background: var(--dg-red-d); color: #fff !important; }
.dg .nav li ul { border-top: 3px solid var(--dg-red); box-shadow: 0 14px 30px rgba(31,27,24,.12); }
.dg .nav li ul a { font-family: var(--dg-sans); font-size: 15px; color: var(--dg-ink); }
@media (max-width: 980px) { .dg #top-menu li.menu-cta { display: none; } }

/* Phone and tablet menu */
.dg .mobile_menu_bar::before { color: var(--dg-ink) !important; }
.dg .et_mobile_menu { border-top: 3px solid var(--dg-red); background: var(--dg-red-d) !important; max-height: calc(100dvh - 81px); overflow-y: auto; overscroll-behavior: contain; }
.dg .et_mobile_menu li a { color: #fff !important; font-family: var(--dg-serif); font-size: 24px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12); padding: 12px 5%; }
.dg .et_mobile_menu li li a { font-family: var(--dg-sans); font-size: 16px; font-weight: 400; color: #E2D9CB !important; }
.dg .et_mobile_menu li.menu-cta a { background: #fff; color: var(--dg-red-d) !important; font-family: var(--dg-sans); font-size: 16px; font-weight: 600; text-align: center; margin: 14px 5% 4px; }
@media (max-width: 767px) { .dg .et_mobile_menu { max-height: calc(100dvh - 140px); } }

/* Footer on veld green */
.dg #main-footer { background: var(--dg-green); }
.dg #main-footer .container { width: var(--dg-wrap); max-width: none; }
.dg #footer-widgets { padding: 88px 0 40px; }
.dg #footer-widgets .footer-widget, .dg #footer-widgets .footer-widget p, .dg #footer-widgets .footer-widget li { color: #DCD6C8; font-size: var(--dg-fs-sm); font-family: var(--dg-sans); }
.dg #footer-widgets .footer-widget a { color: #F1E9DE; }
.dg #footer-widgets .footer-widget a:hover { color: #fff; text-decoration: underline; }
.dg #footer-widgets .footer-widget h4, .dg #footer-widgets .footer-widget .title { font-family: var(--dg-serif); font-style: italic; font-size: 22px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dg-gold); padding-bottom: 8px; margin-bottom: 14px !important; }
.dg #footer-widgets .footer-widget li { padding-left: 0; }
.dg #footer-widgets .footer-widget li::before { display: none; }
.dg #footer-widgets .brand { display: inline-block; }
.dg #footer-widgets .brand img { height: 92px; width: auto; display: block; }
.dg #footer-bottom { background: var(--dg-green-d); border-top: 0; }
.dg #footer-info, .dg #footer-info a { color: #C9C3B4; font-family: var(--dg-sans); font-size: var(--dg-fs-xs); text-wrap: pretty; }
.dg #footer-bottom .et-social-icon a { color: #F1E9DE; }
@media (max-width: 767px) {
	.dg #footer-widgets { padding: 48px 0 16px; }
	.dg #footer-widgets .footer-widget { margin-bottom: 28px !important; }
	.dg #footer-widgets .brand img { height: 72px; }
	/* the page list in two columns, so the footer isn't a long scroll */
	.dg #footer-widgets .footer-widget:nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Phone call bar (added by the child theme) */
.dg-callbar { display: none; }
@media (max-width: 767px) {
	body.dg { padding-bottom: 60px; }
	.dg-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: var(--dg-red-d); box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
	.dg-callbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60px; color: #fff !important; text-decoration: none; font-family: var(--dg-sans); font-weight: 600; font-size: 16px; }
	.dg-callbar a + a { border-left: 1px solid rgba(255,255,255,.2); }
}

/* ==================================================================== 6. Page types */

/* Photo heroes: the photo is an image in the text module, stretched behind a dark scrim */
.dg .et_pb_section.dg-hero { position: relative; min-height: 780px; display: flex; align-items: flex-end; padding: 0 0 var(--dg-sec); background-color: #2A221C; background-size: cover; background-position: center; }
.dg .et_pb_section.dg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,9,.3) 0%, rgba(18,12,9,.58) 38%, rgba(18,12,9,.9) 100%); z-index: 1; pointer-events: none; }
.dg .et_pb_section.dg-hero > .et_pb_row, .dg .dg-hero .et_pb_column, .dg .dg-hero .et_pb_module, .dg .dg-hero .et_pb_text_inner { position: static; }
.dg .dg-hero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; }
.dg .dg-hero .hero-copy { position: relative; z-index: 2; }
.dg .dg-hero, .dg .dg-hero p, .dg .dg-hero .et_pb_text { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.dg .dg-hero .eyebrow { font-size: 24px; color: #F3DDBA; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.55); }
.dg .dg-hero p.intro { font-size: var(--dg-fs-lead); max-width: 640px; color: #F1E9DE; margin: 22px 0 36px; }
.dg .dg-hero .crumbs { color: #E2D9CB; }
.dg .dg-hero .crumbs a { color: #fff; }
.dg .et_pb_section.dg-hero.dg-page-hero { min-height: 460px; padding-bottom: 64px; }
@media (min-width: 981px) { .dg .et_pb_section.dg-hero:not(.dg-page-hero) { min-height: 640px; } }
@media (max-width: 980px) { .dg .et_pb_section.dg-hero { min-height: 640px; } }
@media (max-width: 767px) {
	.dg .et_pb_section.dg-hero { min-height: 560px; padding-bottom: 48px; }
	.dg .et_pb_section.dg-hero.dg-page-hero { min-height: 380px; padding-bottom: 40px; }
	.dg .dg-hero .eyebrow { font-size: 20px; }
	.dg .dg-hero p.intro { margin: 16px 0 28px; }
	.dg .dg-hero img.hero-img { object-position: var(--pm, var(--pd, center)) !important; }
}

/* Plain title band (no photo) */
.dg .et_pb_section.dg-title { background: #fff; border-bottom: 1px solid var(--dg-line); padding: 72px 0 48px; }

/* News articles */
.dg.single-post #main-content { background: var(--dg-cream); }
.dg.single-post #left-area { width: 100% !important; float: none; padding: 0 !important; }
.dg.single-post #main-content .container { padding-top: 64px; }
.dg.single-post .et_pb_post, .dg.single-post .et_post_meta_wrapper, .dg.single-post .entry-content { max-width: 740px; margin-left: auto; margin-right: auto; }
.dg.single-post .et_post_meta_wrapper h1.entry-title { font-family: var(--dg-serif); font-size: 52px; line-height: 1.08; font-weight: 600; color: var(--dg-ink); padding-bottom: 12px; }
.dg.single-post .et_post_meta_wrapper .post-meta { font-family: var(--dg-sans); font-size: var(--dg-fs-xs); font-weight: 700; color: var(--dg-red); margin-bottom: 28px; }
.dg.single-post .et_post_meta_wrapper .post-meta a, .dg.single-post #left-area .post-meta a { color: var(--dg-red); }
.dg.single-post .et_post_meta_wrapper > img { width: 100%; height: auto; max-height: 620px; object-fit: cover; margin: 0 0 36px; display: block; }
.dg.single-post .et_post_meta_wrapper > img[src*="primeston_small"], .dg.single-post .et_post_meta_wrapper > img[src*="logo"] { object-fit: contain; max-height: 220px; background: #fff; padding: 24px; border: 1px solid var(--dg-line); }
.dg.postid-966 .et_post_meta_wrapper > img, .dg.postid-945 .et_post_meta_wrapper > img { display: none; }
.dg.single-post .entry-content { padding-top: 0 !important; color: var(--dg-ink); }
.dg.single-post .entry-content, .dg.single-post .entry-content p, .dg.single-post .entry-content li { font-size: var(--dg-fs-article); line-height: 1.7; }
.dg.single-post .entry-content > :first-child { margin-top: 0 !important; }
.dg.single-post .entry-content p:empty, .dg.single-post .entry-content h2:empty, .dg.single-post .entry-content h3:empty { display: none; }
.dg.single-post .entry-content h2, .dg.single-post .entry-content h3, .dg.single-post .entry-content h4 { font-family: var(--dg-serif); font-weight: 600; color: var(--dg-ink); line-height: 1.15; margin: 40px 0 12px; padding: 0; }
.dg.single-post .entry-content h2 { font-size: 36px; }
.dg.single-post .entry-content h3 { font-size: 30px; }
.dg.single-post .entry-content h4 { font-size: var(--dg-h4); margin: 28px 0 8px; }
.dg.single-post #left-area .entry-content ul, .dg.single-post #left-area .entry-content ol { padding: 0 0 0 1.3em; margin: 0 0 20px; }
.dg.single-post .entry-content li { margin-bottom: 8px; }
.dg.single-post .entry-content li:last-child { margin-bottom: 0; }
.dg.single-post .entry-content p.dg-source { font-size: var(--dg-fs-xs); line-height: 1.5; color: var(--dg-muted); margin: 0 0 6px; }
.dg.single-post .entry-content p.dg-source + p.dg-source { border-top: 0; padding-top: 0; }
/* Article photos: wide photos fill the reading column; small old photos stay their size, centred */
.dg.single-post .entry-content img { display: block; max-width: 100% !important; height: auto !important; margin: 28px auto !important; }
.dg.single-post .entry-content img.dg-wide { width: 100% !important; }
.dg.single-post .entry-content p:has(> img:only-child), .dg.single-post .entry-content p:has(> a:only-child > img) { margin: 28px 0; }
.dg.single-post .entry-content p:has(> img:only-child) > img, .dg.single-post .entry-content p:has(> a:only-child > img) img { margin: 0 auto !important; }
.dg.single-post .entry-content a > img { display: block; }
.dg.single-post .entry-content .wp-caption, .dg.single-post .entry-content img.alignleft, .dg.single-post .entry-content img.alignright,
.dg.single-post .entry-content img.aligncenter, .dg.single-post .entry-content figure { float: none !important; width: auto !important; max-width: 100% !important; margin: 28px 0 !important; padding: 0 !important; background: none; border: 0; }
.dg.single-post .entry-content .wp-caption img { width: 100% !important; margin: 0 !important; }
.dg.single-post .entry-content .wp-caption-text, .dg.single-post .entry-content figcaption { font-size: var(--dg-fs-xs); color: var(--dg-muted); text-align: left; padding: 10px 0 0; margin: 0; }
.dg.single-post .entry-content .dg-video { margin: 32px 0; }
/* Article tables */
.dg.single-post .entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border: 1px solid var(--dg-line); }
.dg.single-post .entry-content td, .dg.single-post .entry-content th { padding: 10px 14px; border-bottom: 1px solid var(--dg-line); font-size: var(--dg-fs-sm); text-align: left; vertical-align: top; }
.dg.single-post .entry-content table td:first-child { font-weight: 600; }
.dg.single-post .entry-content .tblwrap { overflow-x: auto; }
.dg.single-post .entry-content .tblwrap table { margin: 0; min-width: 0; }
.dg.single-post .entry-content table.dg-compare th:nth-child(2), .dg.single-post .entry-content table.dg-compare td:nth-child(2) { background: #F8EFE6; color: var(--dg-red-d); font-weight: 700; }
/* Article footer call to action */
.dg .dg-postfoot { margin: 56px 0 72px; padding: 32px; background: #fff; border: 1px solid var(--dg-line); border-top: 4px solid var(--dg-red); display: grid; gap: 18px; }
.dg .dg-postfoot p { margin: 0; font-size: var(--dg-fs) !important; }
.dg .dg-postfoot .btns { gap: 12px; }
@media (max-width: 767px) {
	.dg.single-post #main-content .container { padding-top: 32px; width: var(--dg-wrap); }
	.dg.single-post .et_post_meta_wrapper h1.entry-title { font-size: 34px; }
	.dg.single-post .et_post_meta_wrapper > img { margin-bottom: 24px; }
	.dg.single-post .entry-content h2 { font-size: 28px; }
	.dg.single-post .entry-content h3 { font-size: 24px; }
	.dg.single-post .entry-content td, .dg.single-post .entry-content th { font-size: var(--dg-fs-xs); padding: 8px 10px; }
	.dg .dg-postfoot { padding: 24px 20px; margin: 40px 0 48px; }
}

/* Category archives (e.g. Why Shorthorns) */
.dg .dg-archive-head { background: var(--dg-sand); padding: 72px 0 56px; }
.dg .dg-archive-inner { width: var(--dg-wrap); margin: 0 auto; }
.dg .dg-archive-head .h1 { font-size: 64px; margin: 0; }
.dg .dg-archive-head .lead p { font-size: inherit; color: inherit; margin: 0; }
.dg.archive #main-content { background: var(--dg-cream); }
.dg.archive #main-content .container { width: var(--dg-wrap); max-width: none; padding-top: 56px; }
.dg.archive #left-area { width: 100% !important; float: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dg.archive #left-area > .et_pb_post { background: #fff; border: 1px solid var(--dg-line); margin: 0; padding: 0 24px 24px; display: flex; flex-direction: column; font-size: var(--dg-fs-sm); color: var(--dg-muted); }
.dg.archive #left-area > .et_pb_post .entry-featured-image-url { margin: 0 -24px 20px; display: block; }
.dg.archive #left-area > .et_pb_post .entry-featured-image-url img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.dg.archive #left-area > .et_pb_post h2.entry-title { font-family: var(--dg-serif); font-size: var(--dg-h4); line-height: 1.15; padding: 0; margin: 0; }
.dg.archive #left-area > .et_pb_post h2.entry-title a { color: var(--dg-ink); }
.dg.archive #left-area > .et_pb_post .post-meta { padding: 8px 0 0; margin-bottom: 10px; font-size: var(--dg-fs-xs); font-weight: 600; color: var(--dg-muted); }
.dg.archive #left-area > .et_pb_post > p, .dg.archive #left-area > .et_pb_post .post-content { padding: 0; font-size: var(--dg-fs-sm); color: var(--dg-muted); }
.dg.archive #left-area .pagination, .dg.archive #left-area > .pagination { grid-column: 1 / -1; }
@media (max-width: 980px) { .dg.archive #left-area { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dg .dg-archive-head .h1 { font-size: 46px; } }
@media (max-width: 767px) { .dg.archive #left-area { grid-template-columns: 1fr; gap: var(--dg-gap); } .dg .dg-archive-head { padding: 44px 0 36px; } .dg .dg-archive-head .h1 { font-size: 38px; } }
/* Herd Sires: cards with a photo first, so cards without one sit together at the end of a grid */
.dg .dg-sirecards .card.noimg { order: 1; }
/* Small print under the newsletter and contact forms, and the privacy notice page */
.dg .dg-fineprint { font-size: var(--dg-fs-xs); line-height: 1.5; color: var(--dg-muted); max-width: var(--dg-measure); margin: 12px 0 0; padding: 0; }
.dg .dg-fineprint a { color: inherit; text-decoration: underline; }
.dg .dg-prose { max-width: var(--dg-measure); }
.dg .dg-prose > .lead { margin: 0 0 8px; }
body.dg .dg-prose h2 { margin: 40px 0 10px; padding: 0; }
.dg .dg-prose ul { margin: 0 0 16px 1.2em; padding: 0; list-style: disc; }
.dg .dg-prose li { margin: 6px 0; padding: 0; }
