/*
 * The tutornudge look: a friendly indigo-to-violet speech bubble, a pop of
 * orange "nudge", soft rounded type and chunky, pressable controls.
 *
 * Plain CSS on purpose. There is no build step, no framework and no component
 * abstraction to learn, so Shield can restyle this application by editing this
 * one file and the Blade templates.
 *
 * Everything visual is driven by the custom properties below.
 */

:root {
    --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;

    /* Brand: the logo's bubble, wordmark and spark. */
    --brand-ink: #1a1a2e;
    --brand-indigo: #5a4fd8;
    --brand-violet: #5b21b6;
    --brand-orange: #f4a21e;
    --brand-orange-deep: #c97a00;
    --brand-gradient: linear-gradient(135deg, #6a5ae0 0%, #5a3fd0 45%, #5b21b6 100%);

    /* Neutrals are warm stone, so purple is kept for what matters: the
       brand, buttons, links and highlights. */
    --color-page: #f8f6f2;
    --color-surface: #ffffff;
    --color-text: var(--brand-ink);
    --color-muted: #625e58;
    --color-border: #e7e2d9;
    --color-stone: #f3efe8;
    --color-stone-deep: #e9e3d8;
    --color-stone-line: #ddd5c7;
    --color-accent: #5a3fd0;
    --color-accent-text: #ffffff;
    --color-accent-soft: #eeeaff;
    --color-spark: var(--brand-orange);
    --color-spark-soft: #fff3dc;
    --color-danger: #c42b4b;
    --color-danger-soft: #fdebef;
    --color-success: #14805a;
    --color-success-soft: #e3f6ee;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(42, 30, 110, 0.06), 0 2px 8px rgba(42, 30, 110, 0.04);
    --shadow-md: 0 10px 28px rgba(42, 30, 110, 0.12);
    --shadow-lg: 0 24px 56px rgba(42, 30, 110, 0.2);
    --shadow-press: 0 4px 0 #3b1d92;

    --space: 1rem;
    --container: 68rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-page);
    /* A few soft bubbles drifting behind everything. */
    background-image:
        radial-gradient(circle at 8% 12%, rgba(106, 90, 224, 0.05) 0, transparent 22rem),
        radial-gradient(circle at 92% 30%, rgba(244, 162, 30, 0.08) 0, transparent 18rem);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}

h1 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 var(--space);
}

a {
    color: var(--color-accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(90, 63, 208, 0.35);
}

a:hover {
    text-decoration-color: var(--color-spark);
}

::selection {
    background: var(--color-spark);
    color: var(--brand-ink);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--color-spark);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.muted {
    color: var(--color-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-muted);
}

.stack > * + * {
    margin-top: var(--space);
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 10;
}

/* The brand gradient as a thin ribbon along the top of every page. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #6a5ae0, #5b21b6 70%, var(--brand-orange));
}

/* The header spans the whole window: logo hard left, menu hard right,
   whatever width the page content below it is. */
.site-header__inner.container,
.site-footer__inner.container {
    max-width: none;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-text);
    text-decoration: none;
}

