/* ============================================================
   HARUN WAQOE — SHARED DESIGN SYSTEM
   Unified styles for the clean, minimal Apple-style site
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────── */
:root {
    --bg: #cfcfcf;
    --bg-page: #f7f6ef;
    --text: #1a1a1a;
    --muted: #6f6f6f;
    --muted2: #8f8f8f;
    --rule: rgba(0, 0, 0, .06);
    --icon-bg: rgba(0, 0, 0, .035);
    --icon-border: rgba(0, 0, 0, .085);
    --focus: rgba(10, 165, 143, .35);
    --callout-bg: rgba(10, 165, 143, .12);
    --callout-border: rgba(10, 165, 143, .22);
    --card: #ffffff;
    --border: rgba(0, 0, 0, .085);
}

body.dark-mode {
    --bg: #1a1a1a;
    --bg-page: #111111;
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --muted2: #777777;
    --rule: rgba(255, 255, 255, .08);
    --icon-bg: rgba(255, 255, 255, .06);
    --icon-border: rgba(255, 255, 255, .12);
    --callout-bg: rgba(10, 165, 143, .12);
    --callout-border: rgba(10, 165, 143, .22);
    --card: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .12);
}


/* ── RESET ─────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background .15s ease, color .15s ease;
}


/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInX {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(.94);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ── LAYOUT ────────────────────────────────────── */
.wrap {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 40px 0 64px;
    animation: fadeUp .2s ease both;
}


/* ── TOP NAV ───────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
}

.topbar a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    transition: opacity .15s ease, color .15s ease;
}

.topbar a:hover {
    opacity: .7;
}

.topbar a.active {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.topbar a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    animation: slideInX .3s .15s ease both;
    transform-origin: left;
}

.site-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .15px;
}

.site-name:hover {
    opacity: .7;
}

/* ── INLINE LANGUAGE SWITCHER (desktop) ────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    font-size: 12px;
    text-decoration: none;
    color: var(--muted);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
    letter-spacing: .2px;
}

.lang-btn:hover {
    color: var(--text);
    background: var(--icon-bg);
}

.lang-btn.active {
    color: var(--text);
    font-weight: 500;
}

.lang-sep {
    font-size: 11px;
    color: var(--muted2);
    opacity: .4;
    user-select: none;
}

/* ── LANGUAGE TOGGLE DROPDOWN (mobile only) ───── */
.lang-toggle {
    position: relative;
    display: none;
    /* hidden on desktop by default */
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11.5px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, border-color .15s ease;
}

.lang-current:hover {
    background: var(--icon-bg);
}

.lang-arrow {
    transition: transform .2s ease;
    opacity: .5;
}

.lang-toggle.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 120px;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 4px;
    display: none;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.lang-toggle.open .lang-dropdown {
    display: flex;
}

.lang-option {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 5px;
    transition: background .12s ease, color .12s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--icon-bg);
    color: var(--text);
}

.lang-option.active {
    color: var(--text);
    font-weight: 500;
}

.rightnav {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.nav-sep {
    font-size: 12px;
    color: var(--muted);
    opacity: .55;
    user-select: none;
}


/* ── PAGE HEAD ─────────────────────────────────── */
.pagehead {
    display: flex;
    justify-content: flex-start;
    margin: 32px 0 4px;
}

.pagehead h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.2px;
    line-height: 1.3;
}


/* ── HERO (homepage) ───────────────────────────── */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero p {
    margin: 0;
    text-align: center;
    max-width: 58ch;
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
    letter-spacing: .2px;
}

.hero strong {
    font-weight: 700;
    color: var(--text);
}


/* ── NAV PILL (homepage) ───────────────────────── */
.bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-bottom: 6px;
}

.nav-pill {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .3s ease, border-color .3s ease;
}

body.dark-mode .nav-pill {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
}

.nav-pill a {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--muted);
    transition: background .2s ease, color .2s ease;
}

