/*
Theme Name: Premier League in Amharic
Theme URI: https://angineers.com/premier-league-theme
Author: Angineers
Author URI: https://angineers.com/
Description: Premier league in Amharic theme for high-signal news reading.
Version: 2.0.0
License: Angineers
Text Domain: pltheme
Tags: news, editorial, responsive, text-only, modern
*/

:root {
    --bg: #f5f7f5;
    --surface: #ffffff;
    --surface-soft: #f2f5f2;
    --ink: #151a17;
    --ink-soft: #5b645f;
    --line: #edf3ee;
    --line-strong: #e2ebe3;
    --brand: #02b114;
    --brand-deep: #078f17;
    --brand-deeper: #046f12;
    --brand-ink: #080908;
    --danger: #db2b39;
    --pos-ucl: #08a94d;
    --pos-ucl-soft: rgba(8, 169, 77, 0.12);
    --pos-europa: #5f95e5;
    --pos-europa-soft: rgba(95, 149, 229, 0.16);
    --pos-relegation: #df6969;
    --pos-relegation-soft: rgba(223, 105, 105, 0.16);

    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(18, 23, 20, 0.03);
    --shadow-md: 0 6px 14px rgba(18, 23, 20, 0.035);

    --font-body: 'Noto Sans Ethiopic', 'Abyssinica SIL', sans-serif;
    --font-head: 'Noto Serif Ethiopic', 'Abyssinica SIL', serif;
    --font-meta: 'Noto Sans Ethiopic', sans-serif;

    --measure: 74ch;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.62;
    background:
        radial-gradient(circle at 14% 3%, rgba(2, 177, 20, 0.035), transparent 34%),
        radial-gradient(circle at 94% 1%, rgba(2, 177, 20, 0.03), transparent 34%),
        linear-gradient(180deg, #f8faf8 0%, #f5f7f5 60%, #f3f6f3 100%);
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration-color: rgba(2, 177, 20, 0.4);
    text-underline-offset: 0.13em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--brand-deep);
    text-decoration-color: currentColor;
}

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

.container {
    width: min(1260px, 93vw);
    margin-inline: auto;
}

/* Header */
.rh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.rh-tape {
    height: 2px;
    background: linear-gradient(90deg, rgba(2, 177, 20, 0.95) 0%, rgba(2, 177, 20, 0.5) 100%);
}

.rh-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.05rem 0 0.88rem;
}

.rh-branding {
    display: grid;
    gap: 0.2rem;
}

.rh-logo {
    text-decoration: none;
    font-weight: 620;
    font-size: clamp(1.45rem, 1.1rem + 1.05vw, 2.35rem);
    letter-spacing: -0.025em;
    color: var(--brand-deep);
}

.rh-logo:hover,
.rh-logo:focus-visible {
    color: var(--brand-deeper);
}

.rh-subtitle {
    color: var(--ink-soft);
    font-family: var(--font-meta);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

.rh-header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rh-nav {
    padding-right: 0.95rem;
    border-right: 1px solid var(--line);
}

.nav-menu,
.footer-menu,
.category-filter-list,
.trending-posts,
.categories-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    font-family: var(--font-meta);
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.nav-menu li.current-menu-item a,
.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--brand);
}

.menu {
    margin: 0;
    padding: 0;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.menu a {
    text-decoration: none;
    font-family: var(--font-meta);
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--brand);
}

.rh-search-wrap {
    min-width: 235px;
}

.search-form {
    display: flex;
    align-items: stretch;
}

.search-form label {
    flex: 1;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.search-field,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.56rem 0.72rem;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: #fbfcfb;
    color: var(--ink);
    font-size: 0.9rem;
}

.search-field:focus,
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--line-strong);
    background: #fff;
}

.search-submit,
.search-form button,
.search-form input[type="submit"] {
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #f3f6f3;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-meta);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0.58rem 0.75rem;
}

.search-submit:hover,
.search-form button:hover,
.search-form input[type="submit"]:hover {
    background: #ecf7ec;
    color: var(--brand-ink);
}

