/* Public Learn section: the article hub and the articles themselves.
   Namespaced .art-* so nothing here touches the student area. */

.art-hero .lead { max-width: 64ch; }
.art-hero__meta { margin-top: 1rem; color: var(--muted); font-size: .95rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.art-body { min-width: 0; font-size: 1.06rem; line-height: 1.7; color: var(--body); }
.art-body h2 { margin-top: 2.4rem; font-size: 1.55rem; color: var(--ink); scroll-margin-top: 90px; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { margin-top: 1.8rem; font-size: 1.15rem; color: var(--ink); }
.art-body p { margin: .9rem 0; }
.art-body ul, .art-body ol { margin: .9rem 0 .9rem 1.3rem; }
.art-body li { margin: .35rem 0; }
.art-body b.so, .art-body .so { font-family: Poppins, Inter, sans-serif; font-weight: 600; color: var(--primary); }

.art-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; }
.art-table th, .art-table td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.art-table th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.art-table td.n { width: 3.2rem; color: var(--accent-dark); font-weight: 700; font-family: Poppins, Inter, sans-serif; }
.art-table td.so { font-family: Poppins, Inter, sans-serif; font-weight: 600; color: var(--primary); font-size: 1.08rem; white-space: nowrap; }
.art-table td.en { color: var(--muted); }
.art-table td.play { width: 2.6rem; text-align: right; }
.art-table .alt { color: var(--muted); font-weight: 500; font-size: .9rem; margin-left: .4rem; }
.art-table--tight td, .art-table--tight th { padding: .45rem .6rem; }
@media (max-width: 640px) { .art-table td.so { white-space: normal; } }

.say { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; vertical-align: middle; transition: background .15s, border-color .15s; }
.say svg { width: 1rem; height: 1rem; fill: currentColor; }
.say:hover, .say:focus-visible { background: var(--primary-light); border-color: var(--primary); }
.say.is-playing { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.say[disabled] { opacity: .35; cursor: default; }

.art-rule { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.art-rule b { color: var(--accent); }
.art-rule p { margin: .3rem 0; color: #dfe5ee; }
.art-rule p:first-child { color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 600; font-size: 1.08rem; }

.art-note { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .9rem 1.1rem; margin: 1.4rem 0; }
.art-note p { margin: .3rem 0; }

.art-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.art-pair { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; background: #fff; }
.art-pair b { display: block; font-family: Poppins, Inter, sans-serif; font-size: 1.25rem; color: var(--primary); }
.art-pair span { color: var(--muted); font-size: .92rem; }
.art-pair i { display: block; font-style: normal; font-size: .82rem; color: var(--accent-dark); font-weight: 600; margin-top: .2rem; }

.art-side { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.art-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.art-card img { display: block; width: 100%; height: auto; }
.art-card__body { padding: 1rem 1.1rem 1.1rem; }
.art-card__body h3 { font-size: 1rem; margin: 0 0 .4rem; }
.art-card__body p { margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }
.art-card__body .btn { width: 100%; justify-content: center; }
.art-links { list-style: none; margin: 0; padding: 0; }
.art-links li { border-top: 1px solid var(--line); }
.art-links li:first-child { border-top: 0; }
.art-links a { display: block; padding: .6rem 0; color: var(--primary); text-decoration: none; font-weight: 600; font-size: .95rem; }
.art-links a:hover { color: var(--accent-dark); }
.art-links small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

.art-faq { margin-top: 2.4rem; }
.art-faq .faq { max-width: none; margin: 0; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.art-tile { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.art-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.art-tile__img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.art-tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.art-tile__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.art-tile__body .eyebrow { margin: 0; }
.art-tile__body h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.art-tile__body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.art-tile__body span { color: var(--primary); font-weight: 600; font-size: .92rem; }

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; }
  .art-card img { max-height: 420px; object-fit: cover; object-position: top; }
}
