/* UR-Amazing Articles: small add-on to /css/styles.css and /css/pages.css.
   Uses the site's own design tokens (colors, fonts, radii, shadows). */

.article-hero { padding-bottom: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.article-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.8rem); max-width: 20ch; margin-inline: auto; overflow-wrap: break-word; }
.article-hero .eyebrow a { color: inherit; }
.article-byline { color: var(--ink-soft); font-weight: 600; font-size: .98rem; margin-top: .4rem; }
.article-byline span + span::before { content: "\00B7"; margin: 0 .55em; color: var(--ink-faint); }

.article-wrap { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article-cover { margin: 0 0 2.2rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: var(--sand); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.prose { font-size: clamp(1.04rem, 1rem + .25vw, 1.15rem); line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.18; margin-top: 2.6rem; }
.prose h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.25; margin-top: 1.8rem; color: var(--ink); }
.prose h2 + p, .prose h3 + p, .prose h3 + ol, .prose h3 + ul, .prose h2 + ul, .prose h2 + ol, .prose h2 + table, .prose h2 + h3 { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .45rem; padding-left: .2rem; }
.prose li::marker { color: var(--sunrise-ink); font-weight: 800; }
.prose a { color: var(--sunrise-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral-soft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--coral); }
.prose b, .prose strong { font-weight: 800; }
.prose blockquote { border-left: 5px solid var(--sunrise); background: var(--champagne); padding: 1rem 1.3rem; border-radius: var(--r-sm); font-family: var(--font-display); font-style: italic; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .97rem; line-height: 1.5; border-radius: var(--r-sm); }
.prose thead th { background: var(--champagne); color: var(--ink); text-align: left; font-weight: 800; }
.prose th, .prose td { padding: .7rem .85rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--cream); }

.article-question { margin-top: 2.8rem; padding: 1.6rem 1.7rem; border-radius: var(--r-lg); background: var(--grad-dawn); border-left: 6px solid var(--coral); box-shadow: var(--sh-sm); }
.article-question .eyebrow { margin-bottom: .5rem; }
.article-question p { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .8vw, 1.65rem); line-height: 1.35; color: var(--ink); font-weight: 500; }

.article-cta { margin-top: 2rem; text-align: center; }
.article-cta .btn { max-width: 100%; white-space: normal; }

.article-more { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--sand); }
.article-more h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1rem; }
.article-more ul { display: grid; gap: .6rem; }
.article-more li a { display: block; padding: .85rem 1.1rem; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--sh-sm); font-weight: 700; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.article-more li a:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--sunrise-ink); }
.article-network { margin-top: 2rem; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.article-network a { color: var(--sunrise-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Articles index */
.article-list { display: grid; gap: clamp(1.4rem, 1rem + 2vw, 2.2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .article-list { grid-template-columns: 1fr; } }
.article-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.article-card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex-grow: 1; }
.article-card h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.2; }
.article-card h2 a { color: var(--ink); }
.article-card h2 a:hover { color: var(--sunrise-ink); }
.article-card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.article-card .meta { font-size: .85rem; font-weight: 700; color: var(--ink-faint); letter-spacing: .02em; }
.article-card .btn-link { margin-top: auto; }
