.fml-editorial {
    margin-block: 16px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid #e2ddd2;
    border-top: 3px solid #e9b83e;
    border-radius: 12px;
    background: #fffcf4;
    color: #171817;
}
.fml-editorial .fml-editorial-kicker,
.fml-site-search .fml-editorial-kicker {
    margin: 0 0 6px;
    color: #614a0c;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fml-editorial h3 { margin: 0 0 10px; font-size: clamp(1.2rem, 3vw, 1.6rem); color: #171817; }
.fml-editorial h4 { margin: 16px 0 4px; font-size: 1rem; color: #24221e; }
.fml-editorial p { max-width: 72ch; margin: 0 0 9px; line-height: 1.55; }
.fml-editorial p:last-child { margin-bottom: 0; }
.fml-editorial .meta { margin-top: 14px; color: #5d574e; font-size: .88rem; }
.fml-editorial details { border-top: 1px solid #e2ddd2; margin-top: 10px; padding-top: 8px; }
.fml-editorial details summary { cursor: pointer; font-weight: 750; }
.fml-editorial .manager-stat-records { list-style: none; margin: 8px 0 0; padding: 0; }
.fml-editorial .manager-stat-records > li { padding: 10px 12px; border-bottom: 1px solid #e2ddd2; background: #fff; }
.fml-editorial .manager-record-name { font-weight: 800; }
.fml-editorial .manager-record-values { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; }
.fml-editorial .manager-record-values dt { color: #5d574e; font-size: .8rem; }
.fml-editorial .manager-record-values dd { margin: 0; font-weight: 750; }
body .fml-mobile-news-menu > .fml-mobile-menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #e4cb73;
    border-radius: 10px;
    background: #fff1bf;
    color: #15171c;
    text-decoration: none;
    font: 800 1rem/1.25 system-ui, sans-serif;
}
body .fml-mobile-news-menu > .fml-mobile-menu-search:hover {
    background: var(--fml-brand-yellow, #f7ce4d);
    color: #15171c;
}
body .fml-mobile-news-menu > .fml-mobile-menu-search:focus-visible {
    color: #15171c;
    outline: 2px solid #765504;
    outline-offset: 2px;
}
.fml-mobile-menu-search::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-inline: auto 4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}
.fml-desktop-menu-search svg, .fml-mobile-menu-search svg { display: block; flex: none; }
.elementskit-navbar-nav .fml-desktop-menu-search { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.fml-site-search { width: min(100% - 32px, 950px); margin: clamp(20px, 5vw, 56px) auto; color: #171817; }
.fml-site-search header {
    padding: clamp(20px, 5vw, 42px);
    border: 1px solid #e2ddd2;
    border-top: 4px solid #e9b83e;
    border-radius: 14px;
    background: #fffcf4;
}
.fml-site-search h1 { margin: 0 0 10px; color: #171817; font-size: clamp(2rem, 8vw, 3.75rem); line-height: 1.04; }
.fml-site-search h2 { margin: 24px 0 10px; font-size: 1.3rem; }
.fml-site-search h3 { margin: 0; font-size: 1.15rem; }
.fml-site-search form { margin-top: 24px; }
.fml-site-search label { display: block; margin-bottom: 5px; font-weight: 700; }
.fml-site-search form div { display: flex; flex-wrap: wrap; gap: 8px; }
.fml-site-search input[type="search"] {
    flex: 1 1 18rem;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #8b8272;
    border-radius: 8px;
    background: #fff;
    color: #171817;
    font-size: 1rem;
}
.fml-site-search button { padding: 10px 18px; border: 0; border-radius: 8px; background: #f1cd50; color: #171817; font-weight: 800; cursor: pointer; }
.fml-site-search ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fml-site-search li { padding: 13px 17px; border: 1px solid #e2ddd2; border-radius: 8px; background: #fff; }
.fml-site-search li p { margin: 5px 0 0; }
.fml-site-search li a { color: #171817 !important; text-decoration: underline; text-decoration-color: #b78a19; text-underline-offset: 3px; }
.fml-site-search :focus-visible { outline: 2px solid #815a00; outline-offset: 3px; }

.fml-season-profile .fml-season-overview-facts { grid-template-columns: repeat(auto-fit, minmax(min(32%, 130px), 1fr)); }
.fml-season-profile .fml-season-overview-facts > div { border: 1px solid var(--season-line); border-width: 0 0 1px 1px; }
.fml-scout-panel .manager-record-values details ul, .scout-panel .manager-record-values details ul { padding-inline-start: 18px; margin: 6px 0 0; }

.fml-home-week {
    margin-top: 14px;
    padding: clamp(14px, 3vw, 24px);
    border: 1px solid #e2ddd2;
    border-radius: 12px;
    background: #fffcf4;
}
.fml-home-week .fml-home-section-head { margin: 0 0 10px; }
.fml-home-week h3, .fml-home-week h4, .fml-home-week p { margin: 0; }
.fml-home-week-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px 24px; }
.fml-home-week-columns ul { list-style: none; padding: 0; margin: 4px 0 0; }
.fml-home-week-columns li { border-top: 1px solid #e2ddd2; }
.fml-home-week-columns li a { display: grid; gap: 2px; padding: 10px 0; color: #171817 !important; text-decoration: none; }
.fml-home-week-columns li a:hover strong { text-decoration: underline; text-decoration-color: #af8518; text-underline-offset: 3px; }
.fml-home-week-columns li span { color: #5d574e; font-size: .86rem; }

.fml-bank-recovery-dialog {
    width: min(500px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    margin: auto;
    padding: clamp(18px, 3vw, 28px);
}
.fml-bank-recovery-dialog::backdrop { background: rgb(19 19 17 / .66); }
.fml-bank-recovery-dialog form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.fml-bank-recovery-dialog form a, .fml-bank-recovery-dialog form button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #c6b170;
    border-radius: 8px;
    color: #171817 !important;
    background: #f1cd50;
    font-size: .93rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.fml-bank-recovery-dialog form button { background: #fff; }

.fml-public-card.fml-u21-builder { border: 1px solid #e2ddd2; border-top: 3px solid #e9b83e; border-radius: 12px; background: #fffcf4; }
.fml-u21-builder h4 { color: #171817; }
.fml-u21-draft { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; }
.fml-u21-draft p { margin: 3px 0 0; color: #52504b; }
.fml-u21-builder button[name="team_creation_intent"] { min-height: 44px; color: #171817 !important; border: 1px solid #c9aa4e !important; background: #f1cd50 !important; border-radius: 7px; }
.fml-u21-builder button[value="draft"] { background: #fff !important; }
.fml-u21-builder-list { display: grid; gap: 7px; }
.fml-u21-player { border: 1px solid #e2ddd2; border-radius: 8px; background: white; scroll-margin-top: 8rem; }
.fml-u21-player:target { border-color: #ad7b16; }
.fml-u21-player > summary { min-height: 44px; padding: 10px 12px; cursor: pointer; color: #171817; }
.fml-u21-player > summary strong { margin-inline-end: 8px; }
.fml-u21-player > summary span { color: #5d574e; font-size: .85rem; margin-inline-end: 8px; }
.fml-u21-player-fields { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 8px 12px; }
.fml-u21-player-fields label { color: #171817; font-weight: 650; min-width: 0; }
.fml-u21-player-fields label > :is(input:not([type=checkbox]),select) { display: block; width: 100%; min-height: 42px; background: white; border-color: #aaa298; }
.fml-u21-no-id { align-self: center; }
.fml-u21-age { margin: 0; color: #5d574e; }
.fml-u21-builder .fml-team-creation-actions { margin-top: 14px; }

.fml-u21-value-lookup { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-block: 12px; }
.fml-u21-value-lookup p, .fml-u21-player-fields small { color: #5d574e; font-size: .88rem; margin: 0; }
.fml-u21-value-lookup button { min-height: 44px; color: #171817 !important; border: 1px solid #c9aa4e !important; background: #f1cd50 !important; border-radius: 7px; }

.fml-search-review { width: min(100% - 28px, 1140px); }
.fml-search-review form { margin-block: 8px; }
.fml-search-review-table { overflow-x: auto; margin-top: 12px; }
.fml-search-review table { width: 100%; border-collapse: collapse; background: white; }
.fml-search-review :is(th,td) { padding: 8px; border-bottom: 1px solid #e2ddd2; text-align: left; vertical-align: top; }
.fml-search-review-table td:first-child { min-width: 130px; }
.fml-search-review-table form { display: grid; gap: 4px; margin: 0; }
.fml-search-review-table button { font-size: .8rem; padding: 6px 9px; }

.fml-match-calendar, .fml-calendar-tools {
    --calendar-ink: #15171c;
    --calendar-muted: #535966;
    --calendar-paper: #f5f3ef;
    --calendar-line: #dededc;
    --calendar-gold: var(--fml-brand-yellow, #f7ce4d);
    min-width: 0;
    color: var(--calendar-ink);
    font-family: system-ui, sans-serif;
}
.fml-calendar-card, .fml-submission-review {
    border: 1px solid #dedbd4;
    border-radius: 12px;
    padding: clamp(14px, 2.5vw, 24px);
    margin-block: 14px;
}
.fml-match-calendar { scroll-margin-top: 1rem; }
.fml-calendar-card {
    background: #fff;
    border-color: var(--calendar-line);
    border-radius: 14px;
}
.fml-calendar-heading {
    padding-bottom: 12px;
    border-bottom: 3px solid var(--calendar-gold);
}
.fml-match-calendar .fml-calendar-heading h2 {
    margin: 0;
    font: 780 clamp(1.6rem, 4.5vw, 2.25rem)/1.1 system-ui, sans-serif;
    letter-spacing: -.035em;
    color: var(--calendar-ink);
}
.fml-calendar-heading p {
    max-width: 67ch;
    margin: 7px 0 0;
    color: var(--calendar-muted);
    font-size: .92rem;
}
.fml-calendar-tools {
    margin-block: 14px;
    padding: clamp(11px, 2.2vw, 16px);
    border: 1px solid var(--calendar-line);
    border-radius: 11px;
    background: var(--calendar-paper);
}
.fml-calendar-tools form, .fml-calendar-links, .fml-review-totals {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 10px;
}
.fml-calendar-tools form { margin: 0; }
.fml-calendar-tools label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--calendar-ink);
    font-size: .88rem;
    font-weight: 700;
}
.fml-calendar-tools label:nth-child(2) { flex: 1 1 9rem; max-width: 24rem; }
.fml-calendar-tools select, .fml-calendar-links input[type="url"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--calendar-line);
    border-radius: 8px;
    padding: 6px 9px;
    background: #fff;
    color: var(--calendar-ink);
    font: 650 .9rem/1.25 system-ui, sans-serif;
}
.fml-calendar-tools select { padding-inline-end: 24px; }
body:not(.wp-admin) .fml-calendar-tools :is(button, .fml-calendar-links > a),
.fml-calendar-tools .fml-calendar-links summary, .fml-match-calendar .fml-calendar-results > summary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid var(--calendar-line);
    border-radius: 8px;
    background: #fff;
    color: var(--calendar-ink);
    text-align: center;
    text-decoration: none;
    font: 720 .88rem/1.25 system-ui, sans-serif;
    cursor: pointer;
}
body:not(.wp-admin) .fml-calendar-tools button {
    border-color: var(--calendar-ink);
}
body:not(.wp-admin) .fml-calendar-tools .fml-calendar-links > .fml-calendar-subscribe {
    background: var(--calendar-gold);
    border-color: var(--calendar-gold);
}
body:not(.wp-admin) .fml-calendar-tools :is(button, .fml-calendar-links > a):hover,
.fml-calendar-links summary:hover, .fml-match-calendar .fml-calendar-results > summary:hover {
    background: var(--calendar-ink);
    border-color: var(--calendar-ink);
    color: #fff;
}
body:not(.wp-admin) :is(.fml-calendar-tools, .fml-match-calendar) :focus-visible {
    outline: 2px solid #765504;
    outline-offset: 2px;
}
.fml-calendar-links { align-items: stretch; margin-top: 10px; }
.fml-calendar-links details[open] { flex-basis: 100%; }
.fml-calendar-links details > summary::-webkit-details-marker,
.fml-calendar-results > summary::-webkit-details-marker { display: none; }
.fml-calendar-links details > summary::after, .fml-calendar-results > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    margin: 0 1px 3px 8px;
    transform: rotate(45deg);
}
.fml-calendar-links details[open] > summary::after, .fml-calendar-results[open] > summary::after {
    transform: rotate(225deg);
    margin-block: 3px 0;
}
.fml-calendar-links input[type="url"] {
    margin-top: 8px;
    border-color: var(--calendar-line) !important;
    border-radius: 8px !important;
}
.fml-calendar-links input[type="url"]:focus-visible { border-color: #765504 !important; }
.fml-calendar-links details p { margin: 6px 0 0; color: var(--calendar-muted); font-size: .86rem; }
.fml-match-calendar .fml-calendar-results > summary {
    display: flex;
    justify-content: space-between;
    background: var(--calendar-paper);
    text-align: left;
}
.fml-match-calendar .fml-calendar-results > summary:hover { background: var(--calendar-ink); }
.fml-calendar-results { margin-top: 12px; }
.fml-review-rows, .fml-player-key-dates ol { list-style: none; margin: .65rem 0 0; padding: 0; }
.fml-review-rows li, .fml-player-key-dates li { border-top: 1px solid #e5e1d9; }
.fml-review-rows li span { display: block; margin-top: .15rem; font-size: .9rem; }
.fml-review-rows li, .fml-player-key-dates li { padding-block: .65rem; }
.fml-submission-review h5 { margin: 0 0 .4rem; }
.fml-review-totals { gap: .6rem 1rem; margin-block: .85rem; }
@media (max-width: 480px) {
    .fml-calendar-tools label { flex: 1 1 8rem; }
    .fml-calendar-tools form > button { flex: 0 0 100%; }
    .fml-calendar-links > a { flex: 1 1 auto; }
}
.fml-review-rows li p, .fml-player-key-dates li p { margin: .2rem 0 0; }
.fml-review-totals { align-items: start; }
.fml-review-totals dt { font-size: .86rem; }
.fml-review-totals dd { margin: 0; font-weight: 800; }
.fml-player-key-dates { margin-block: 1rem; }
.fml-player-key-dates li { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .4rem .85rem; }
.fml-player-key-dates time { font-size: .86rem; font-variant-numeric: tabular-nums; }
[data-fml-team-player-row] { scroll-margin-top: 5rem; }
.fml-submission-review[hidden], [data-fml-team-review-form] button[hidden] { display: none; }
@media (max-width: 480px) {
    .fml-player-key-dates li { grid-template-columns: 1fr; }
}