.nav-pill a.active {
    background: rgba(255, 255, 255, .32);
    color: var(--text);
}

body.dark-mode .nav-pill a.active {
    background: rgba(255, 255, 255, .12);
}

.nav-pill a:hover:not(.active) {
    background: rgba(255, 255, 255, .12);
}


/* ── FOOTER SOCIALS ────────────────────────────── */
.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.footer-socials a svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.footer-socials a {
    transition: background .18s ease, color .18s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease;
}

.footer-socials a:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.footer-socials a:active {
    transform: scale(.9);
}

body.dark-mode .footer-socials a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .footer-socials a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}


/* ── THEME TOGGLE (inline in topbar) ───────────── */
.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: relative;
    color: var(--muted);
    transition: color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    transform: rotate(12deg);
}

.theme-toggle:active {
    transform: rotate(25deg) scale(.88);
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
    transition: color .3s ease;
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: opacity .3s ease, transform .3s ease;
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}


/* ── LIST / ROWS (experience page) ─────────────── */
.list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row {
    border-radius: 12px;
    padding: 14px 14px;
    display: grid;
    grid-template-columns: 1fr auto 34px;
    align-items: center;
    gap: 12px;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    cursor: default;
}

.row:hover {
    background: var(--icon-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.row+.row {
    border-top: 1px solid var(--rule);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.row:first-child {
    border-top: 1px solid var(--rule);
}

.left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.row:hover .logo {
    transform: scale(1.06);
    overflow: hidden;
}

.logo svg {
    width: 26px;
    height: 26px;
    display: block;
}

.who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
}

.dates {
    font-size: 12.5px;
    color: var(--text);
    opacity: .92;
    line-height: 1.2;
    white-space: nowrap;
}

.place {
    font-size: 11.5px;
    color: var(--muted2);
    opacity: .8;
    line-height: 1.2;
    white-space: nowrap;
}


/* ── TOGGLE / EXPAND (experience + projects) ───── */
.toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--icon-border);
    background: var(--icon-bg);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, border-color .15s ease, transform .12s ease, color .15s ease;
}

.toggle:hover {
    background: rgba(0, 0, 0, .07);
    border-color: var(--icon-border);
    color: var(--text);
}

body.dark-mode .toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.toggle:active {
    transform: scale(.88);
}

.toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.chev {
    width: 16px;
    height: 16px;
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}

.more {
    grid-column: 1 / -1;
    padding: 0 10px 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .15s cubic-bezier(.4, 0, .2, 1), padding .15s ease, opacity .12s ease;
    opacity: 0;
}

/* RTL: icon is on the right, so align expanded text from the right */
[dir="rtl"] .more {
    padding-left: 10px;
    padding-right: 14px;
}

.more p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 72ch;
    padding-bottom: 8px;
}

.row.open .more {
    max-height: 300px;
    padding-top: 8px;
    opacity: 1;
}

.row.open .chev {
    transform: rotate(180deg);
}

/* Staggered entrance for list rows */
.list .row {
    animation: fadeUp .18s ease both;
}

.list .row:nth-child(1) {
    animation-delay: .02s;
}

.list .row:nth-child(2) {
    animation-delay: .04s;
}

.list .row:nth-child(3) {
    animation-delay: .06s;
}

.list .row:nth-child(4) {
    animation-delay: .08s;
}

.list .row:nth-child(5) {
    animation-delay: .10s;
}

.list .row:nth-child(6) {
    animation-delay: .12s;
}

.list .row:nth-child(7) {
    animation-delay: .14s;
}

.list .row:nth-child(8) {
    animation-delay: .16s;
}

/* Callout pop-in */
.callout {
    animation: fadeUp .18s .1s ease both;
}

.spacer {
    flex: 1;
}


/* ── PROJECTS LIST ─────────────────────────────── */
.project-row {
    padding: 18px 0;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--rule);
}