.rh-marketline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.52rem 0 0.66rem;
    border-top: 1px solid #edf2ee;
}

.rh-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1;
}

.rh-chip--live {
    background: rgba(2, 177, 20, 0.1);
    color: var(--brand-ink);
}

.rh-marketline__text,
.rh-marketline__date {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.rh-marketline__date {
    font-family: var(--font-meta);
    font-size: 0.71rem;
}

/* Layout */
.rh-main {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.85fr);
    gap: clamp(1.4rem, 0.9rem + 1.6vw, 2.9rem);
    padding: clamp(1.35rem, 1.05rem + 0.95vw, 2.2rem) 0 3rem;
}

.rh-content-left {
    min-width: 0;
}

.rh-news-header {
    position: relative;
    border: 1px solid #eef4ef;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fafcfa 100%);
    box-shadow: none;
    padding: clamp(1.15rem, 0.95rem + 0.85vw, 1.8rem);
    margin-bottom: 1.25rem;
}

.rh-news-header::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.95rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(2, 177, 20, 0.1), rgba(2, 177, 20, 0));
}

.rh-kicker {
    font-family: var(--font-meta);
    color: var(--brand-deep);
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.rh-news-header h1,
.rh-article h1,
.rh-table-wrap h1 {
    font-size: clamp(2.05rem, 1.58rem + 1.26vw, 3rem);
    max-width: 19ch;
    margin-bottom: 1.05rem;
}

.rh-brief-note {
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin: 0 0 1rem;
}

.rh-brief-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.rh-brief-stats p {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfb;
    padding: 0.48rem 0.58rem;
    font-size: 0.74rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.16rem;
}

.rh-brief-stats span {
    font-family: var(--font-meta);
    color: var(--ink);
    font-size: 0.78rem;
}

.category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    padding-bottom: 0.5rem;
}

.category-filter-list li {
    margin: 0;
}

.category-filter-list a {
    display: inline-block;
    text-decoration: none;
    color: var(--ink-soft);
    border: 1px solid #e8eee8;
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    font-size: 0.72rem;
}

.category-filter-list a:hover,
.category-filter-list a:focus-visible {
    border-color: rgba(2, 177, 20, 0.32);
    background: rgba(2, 177, 20, 0.05);
    color: var(--ink);
}

.rh-feed {
    border: 1px solid #edf3ee;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: none;
}

.news-articles {
    display: grid;
    gap: 0;
}

.rh-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.8rem;
}

.rh-feed--featured .rh-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rh-feed--latest-horizontal {
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.9rem;
}

.rh-story--latest-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    background: linear-gradient(90deg, #f7fbf7 0%, #ffffff 70%);
    grid-column: 1 / -1;
}

.rh-story--latest-horizontal .rh-story__top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.rh-story--latest-horizontal h3 {
    font-size: clamp(1.14rem, 1.02rem + 0.42vw, 1.46rem);
    line-height: 1.22;
    margin: 0;
    flex: 1 1 auto;
}

.rh-story--latest-horizontal > p {
    -webkit-line-clamp: 4;
    font-size: 0.9rem;
    margin: 0;
    flex: 1 1 auto;
}

.rh-story--latest-horizontal .rh-story__meta {
    font-size: 0.74rem;
}

.rh-story {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 0.92rem;
    border: 1px solid #eff4f0;
    border-radius: 12px;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rh-story__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.48rem;
}

.rh-story__tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce7de;
    border-radius: 999px;
    padding: 0.14rem 0.42rem;
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #2f4734;
    background: #f4faf4;
}

.rh-story:hover {
    background: #fcfefc;
    border-color: #e8f0e8;
}

.rh-story::before {
    display: none;
}

.rh-story:hover::before {
    display: none;
}

.rh-story__meta,
.news-date,
.post-meta,
.related-article .news-date {
    color: var(--ink-soft);
    font-family: var(--font-meta);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.01em;
    margin: 0;
}