.brand img {
    max-height: 2.4rem;
    width: auto;
    transform-origin: 8% 70%;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* A little nudge when you point at the logo. */
.brand:hover img {
    transform: rotate(-3deg) scale(1.04);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.site-nav a,
.site-nav button {
    color: var(--color-muted);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.site-nav a:hover,
.site-nav button:hover {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.site-nav a[aria-current="page"] {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 4px 12px rgba(90, 63, 208, 0.3);
}

.site-nav__rule {
    display: block;
    width: 1px;
    height: 1.15em;
    flex: 0 0 1px;
    background: var(--color-muted);
}

/* ---------------------------------------------------------------- content */

main {
    flex: 1 0 auto;
    padding-block: 2.5rem 3.5rem;
}

.page-header {
    margin-bottom: 1.75rem;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    background-image: radial-gradient(circle at 100% 0, var(--color-spark-soft) 0, transparent 14rem);
    padding-block: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

/* ---------------------------------------------------------------- panels */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

a.card,
.card--lift {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

a.card:hover,
.card--lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card + .card,
.grid + .card {
    margin-top: 1.25rem;
}

.card__title {
    margin-bottom: 0.25rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.stat {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.stat::after {
    content: "";
    position: absolute;
    top: -1.75rem;
    right: -1.75rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
}

.grid > .stat:nth-child(3n + 2)::after {
    background: var(--color-spark-soft);
}

.stat__value {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat__label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.stat__hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.stat__label a {
    color: inherit;
}

/* ---------------------------------------------------------------- hero */

.hero {
    display: grid;
    align-content: center;
    max-width: 34rem;
    /* Fills the space between header and footer so the message sits centred. */
    min-height: max(16rem, calc(100svh - 20rem));
    margin-inline: auto;
    padding-block: clamp(1.5rem, 1rem + 3vw, 3rem);
    text-align: center;
}

.hero__mascot {
    width: clamp(6rem, 4rem + 8vw, 9rem);
    height: auto;
    margin: 0 auto 1.25rem;
    animation: nudge-bob 3.2s ease-in-out infinite;
    filter: drop-shadow(0 14px 18px rgba(90, 63, 208, 0.25));
}

.hero__title {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

/* Wrap a word in <mark class="nudge"> to give it the wordmark's violet and orange dot. */
.nudge {
    background: none;
    color: transparent;
    background-image: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.nudge::after {
    content: ".";
    color: var(--brand-orange);
    -webkit-text-fill-color: var(--brand-orange);
}

@keyframes nudge-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-8px) rotate(-3deg); }
    60% { transform: translateY(-8px) rotate(2deg); }
}

.hero__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 0;
}

.hero__note {
    justify-self: center;
    margin: 2rem 0 0;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-orange-deep);
    background: var(--color-spark-soft);
    border-radius: 999px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------------------------------------------------------------- forms */

form {
    margin: 0;
}

.field {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.925rem;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    padding: 0.65rem 0.85rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: #d6cfc2;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(90, 63, 208, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-accent);
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 600;
}

.checkbox input {
    margin-top: 0.3rem;
}

.hint {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.error {
    display: block;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--brand-gradient);
    color: var(--color-accent-text);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-press);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s;
}

/* Pressable: lifts on hover, squashes down on click. */
.button:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #3b1d92;
}

.button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #3b1d92;
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.button--secondary {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-accent);
    box-shadow: 0 3px 0 var(--color-border);
}

.button--secondary:hover {
    border-color: #d6cfc2;
    box-shadow: 0 4px 0 #d6cfc2;
}

.button--secondary:active {
    box-shadow: 0 0 0 var(--color-border);
}

.button--spark {
    background: var(--brand-orange);
    color: var(--brand-ink);
    box-shadow: 0 4px 0 var(--brand-orange-deep);
}

.button--spark:hover {
    box-shadow: 0 5px 0 var(--brand-orange-deep);
}

.button--spark:active {
    box-shadow: 0 1px 0 var(--brand-orange-deep);
}

.button--quiet,
.button--quiet:hover,
.button--quiet:active {
    background: none;
    color: var(--color-muted);
    padding-inline: 0.5rem;
    box-shadow: none;
    transform: none;
}

.button--quiet:hover {
    color: var(--color-accent);
}

.button--danger {
    background: var(--color-danger);
    box-shadow: 0 4px 0 #8c1a33;
}

.button--danger:hover {
    box-shadow: 0 5px 0 #8c1a33;
}

.button--danger:active {
    box-shadow: 0 1px 0 #8c1a33;
}

.button--small {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

/* ---------------------------------------------------------------- messages */

.alert {
    border: 1px solid var(--color-border);
    border-left-width: 5px;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
    font-weight: 600;
    animation: alert-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alert-pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.alert--success {
    background: var(--color-success-soft);
    border-color: rgba(20, 128, 90, 0.3);
    color: var(--color-success);
}

.alert--error {
    background: var(--color-danger-soft);
    border-color: rgba(196, 43, 75, 0.3);
    color: var(--color-danger);
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.badge--spark {
    background: var(--color-spark-soft);
    color: var(--brand-orange-deep);
}

.badge--muted {
    background: var(--color-stone);
    color: var(--color-muted);
}

.badge--danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

/* ---------------------------------------------------------------- tables */

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

th {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

tbody tr {
    transition: background-color 0.12s;
}

tbody tr:hover {
    background: #faf8f4;
}

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

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    min-width: 2.2rem;
    text-align: center;
    border: 2px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.pagination a:hover {
    border-color: var(--color-accent);
}

.pagination [aria-current="page"] span,
.pagination .active span {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

/* ---------------------------------------------------------------- admin */

.admin-shell {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
    .admin-shell {
        grid-template-columns: 14rem 1fr;
    }
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.admin-nav a:hover {
    background: var(--color-surface);
    color: var(--color-accent);
    transform: translateX(3px);
}

.admin-nav a[aria-current="page"] {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(90, 63, 208, 0.25);
}

.admin-nav__heading {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin: 1rem 0 0.35rem 0.7rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.toolbar form {
    display: flex;
    gap: 0.5rem;
}

.toolbar input[type="search"] {
    min-width: 12rem;
}

/* ---------------------------------------------------------------- seo + analytics */

.search-preview {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    max-width: 40rem;
}

.search-preview__title {
    color: #1a0dab;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.15rem;
}

.search-preview__url {
    color: #006621;
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}

.search-preview__snippet {
    color: #4d5156;
    font-size: 0.9rem;
    margin: 0;
}

.search-preview__snippet--empty {
    color: var(--color-muted);
    font-style: italic;
}

.seo-image-preview {
    max-height: 8rem;
    width: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.analytics-chart {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    height: 9rem;
    margin: 1rem 0 1.5rem;
}

.analytics-chart__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.analytics-chart__bar-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Height is set in rem on each bar. Percentage heights (and flex-grow
   via a CSS variable in the flex shorthand) do not resolve on these
   flex children, so the graph was a flat line. */
.analytics-chart__bar {
    width: 100%;
    min-height: 2px;
    background: var(--brand-gradient);
    border-radius: 6px 6px 2px 2px;
}

.analytics-chart__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- centred auth pages */

.narrow {
    max-width: 26rem;
    margin-inline: auto;
}

.narrow--hint {
    max-width: 42rem;
}

.narrow .card {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-md);
}

/* Auth cards get the brand ribbon along their top edge. */
.narrow .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, #6a5ae0, #5b21b6 70%, var(--brand-orange));
}

.login-credentials {
    margin-bottom: 0;
}

.login-credentials--hint {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.login-credentials__fields .field:last-child {
    margin-bottom: 0;
}

.login-hint-bubble {
    position: relative;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.875rem;
    line-height: 1.45;
}

.login-hint-bubble p {
    margin: 0;
}

.login-hint-bubble strong {
    font-weight: 650;
}

.login-hint-bubble::before {
    content: "";
    position: absolute;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--color-accent-soft);
    transform: rotate(45deg);
}

@media (min-width: 40rem) {
    .login-credentials--hint {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
    }

    .login-hint-bubble {
        margin-top: 1.65rem;
    }

    .login-hint-bubble::before {
        top: 1.1rem;
        left: -0.3rem;
    }
}

@media (max-width: 39.99rem) {
    .login-hint-bubble::before {
        top: -0.3rem;
        left: 1.25rem;
    }
}

.form-footer {
    margin-top: 1.25rem;
    font-size: 0.925rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- error pages */

.centred {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-page__icon {
    width: 7rem;
    height: auto;
    margin-bottom: 1rem;
    animation: nudge-bob 3.2s ease-in-out infinite;
}

.error-reference {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    background: var(--color-stone);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
}

/* ---------------------------------------------------------------- tutor */

.container--wide {
    max-width: 112rem;
}

.badge--warning {
    background: var(--color-spark-soft);
    color: #8a5300;
}

.alert--info {
    background: var(--color-accent-soft);
    border-color: rgba(90, 63, 208, 0.3);
    color: var(--color-accent);
}

tr.is-removed td {
    background: var(--color-stone, #f3efe8);
}

tr.is-removed td:first-child strong {
    text-decoration: line-through;
    text-decoration-color: var(--color-danger);
}

.table-actions select {
    width: auto;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------------------------------------------------------------- a parent's children */

.children {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.child {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-page);
}

.child[open] {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.child > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
}

.child > summary::-webkit-details-marker {
    display: none;
}

.child__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.child__login {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.child__login strong {
    color: var(--color-accent);
}

.child__edit {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
}

.child[open] .child__edit {
    visibility: hidden;
}

.child__form,
.child > form:last-child {
    padding: 0 1rem 0.85rem;
}

.child__grid {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.child__delete {
    color: var(--color-danger);
}

.child-add {
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border);
}

.child-add h3 {
    margin-bottom: 0.75rem;
}

/* A child's month and year of birth, side by side. */
.child__born {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.5rem;
}
