.film-section, .analytics-tool { margin-block: 2rem; }
.film-section h2, .analytics-tool h2 { margin-top: 0; }
.film-grid, .tool-grid, .tool-fields { display: grid; gap: 1rem; }
.film-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.film-card { display: flex; flex-direction: column; }
.film-card h3 { margin: 0 0 .5rem; }
.film-card p { margin: 0 0 1rem; }
.film-card video { width: 100%; aspect-ratio: 16 / 11; border-radius: .5rem; background: var(--dark); margin-top: auto; }
.tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.tool-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); min-width: 0; }
fieldset.tool-fields { border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; }
.tool-fields label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.tool-fields input { min-width: 0; width: 100%; padding: .4rem; border: 1px solid #879b90; border-radius: .35rem; color: var(--text); background: var(--bg); }
.tool-table { margin-top: 1rem; }
.tool-table table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
.tool-table th, .tool-table td { padding: .5rem; border-bottom: 1px solid var(--line); }
.analytics-tool summary { cursor: pointer; color: var(--green); font-weight: 700; }
.course-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .4rem 1.75rem; }
.course-index a, .course-lesson details summary { color: var(--green); text-underline-offset: .16em; }
.course-index a { text-decoration: underline; }
.course-lesson { margin-block: 1rem; }
.course-lesson details { padding: .75rem 1rem; border-radius: .5rem; background: var(--panel2); }
.course-lesson summary { cursor: pointer; font-weight: 700; }
.film-card details { margin-top: .75rem; }
.film-card summary { cursor: pointer; color: var(--green); font-weight: 700; }