.rh-story h3 {
    font-size: clamp(1.02rem, 0.94rem + 0.35vw, 1.28rem);
    line-height: 1.28;
    max-width: 32ch;
    margin: 0;
}

.rh-story p {
    max-width: var(--measure);
    font-size: 0.9rem;
    color: #3b4640;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rh-news-header--compact {
    padding: 0.95rem 1rem;
    margin-bottom: 0.9rem;
}

.rh-featured-wrap {
    margin-bottom: 1rem;
}

.news-article img,
.post-thumbnail,
.trending-post img,
.related-article img,
.wp-post-image {
    display: none;
}

.rh-main img,
.rh-main figure,
.rh-sidebar img,
.rh-footer img {
    display: none !important;
}

/* Article page */
.rh-article,
.page article {
    border: 1px solid #edf3ee;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
    box-shadow: none;
    padding: clamp(1.25rem, 0.95rem + 1.08vw, 2.25rem);
}

.rh-article-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.rh-summary {
    border: 1px solid #e8efe9;
    background: #f6fcf7;
    border-radius: 12px;
    padding: 0.88rem 0.95rem;
    margin-bottom: 1rem;
}

.rh-summary h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.rh-summary p {
    font-size: 0.97rem;
    color: #314038;
}

.rh-article-content {
    max-width: var(--measure);
    font-size: 1.06rem;
    display: grid;
    gap: 1rem;
}

.rh-article-content h2,
.rh-article-content h3 {
    margin-top: 1.2rem;
}

.rh-article-content p,
.rh-article-content li {
    color: #242b26;
}

.rh-article-content blockquote {
    margin: 0.2rem 0;
    padding: 0.8rem 1rem;
    border-left: 2px solid var(--brand);
    background: #f8fcf8;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rh-article-content a {
    color: #067b15;
}

.rh-related {
    margin-top: 2.2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
}

.rh-related h2 {
    font-size: clamp(1.44rem, 1.2rem + 0.68vw, 2.05rem);
    margin-bottom: 0.8rem;
}

.related-articles-grid {
    display: grid;
    gap: 0;
    border: 1px solid #edf3ee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.related-article {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eff4f0;
    display: grid;
    gap: 0.36rem;
    background: #fff;
}

.related-article:last-child {
    border-bottom: 0;
}

.related-article h3 {
    font-size: 1.04rem;
    line-height: 1.26;
}

/* Sidebar */
.rh-sidebar {
    min-width: 0;
    display: grid;
    gap: 1rem;
    align-content: start;
    position: sticky;
    top: 118px;
    height: fit-content;
}

.rh-panel,
.sidebar .widget {
    border: 1px solid #edf3ee;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: none;
    padding: 1.06rem;
}

.rh-panel--compact {
    padding: 0.8rem 0.9rem;
}

.rh-panel--compact > h3 {
    margin: 0;
    padding-bottom: 0.52rem;
    border-bottom: 1px solid #deeadf;
}

.rh-panel--compact > h3 + .league-table--sidebar {
    margin-top: 0.62rem;
}

.rh-panel--signal {
    background: linear-gradient(180deg, #f8fcf8 0%, #f5faf5 100%);
}

.rh-panel--signal p {
    color: var(--ink-soft);
    font-size: 0.87rem;
    line-height: 1.5;
}

.widget-title,
.trending-section h3,
.categories-section h2 {
    font-family: var(--font-head);
    font-size: 1.26rem;
    margin-bottom: 0.72rem;
}

.trending-posts {
    display: grid;
    gap: 0.7rem;
    counter-reset: trend;
}

.trending-post {
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding-bottom: 0.74rem;
    border-bottom: 1px dashed #e8eee9;
}

.trending-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rh-rank {
    width: 1.32rem;
    height: 1.32rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(2, 177, 20, 0.1);
    color: #04600f;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    margin-top: 0.08rem;
}

.rh-trending-copy h4 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 0.28rem;
}

.categories-list ul {
    display: grid;
    gap: 0.44rem;
}

