/* /ib/hardest-topics/ (owner, 30 Oct 2026). The page centres every direct child at a measure with padding,
   so these rules set only what differs and keep the auto margins. */
.page > .ht-video { max-width: 340px; margin: 1.5rem auto 2rem; padding: 0; }
.ht-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #111311; box-shadow: 0 18px 40px rgba(17, 19, 17, 0.28); }
.ht-video figcaption, .ht-figures figcaption { margin-top: .5rem; font-size: .9rem; line-height: 1.35; opacity: .75; text-align: center; }
.page > .ht-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 980px; margin: 1.25rem auto 1.75rem; }
.ht-figures figure { margin: 0; }
.ht-figures img { display: block; width: 100%; height: auto; border-radius: 14px; background: #111311; }
.page > .ht-table { overflow-x: auto; margin-top: 1rem; margin-bottom: 1.75rem; }
.ht-table table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .98rem; }
.ht-table th:first-child { width: 42%; }
.page > h1 { hyphens: manual; -webkit-hyphens: manual; }
.ht-table th, .ht-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(17, 19, 17, 0.18); text-align: left; vertical-align: top; white-space: normal; min-width: 0; }
.ht-table thead th { border-bottom: 2px solid #111311; }
.ht-table tbody th { font-weight: 600; background: transparent; }
@media (max-width: 480px) { .ht-table table { font-size: .9rem; } .ht-table th, .ht-table td { padding: .5rem .45rem; } }
.page > .ht-mech, .page > .ht-eq, .page > .ht-next, .page > .ht-answer { box-sizing: border-box; width: calc(100% - 2 * var(--pad)); max-width: calc(var(--measure) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.page > .ht-mech { margin-top: 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem; border-radius: 14px; background: #111311; color: #fff4ef; font-size: 1.15rem; font-weight: 600; }
.ht-mech p { margin: .25rem 0; color: inherit; }
.ht-tag { display: inline-block; padding: .05rem .5rem; border-radius: 8px; font-size: .85rem; font-weight: 700; }
.ht-tag--fast { background: #b8e62e; color: #111311; }
.ht-tag--slow { background: #a8420c; color: #fff4ef; }
.page > .ht-eq { margin-top: 1rem; margin-bottom: 1rem; padding: .9rem 1.25rem; border: 2px solid #111311; border-radius: 14px; background: #b8e62e; color: #111311; font-size: 1.5rem; font-weight: 800; text-align: center; }
.page > .ht-answer { margin-top: .75rem; margin-bottom: 1.5rem; padding: .75rem 1rem; border: 2px solid #111311; border-radius: 12px; }
.ht-answer summary { cursor: pointer; font-weight: 700; }
.ht-answer p { margin: .6rem 0 0; }
.page > .ht-next { margin-top: 2.25rem; margin-bottom: 2.25rem; padding: 1.25rem 1.5rem; border-radius: 16px; background: #111311; color: #fff4ef; }
.ht-next h2 { margin-top: 0; color: #b8e62e; }
.ht-next p { color: inherit; }
.ht-next__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.ht-next .button:not(.button-accent) { background: transparent; color: #fff4ef; border: 2px solid #fff4ef; }
.page > .ht-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 980px; margin: 1.5rem auto 2rem; }
.ht-card { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; border: 2px solid #111311; border-radius: 16px; color: inherit; text-decoration: none; }
.ht-card img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; object-position: top; border-radius: 10px; background: #111311; }
.ht-card__subject { margin-top: .4rem; font-size: .85rem; font-weight: 700; opacity: .7; }
.ht-card strong { font-size: 1.15rem; line-height: 1.2; }
.ht-card__why { font-size: .92rem; line-height: 1.35; }
.ht-card:hover { background: rgba(184, 230, 46, 0.25); }