.project-row:last-of-type {
    border-bottom: 1px solid var(--rule);
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-row.open .more {
    display: block;
}

.project-row.open .chev {
    transform: rotate(180deg);
}

.callout {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--callout-bg);
    border: 1px solid var(--callout-border);
    font-size: 12px;
    color: var(--muted);
    max-width: fit-content;
}

.callout a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.callout svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    opacity: .8;
}


/* ── NOTES / BLOG LIST ─────────────────────────── */
.sub {
    margin: 4px 0 18px;
    text-align: left;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.now-divider {
    height: 1px;
    background: var(--rule);
    margin: 4px 0 8px;
}

.post {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 14px 10px;
    border-top: 1px solid var(--rule);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    border-radius: 8px;
}

.post:hover {
    background: var(--icon-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.post a {
    text-decoration: none;
    color: inherit;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    display: grid;
    place-items: center;
    color: var(--muted);
}

.icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.text {
    min-width: 0;
}

.ptitle {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdesc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text);
    opacity: .74;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date {
    font-size: 12.5px;
    color: var(--muted2);
    white-space: nowrap;
    padding-left: 10px;
}


/* ── NOTES FOOTER META ─────────────────────────── */
.notes-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.notes-meta .chunk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-meta svg {
    width: 14px;
    height: 14px;
    opacity: .6;
    flex: 0 0 auto;
}

/* ── LOADING STATE ─────────────────────────────── */
.loading-text {
    text-align: center;
    font-size: 12px;
    color: var(--muted2);
    padding: 24px 0;
}

/* ── BLOG POST (single post view) ──────────────── */
.post-page {
    background: var(--bg-page);
}

.post-content h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
}

.post-content .post-date {
    font-size: 12px;
    color: var(--muted2);
    margin-bottom: 24px;
    display: block;
}

.post-content .post-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.post-content .post-body p {
    margin: 0 0 16px;
}

.post-content .post-body a {
    color: #0066ee;
    text-decoration: none;
    text-underline-offset: 3px;
}

body.dark-mode .post-content .post-body a {
    color: #5da8ff;
}

.post-content .post-body a:hover {
    text-decoration: underline;
}

/* ── RECOMMENDED NOTES ─────────────────────────── */
.recommended {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.recommended h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 16px;
    letter-spacing: .2px;
}

.recommended .post {
    cursor: pointer;
}

/* ── LOAD MORE BUTTON ──────────────────────────── */
.load-more-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease;
}

.load-more-btn:hover {
    background: var(--icon-bg);
}


/* ── MOBILE ────────────────────────────────────── */
@media (max-width: 720px) {
    .wrap {
        max-width: 100%;
        padding: 44px 32px 48px;
    }

    .rightnav {
        gap: 12px;
    }

    /* Mobile: hide inline switcher, show dropdown */
    .lang-switcher {
        display: none !important;
    }

    .lang-toggle {
        display: block !important;
    }

    /* experience mobile */
    .row {
        padding: 12px 10px;
        grid-template-columns: minmax(0, 1fr) auto 30px;
        grid-template-areas:
            "left right toggle"
            "more more more";
        align-items: center;
        gap: 10px 8px;
    }

    .left {
        grid-area: left;
        min-width: 0;
    }

    .who {
        gap: 4px;
        min-width: 0;
    }

    .company {
        font-size: 13px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .role {
        font-size: 12px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .right {
        grid-area: right;
        text-align: right;
        min-width: 0;
        width: auto;
        padding-left: 0;
        flex-shrink: 0;
    }

    .toggle {
        grid-area: toggle;
        justify-self: end;
        margin-top: 0;
        flex-shrink: 0;
    }

    .more {
        grid-area: more;
        padding: 8px 6px 2px 10px;
    }

    [dir="rtl"] .more {
        padding-left: 6px;
        padding-right: 10px;
    }

    .dates {
        font-size: 11.5px !important;
        font-weight: 400;
        color: var(--muted2);
        opacity: .82;
        white-space: nowrap;
        margin-right: 6px;
    }

    .place {
        font-size: 11px !important;
        font-weight: 300;
        color: var(--muted2);
        opacity: .76;
        white-space: nowrap;
    }

    /* notes mobile */
    .post {
        grid-template-columns: 40px 1fr auto;
        column-gap: 10px;
        padding: 12px 8px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    .icon svg {
        width: 22px;
        height: 22px;
    }

    .date {
        font-size: 12px;
    }

}

@media (max-width: 360px) {
    .wrap {
        padding: 26px 28px 44px;
    }

    .ptitle {
        font-size: 12.5px;
    }

    .pdesc {
        font-size: 11.75px;
    }

    .company {
        font-size: 12.5px;
    }

    .role {
        font-size: 11.75px;
    }

    .name {
        font-size: 12.5px;
    }

    .desc {
        font-size: 11.75px;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .more p {
        font-size: 11.75px;
    }

    .right {
        padding-left: 0;
    }

    .more {
        padding-left: 10px;
    }

    [dir="rtl"] .more {
        padding-left: 6px;
        padding-right: 10px;
    }
}

/* ── TYPOGRAPHY SCALE + READABILITY BOOST ─────── */
/* Requested: +5px on site text, excluding section titles (Reading/Learning/Doing) */
.topbar {
    font-size: 15.5px !important;
}

.site-name {
    font-size: 15.5px !important;
}

.lang-btn {
    font-size: 14px !important;
}

.lang-current {
    font-size: 13.5px !important;
}

.lang-option {
    font-size: 14px !important;
}

.nav-sep {
    font-size: 14px !important;
}

.hero p {
    font-size: 16px !important;
}

.company {
    font-size: 15px !important;
}

.role {
    font-size: 14px !important;
}

.dates {
    font-size: 14.5px !important;
}

.place {
    font-size: 13.5px !important;
}

.more p {
    font-size: 14px !important;
}

.name {
    font-size: 15px !important;
}

.desc {
    font-size: 14px !important;
}

.callout {
    font-size: 14px !important;
}

.sub {
    font-size: 15px !important;
}

.ptitle {
    font-size: 17px !important;
}

.pdesc {
    font-size: 13px !important;
    color: var(--text);
    opacity: .65 !important;
}

.date {
    font-size: 14.5px !important;
}

.notes-meta {
    font-size: 14px !important;
}

.loading-text {
    font-size: 14px !important;
}

.post-content h2 {
    font-size: 20px !important;
}

.post-content .post-date {
    font-size: 14px !important;
}

.post-content .post-body {
    font-size: 16px !important;
}

.recommended h3 {
    font-size: 15px !important;
}

.load-more-btn {
    font-size: 14px !important;
}

.nav-pill a {
    font-size: 17px !important;
}

/* Long labels should wrap instead of truncating with ... */
.company,
.role,
.name,
.desc,
.ptitle,
.pdesc {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    text-wrap: pretty;
}

/* Give text columns more room so wrapping actually happens cleanly (desktop only) */
@media (min-width: 721px) {
    .right {
        min-width: 130px;
    }
}

/* RTL global alignment fixes */
[dir="rtl"] .sub {
    text-align: right !important;
}

[dir="rtl"] .pagehead {
    justify-content: flex-start;
}

[dir="rtl"] .pagehead h1 {
    text-align: right;
}

[dir="rtl"] .rightnav {
    font-size: 15px;
}

[dir="rtl"] .now-page .row {
    grid-template-columns: 1fr 112px 34px;
}

[dir="rtl"] .now-page .right {
    min-width: 112px;
    text-align: left;
}

@media (max-width: 720px) {
    [dir="rtl"] .now-page .row {
        grid-template-columns: 1fr 98px 30px;
        column-gap: 4px;
    }

    [dir="rtl"] .now-page .right {
        min-width: 98px;
        text-align: left;
    }

    [dir="rtl"] .dates {
        margin-right: 0;
        margin-left: 6px;
    }
}