.categories-list li {
    padding-bottom: 0.44rem;
    border-bottom: 1px dashed #e8eee9;
    font-size: 0.93rem;
}

.categories-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Pagination */
.rh-pagination,
.pagination {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pagination .page-numbers {
    text-decoration: none;
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    border: 1px solid #e8efe9;
    border-radius: 8px;
    padding: 0.36rem 0.5rem;
    color: var(--ink-soft);
    font-family: var(--font-meta);
    font-size: 0.66rem;
}

.pagination .page-numbers:hover,
.pagination .current {
    color: var(--brand-ink);
    background: rgba(2, 177, 20, 0.12);
    border-color: rgba(2, 177, 20, 0.32);
}

/* Table page */
.rh-table-wrap {
    border: 1px solid #e4ece6;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow:
        0 10px 22px rgba(16, 33, 20, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    padding: clamp(1.22rem, 0.95rem + 0.95vw, 1.95rem);
}

.rh-table-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.league-table-section h1 {
    font-size: clamp(1.35rem, 1.15rem + 0.65vw, 1.85rem);
    margin-bottom: 0.6rem;
}

.league-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin: 0.56rem 0 0;
}

.league-legend__item {
    border: 1px solid #dfe9e1;
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    font-size: 0.74rem;
    color: var(--ink-soft);
    background: #f8fbf8;
}

.league-legend__item--ucl {
    border-color: rgba(8, 169, 77, 0.34);
    background: var(--pos-ucl-soft);
    color: #045b25;
}

.league-legend__item--europa {
    border-color: rgba(95, 149, 229, 0.45);
    background: var(--pos-europa-soft);
    color: #2f5c95;
}

.league-legend__item--relegation {
    border-color: rgba(223, 105, 105, 0.45);
    background: var(--pos-relegation-soft);
    color: #8f3434;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dde8df;
    background: #fff;
}

.league-table thead {
    background: linear-gradient(180deg, #fbfefc 0%, #f2f8f3 100%);
    color: #152018;
    border-bottom: 2px solid #cddfce;
    box-shadow:
        inset 0 2px 0 rgba(2, 177, 20, 0.42),
        inset 0 -1px 0 rgba(6, 39, 16, 0.12);
}

.league-table thead th {
    background-clip: padding-box;
}

.league-table tbody tr:first-child td {
    border-top: 1px solid #d7e4d8;
}

.league-table th,
.league-table td {
    text-align: left;
    padding: 0.8rem 0.88rem;
    border-bottom: 1px solid #e7efe8;
    font-size: 0.95rem;
}

.league-table tbody tr:nth-child(odd) {
    background: #fafdfb;
}

.league-table tbody tr:hover {
    background: #f3faf4;
}

.league-table--sidebar {
    margin-top: 0.68rem;
    border-color: #d8e5da;
}

.league-table--sidebar thead {
    background: linear-gradient(180deg, #fbfefc 0%, #eef6f0 100%);
    color: #1b271f;
    border-bottom: 2px solid #c9ddcc;
    box-shadow: inset 0 2px 0 rgba(2, 177, 20, 0.38);
}

.league-table--sidebar th,
.league-table--sidebar td {
    padding: 0.58rem 0.5rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.league-table--sidebar th {
    font-family: var(--font-meta);
    font-size: 0.68rem;
    letter-spacing: 0.015em;
    border-right: 1px solid #e7efe9;
}

.league-table--sidebar th:last-child {
    border-right: 0;
}

.league-table--sidebar th:nth-child(2),
.league-table--sidebar td:nth-child(2) {
    text-align: left;
    font-weight: 600;
}

.league-table--sidebar th:last-child {
    color: #0d3f1a;
    background: rgba(2, 177, 20, 0.12);
}

.league-table--sidebar td:last-child {
    font-weight: 800;
    color: #0f4f1f;
    background: rgba(2, 177, 20, 0.08);
}

.league-table--sidebar tbody tr:nth-child(odd) {
    background: #fbfdfb;
}

.league-table--sidebar tbody tr:hover td {
    background: #f2faf3;
}

.league-table--full th {
    white-space: nowrap;
    font-size: 0.74rem;
    letter-spacing: 0.015em;
    font-weight: 700;
}

.league-table--full {
    table-layout: fixed;
}

.league-table--full thead {
    background: linear-gradient(180deg, #fbfefc 0%, #eef6f0 100%);
}

.league-table--full thead th {
    color: #1b271f;
    background: transparent;
    border-bottom-color: #ccdfd0;
    border-right: 1px solid #e7efe9;
    font-family: var(--font-meta);
}

.league-table--full thead th:last-child {
    border-right: 0;
}

.league-table--full th,
.league-table--full td {
    text-align: center;
    padding: 0.54rem 0.2rem;
    font-size: 0.81rem;
    line-height: 1.2;
}

.league-table--full th:nth-child(2),
.league-table--full td:nth-child(2) {
    text-align: left;
    padding-left: 0.38rem;
    padding-right: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.league-table--full th.league-col-mp,
.league-table--full td.league-col-mp {
    text-align: left;
    padding-left: 0.1rem;
}

.league-table--full th.league-col-points,
.league-table--full td.league-col-points {
    font-weight: 800;
}

.league-table--full th.league-col-points {
    color: #0d3f1a;
    background: rgba(2, 177, 20, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(2, 120, 28, 0.16);
}

.league-table--full td.league-col-points {
    color: #045a12;
    background: rgba(2, 177, 20, 0.1);
    padding-right: 0.12rem;
    font-size: 0.88rem;
    font-weight: 900;
}

.league-table--full th.league-col-form,
.league-table--full td.league-col-form {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
}

.league-table--full td.league-col-form {
    padding-top: 0.36rem;
    padding-bottom: 0.36rem;
}

.league-table--full td.league-col-form .league-form {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.league-table--full tbody tr {
    transition: background-color 0.18s ease;
}

.league-table--full tbody tr:hover td {
    background: #f2faf3;
}

.league-table--full tbody tr.rh-pos--ucl td:first-child {
    box-shadow: inset 3px 0 0 var(--pos-ucl);
    background: var(--pos-ucl-soft);
    color: #045b25;
    font-weight: 700;
}

.league-table--full tbody tr.rh-pos--europa td:first-child {
    box-shadow: inset 3px 0 0 var(--pos-europa);
    background: var(--pos-europa-soft);
    color: #2f5c95;
    font-weight: 700;
}

.league-table--full tbody tr.rh-pos--relegation td:first-child {
    box-shadow: inset 3px 0 0 var(--pos-relegation);
    background: var(--pos-relegation-soft);
    color: #8f3434;
    font-weight: 700;
}

.league-form {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.league-form__item {
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-meta);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    border: 1px solid transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 1px 2px rgba(11, 24, 14, 0.1);
}

.league-form__item--win {
    background: linear-gradient(180deg, #ebfaef 0%, #cdeed5 100%);
    border-color: rgba(2, 135, 35, 0.34);
    color: #06641b;
}

.league-form__item--draw {
    background: linear-gradient(180deg, #f8faf9 0%, #e6ece8 100%);
    border-color: rgba(106, 122, 113, 0.34);
    color: #415148;
    font-size: 0.86rem;
}

.league-form__item--loss {
    background: linear-gradient(180deg, #fff0f2 0%, #f5d1d7 100%);
    border-color: rgba(171, 34, 34, 0.34);
    color: #962536;
    font-size: 0.7rem;
}

.league-table-bottom {
    margin-top: 0.68rem;
    border-top: 1px dashed #dfe9e2;
    padding-top: 0.62rem;
    display: grid;
    gap: 0.46rem;
}

.league-col-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.45;
}

.league-form-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.league-form-key__item {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    border: 1px solid #dfe8e1;
    border-radius: 999px;
    padding: 0.18rem 0.48rem 0.18rem 0.24rem;
    background: #f8fbf9;
}

.league-form-key__item .league-form__item {
    width: 1rem;
    height: 1rem;
}

.rh-table-link-wrap {
    margin: 0.86rem 0 0;
}

.rh-table-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(2, 177, 20, 0.32);
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    color: var(--brand-ink);
    background: rgba(2, 177, 20, 0.08);
    font-family: var(--font-meta);
    font-size: 0.73rem;
}

.rh-table-link:hover,
.rh-table-link:focus-visible {
    background: rgba(2, 177, 20, 0.15);
    border-color: rgba(2, 177, 20, 0.45);
    color: var(--brand-deep);
}

/* Footer */
.rh-footer {
    margin-top: 1rem;
    border-top: 1px solid #e6ede7;
    background: linear-gradient(180deg, #f6faf6 0%, #f3f7f3 100%);
    padding: 1.7rem 0 2rem;
}

.rh-footer__inner {
    display: grid;
    gap: 0.9rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-menu a {
    text-decoration: none;
    color: var(--ink-soft);
    font-family: var(--font-meta);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--brand-deep);
}

.footer-copy {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

/* Motion */
.rh-news-header,
.rh-feed,
.rh-panel,
.rh-article,
.rh-table-wrap {
    animation: rise-in 420ms ease-out both;
}

.rh-story {
    animation: fade-story 320ms ease both;
}

.rh-story:nth-child(2) { animation-delay: 45ms; }
.rh-story:nth-child(3) { animation-delay: 90ms; }
.rh-story:nth-child(4) { animation-delay: 135ms; }
.rh-story:nth-child(5) { animation-delay: 180ms; }

@keyframes rise-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-story {
    from {
        transform: translateY(5px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1120px) {
    .rh-header__inner {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .rh-header__right {
        justify-content: space-between;
    }

    .rh-nav {
        border-right: 0;
        padding-right: 0;
    }

    .rh-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .rh-sidebar {
        position: static;
    }

    .rh-feed--featured .rh-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .rh-news-grid {
        grid-template-columns: 1fr;
    }

    .rh-feed--featured .rh-news-grid {
        grid-template-columns: 1fr;
    }

    .rh-story--latest-horizontal {
        display: grid;
        gap: 0.5rem;
        align-items: start;
    }

    .rh-story--latest-horizontal h3,
    .rh-story--latest-horizontal > p {
        flex: none;
    }
}

@media (max-width: 760px) {
    html {
        font-size: 15px;
    }

    .container {
        width: min(1260px, 95vw);
    }

    .rh-marketline {
        grid-template-columns: auto 1fr;
    }

    .rh-marketline__date {
        display: none;
    }

    .rh-search-wrap {
        width: 100%;
    }

    .nav-menu {
        gap: 0.6rem 0.8rem;
    }

    .rh-news-header,
    .rh-feed,
    .rh-article,
    .rh-table-wrap,
    .rh-panel,
    .sidebar .widget {
        border-radius: 14px;
    }

    .rh-story {
        padding: 0.92rem 0.92rem 0.94rem;
    }

    .rh-brief-stats {
        grid-template-columns: 1fr;
    }

    .league-table--full th,
    .league-table--full td {
        font-size: 0.66rem;
        padding: 0.34rem 0.12rem;
    }

    .league-table--full th:nth-child(2),
    .league-table--full td:nth-child(2) {
        font-size: 0.72rem;
    }

    .league-form__item {
        width: 0.86rem;
        height: 0.86rem;
        font-size: 0.5rem;
    }

    .league-form__item--draw {
        font-size: 0.64rem;
    }

    .league-form {
        gap: 0.16rem;
    }

    .league-form-key {
        gap: 0.3rem;
    }

    .league-form-key__item {
        gap: 0.28rem;
        padding: 0.14rem 0.38rem 0.14rem 0.2rem;
    }

    .league-form-key__item .league-form__item {
        width: 0.86rem;
        height: 0.86rem;
    }
}

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