
/* Shared modern appearance for home and Top 10.
   Loaded after legacy styles, without changing application logic. */
html { background:#edf3f6; }
body {
    margin:0;
    background:#edf3f6;
    color:#183347;
    font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#wrapper {
    float:none;
    width:calc(100% - 48px);
    max-width:1240px;
    margin:0 auto;
    padding:0;
    background:none;
    box-shadow:none;
}
#header { background:none; padding-top:18px; }
#head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:84px;
    height:auto;
    background:none;
}
#head #logo {
    display:block;
    float:none;
    margin:0;
    width:260px;
    max-width:65%;
    height:76px;
    background:url('/member-brand-v2/images/logo.png') left center/contain no-repeat;
}
#head .ad468x60 {
    float:none;
    width:auto;
    height:auto;
    margin:0;
    background:none;
}
#head .ad468x60 img {
    width:auto;
    max-width:140px;
    max-height:76px;
}
#menu {
    float:none;
    width:auto;
    height:auto;
    padding:8px 0;
    background:none;
}
#menu ul {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
}
#menu li { float:none; padding:0; margin:0; background:none; }
#menu li a {
    display:block;
    float:none;
    height:auto;
    padding:9px 20px;
    background:none;
    border-radius:999px;
    color:#086e8b;
    font:650 16px/1.5 system-ui,sans-serif;
    text-decoration:none;
}
#menu li a:hover,#menu li a[aria-current=page] {
    background:#183347;
    color:#fff;
}
#inner {
    float:none;
    width:auto;
    padding:26px 0 40px;
    background:none;
}
#inner .top10-columns {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:24px;
}
#inner .member-primary { min-width:0; }
#inner .member-intro,
#inner .daily-joke,
#inner .editorial-card,
#inner .top10-sidebar {
    padding:20px;
    border:1px solid #dce6eb;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px #18334708;
}
#inner .member-intro,#inner .daily-joke {
    margin:0 0 24px;
}
#inner .member-intro h1 {
    color:#183347;
    font:700 clamp(24px,3vw,34px)/1.2 system-ui,sans-serif;
}
#inner h2,#inner #last-updates-title {
    color:#183347;
    font:700 23px/1.3 system-ui,sans-serif;
}
#inner #last-updates-title { margin:24px 0 16px; }
#inner .member-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin:0 0 24px;
}
#inner .member-card {
    padding:0;
    border:1px solid #dce6eb;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
#inner .member-card img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4/3;
    object-fit:contain;
    border:0;
    background:#e2eaee;
}
#inner .member-card h2 {
    margin:0;
    padding:12px 14px 5px;
    font:650 15px/1.5 system-ui,sans-serif;
}
#inner .member-card small {
    display:block;
    padding:0 14px 14px;
    color:#5f7180;
}
#inner .member-card a { text-decoration:none; }
#inner .editorial-grid { margin:0 0 24px; }
#inner .editorial-description { line-height:1.75; }
#inner .editorial-copy { display:flow-root; }
#inner .editorial-copy .editorial-image {
    float:left;
    width:38%;
    max-width:260px;
    margin:0 20px 12px 0;
}
#inner .editorial-copy .editorial-image img {
    width:100%; height:auto; margin:0; float:none;
}
#inner .feature-row { margin:24px 0; }
#inner .feature-row a {
    border-radius:10px;
    background:#fff;
    border:1px solid #dce6eb;
    font:650 16px/1.5 system-ui,sans-serif;
}
#inner .top10-sidebar { margin-top:0; }
#pages-bottom {
    float:none; width:auto; height:auto;
    background:none; border-top:1px solid #dce6eb;
    padding:18px 0 0;
}
#pages-bottom ul {
    display:flex; flex-wrap:wrap; gap:18px;
    padding:0; margin:0; list-style:none;
}
#pages-bottom li,#pages-bottom a {
    float:none; background:none; height:auto;
}
#pages-bottom a { color:#086e8b; }
#footer {
    float:none; width:auto; height:auto; background:none;
    padding:16px 0 30px; color:#5f7180;
    font:14px/1.6 system-ui,sans-serif;
}
#inner .top10-player {
    border:1px solid #dce6eb;
    border-radius:14px;
    background:#fff;
}
@media(max-width:950px) {
    #inner .top10-columns { grid-template-columns:minmax(0,1fr); }
    #inner .top10-list {
        display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px;
    }
}
@media(max-width:600px) {
    #wrapper { width:calc(100% - 24px); padding:0; }
    #inner { padding-top:18px; }
    #inner .member-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    #inner .member-intro,#inner .daily-joke,#inner .editorial-card {
        padding:15px;
    }
    #inner .editorial-copy .editorial-image {
        float:none; width:100%; max-width:330px;
        margin:0 auto 16px;
    }
    #inner .feature-row { grid-template-columns:1fr; }
}
@media(max-width:380px) {
    #inner .member-grid,#inner .top10-list {
        grid-template-columns:minmax(0,1fr);
    }
}


/* accessible-member-header-v1 */
#header #head #logo {
    box-sizing: border-box;
    width: 280px;
    max-width: 70%;
    height: 80px;
    margin: 0;
    border-radius: 12px;
    border: 12px solid #183347;
    background-color: #183347;
    background-image: url('/member-brand-v2/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-origin: padding-box;
}
#header #menu,
#header #menu ul,
#header #menu ul li {
    background: none;
    border: 0;
    height: auto;
}
#header #menu ul li a,
#header #menu ul li a:link,
#header #menu ul li a:visited {
    color: #075e78 !important;
    background: #ffffff !important;
    border: 1px solid #b7cbd5;
    border-radius: 999px;
    text-shadow: none;
    text-decoration: none;
    opacity: 1;
    padding: 9px 20px;
    height: auto;
    line-height: 1.5;
}
#header #menu ul li a:hover,
#header #menu ul li a[aria-current="page"] {
    color: #ffffff !important;
    background: #183347 !important;
    border-color: #183347;
}
#header #menu ul li a:focus-visible,
#header #head #logo:focus-visible {
    outline: 3px solid #c47c00;
    outline-offset: 4px;
}
@media (max-width: 520px) {
    #header #head #logo {
        width: 230px;
        height: 70px;
        border-width: 10px;
    }
    #header #menu ul li a,
    #header #menu ul li a:link,
    #header #menu ul li a:visited {
        padding: 8px 16px;
    }
}

/* home-structure-repair */
#wrapper #header,
#wrapper #head,
#wrapper #menu,
#wrapper #inner {
    float: none;
}
#wrapper #header { display: flow-root; }
#wrapper #inner { clear: both; width: auto; }
#inner > .member-intro { margin: 0 0 24px; }
#inner .top10-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
}
#inner .member-primary { display: block; min-width: 0; }
#inner .top10-sidebar { min-width: 0; margin-top: 0; }
#inner .top10-list img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
@media (max-width: 950px) {
    #inner .top10-columns { grid-template-columns: minmax(0, 1fr); }
}

/* portal-sidebar-v2 */
#inner .top10-columns > .member-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
    align-self: start;
}
#inner .member-secondary > .portal-card,
#inner .member-secondary > .top10-sidebar {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}
#inner .member-secondary > .portal-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dce6eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px #18334708;
}
#inner .portal-card h2 {
    margin: 0 0 14px;
    color: #183347;
    font: 700 21px/1.3 system-ui,sans-serif;
}
#inner .portal-card img {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}
#inner .portal-card p { margin: 12px 0 0; }
#inner .portal-card a { color: #086e8b; font-weight: 650; }
