/*
  OfferToOwned blog styles. Loaded AFTER /styles.css and reuses its variables
  (--ink, --copper, --paper, --line, fonts...). System fonts only, no third-party requests.
  Nothing here changes styles.css; every rule is scoped to blog classes or to .article.
*/

.page-article,
.page-blog-index {
  width: min(44rem, calc(100% - 2.5rem));
}

.crumbs {
  margin: 1.5rem 0 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--copper-deep);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--copper);
  text-decoration: underline;
}

.article .eyebrow {
  margin-bottom: 0.6rem;
}

.article h1 {
  font-size: clamp(1.9rem, 5.4vw, 2.8rem);
}

.byline,
.post-meta {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.article p,
.article li {
  color: var(--ink);
}

.article p {
  margin: 0 0 1.05rem;
}

.article h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article h3 {
  margin: 1.6rem 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article ul,
.article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article a,
.post-list a {
  color: var(--copper-deep);
  text-underline-offset: 0.15em;
}

.article a:hover,
.post-list a:hover {
  color: var(--copper);
}

.article blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
}

/* Visible educational-not-advice notice */
.disclaimer {
  margin: 1.25rem 0 1.6rem;
  padding: 0.85rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 10px;
  font-size: 0.95rem;
}

.disclaimer p {
  margin: 0;
  color: var(--ink-soft);
}

.article .disclaimer p {
  color: var(--ink-soft);
  margin: 0;
}

/* Tables */
.table-wrap {
  margin: 1.2rem 0 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article th,
.article td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article thead th {
  background: var(--bg-deep);
  font-weight: 600;
}

.article tbody tr:last-child td {
  border-bottom: 0;
}

/* Worksheet call to action */
.cta-card {
  margin: 2.2rem 0;
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article .cta-card h2,
.cta-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
}

.cta-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

a.cta-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--ink);
  color: #f8f1e6;
  font-weight: 600;
  text-decoration: none;
}

.article a.cta-button {
  color: #f8f1e6;
}

a.cta-button:hover,
.article a.cta-button:hover {
  background: var(--copper-deep);
  color: #f8f1e6;
}

a.cta-button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.cta-placeholder-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
}

/* Sources */
.sources {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.article .sources h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.sources p,
.sources li {
  color: var(--ink-soft);
}

.sources li {
  overflow-wrap: anywhere;
}

.more-reading {
  margin-top: 2rem;
}

.article .more-reading h2 {
  font-size: 1.15rem;
}

.more-reading ul {
  margin-bottom: 0;
}

/* Blog index */
.page-blog-index .hero {
  padding-bottom: 0.5rem;
}

.post-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.post-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.post-item p {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}

.post-item .post-meta {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--copper-deep);
}

@media (max-width: 560px) {
  .page-article,
  .page-blog-index {
    width: min(44rem, calc(100% - 1.75rem));
  }
}
