/*
 * 员工 H5 的样式（移动优先）。
 *
 * 【为什么不复用 site.css】官网是给访客看的展示页：大留白、大标题、滚动动效；
 * 员工端是**每天要用的工具**，第一要求是看得清、点得着、在阳光下也读得出来。
 * 两者混在一份文件里，任何一次为官网调的间距都会连带改到员工端。
 *
 * 视觉仍与品牌一致：藏青底（#0A2A4A）+ 青绿强调色（#00BFC4），与后台主题色同源。
 *
 * 触控尺寸：所有可点元素 ≥ 44px（iOS HIG 的下限）—— 员工很多是在通勤路上单手操作。
 */

:root {
    --navy: #0A2A4A;
    --navy-deep: #06192d;
    --teal: #00BFC4;
    --teal-dark: #00989c;
    --surface: rgba(255, 255, 255, .06);
    --surface-strong: rgba(255, 255, 255, .1);
    --line: rgba(255, 255, 255, .14);
    --text: #f2f6fa;
    --text-dim: #9fb3c8;
    --danger: #ff6b6b;
    --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.h5 {
    min-height: 100vh;
    min-height: 100dvh;
    /* 深色底 + 两团很淡的品牌色光晕：让页面有层次，不再是纯色平板 */
    background:
        radial-gradient(900px 520px at 92% -8%, rgba(0, 191, 196, .16), transparent 62%),
        radial-gradient(760px 480px at -12% 108%, rgba(254, 44, 85, .08), transparent 62%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* 刘海屏 / 手势条：用安全区内边距，避免内容被摄像头或圆角裁掉 */
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.h5__app {
    max-width: 560px;      /* 手机上铺满，平板/桌面上收成一条，不至于拉成一行超长的输入框 */
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* 底部 TAB 是 fixed 的，主体要给它让位，否则最后一排卡片会被压住 */
.h5.has-tabbar .h5__app {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}


/* ---------- 底部 TAB（类 APP 导航） ---------- */

.h5-tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 30;
    width: min(100%, 560px);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(6, 25, 45, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.h5-tab {
    flex: 1;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .01em;
}

.h5-tab__icon {
    font-size: 21px;
    line-height: 1;
    filter: grayscale(.7);
    opacity: .8;
}

.h5-tab.is-on {
    color: var(--teal);
    font-weight: 700;
}

.h5-tab.is-on .h5-tab__icon {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);
}

/* AI 悬浮按钮：位于 TAB 栏上方，右侧 */
.h5-fab {
    position: fixed;
    right: max(20px, calc((100vw - 560px) / 2 + 20px));
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 31;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--navy-deep);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 191, 196, .38);
}

.h5-fab:active {
    background: var(--teal-dark);
}


/* ---------- 卡片列表容器 ---------- */

/* 手机上仍是一列（与原来的观感一致）；宽屏下的两列见文件末尾的媒体查询 */
.h5-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- 登录页 ---------- */

.h5-login {
    width: 100%;
    max-width: 420px;        /* 手机上铺满；电脑上是一张居中的登录卡，不拉成超宽表单 */
    margin: 0 auto;
    min-height: calc(100dvh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 8px 0;
}

.h5-login__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.h5-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.h5-brand__mark {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(145deg, #00d7dc 0%, #00a9ae 100%);
    color: var(--navy-deep);
    font-size: 42px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 191, 196, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.h5-login__hero .h5-brand__mark {
    margin-bottom: 10px;
}

.h5-login__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .02em;
}

.h5-login__welcome {
    margin: 0;
    color: var(--teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
}

.h5-login__sub {
    margin: 2px 0 0;
    max-width: 30em;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.h5-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

/* 错误提示：红底描边而不是纯红字 —— 手机在户外时纯色文字对比度不够 */
.h5-alert {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 107, .5);
    border-radius: 12px;
    background: rgba(255, 107, 107, .12);
    color: #ffd9d9;
    font-size: 15px;
}

/* 提示语：说明规则（例如口令强度），比错误提示轻一档 */
.h5-hint {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

/* 表单内的提示（比如"带 * 的是必填"）：左对齐 —— 居中的排版在表单里读起来像标题 */
.h5-hint--form {
    text-align: left;
}

.h5-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.h5-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h5-field__label {
    font-size: 14px;
    color: var(--text-dim);
}

.h5-input {
    width: 100%;
    min-height: 52px;              /* ≥44px 触控下限 */
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;               /* ≥16px：iOS 上更小的字号会让页面被自动放大 */
}

.h5-input:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--surface-strong);
    box-shadow: 0 0 0 3px rgba(0, 191, 196, .16);
}

.h5-btn {
    min-height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: var(--teal);
    color: var(--navy-deep);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.h5-btn:active {
    background: var(--teal-dark);
}

/* 把「借衣服」这类跳转链接做成和按钮一样的整块触控区（不是所有提交都是 form） */
.h5-btn--link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 18px;
}

/* 借还照片：列表里是缩略预览，详情里用 --wide 展示完整一张 */
.h5-photo {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    margin: 10px 0 14px;
}

.h5-photo--wide {
    max-height: 420px;
    object-fit: contain;
}

.h5-loan__empty {
    margin-top: 18px;
}

/* 登录卡片与表单零件（只作用于登录页，不影响请假 / 改密等其它表单的排版） */
.h5-login__card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.h5-input-wrap {
    position: relative;
}

.h5-input-wrap__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    opacity: .75;
    pointer-events: none;
}

.h5-input--with-icon {
    padding-left: 44px;
}

.h5-input--with-toggle {
    padding-right: 50px;
}

.h5-input-wrap__toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
}

.h5-input-wrap__toggle.is-on {
    color: var(--teal);
}

.h5-input-wrap__toggle:active {
    background: var(--surface-strong);
}

.h5-login__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    margin-top: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d7dc 0%, #00b4b9 100%);
    box-shadow: 0 12px 28px rgba(0, 191, 196, .3);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .03em;
}

.h5-login__submit:active {
    background: linear-gradient(135deg, #00c3c8 0%, #009fa4 100%);
}

.h5-login__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
}

.h5-login__onboarding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(0, 191, 196, .32);
    border-radius: 14px;
    background: rgba(0, 191, 196, .07);
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.h5-login__onboarding:active {
    background: rgba(0, 191, 196, .14);
}

.h5-login__langs {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.h5-login__langs a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 12px;
    text-decoration: none;
}

.h5-login__langs a.is-on {
    border-color: var(--teal);
    color: var(--teal);
    font-weight: 700;
}


/* ---------- 功能首页 ---------- */

.h5-home {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* AI 问答：工作台顶部的一条通栏入口，比其他功能重一档 */
.h5-ai-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 191, 196, .45);
    background: linear-gradient(135deg, rgba(0, 191, 196, .24), rgba(0, 191, 196, .06));
    color: var(--text);
    text-decoration: none;
}

.h5-ai-banner:active {
    background: linear-gradient(135deg, rgba(0, 191, 196, .34), rgba(0, 191, 196, .1));
}

.h5-ai-banner__icon {
    font-size: 32px;
    line-height: 1;
}

.h5-ai-banner__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.h5-ai-banner__title {
    font-size: 18px;
    font-weight: 800;
}

.h5-ai-banner__desc {
    font-size: 13px;
    color: var(--text-dim);
}

.h5-ai-banner__arrow {
    color: var(--teal);
    font-size: 24px;
}

/* 功能宫格：手机两列；宽屏四列（见文末媒体查询） */
.h5-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.h5-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 104px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.h5-tile:active {
    background: var(--surface-strong);
}

.h5-tile__icon {
    font-size: 26px;
    line-height: 1;
}

.h5-tile__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.h5-tile__desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* 一张卡 = 一个员工能用的功能；整块可点，右侧箭头提示点得进去 */
.h5-home__card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    text-decoration: none;
    color: var(--text);
    min-height: 76px;
}

.h5-home__card:active {
    background: var(--surface-strong);
}

.h5-home__icon {
    font-size: 26px;
    width: 34px;
    text-align: center;
}

.h5-home__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.h5-home__title {
    font-size: 17px;
    font-weight: 700;
}

.h5-home__desc {
    font-size: 13px;
    color: var(--text-dim);
}

.h5-home__arrow {
    color: var(--text-dim);
    font-size: 22px;
}

/* ---------- 打卡页 ---------- */

.h5-punch__btn {
    width: 100%;
    min-height: 76px;               /* 打卡是单手操作，按钮要大 */
    font-size: 20px;
    margin-top: 8px;
}

.h5-punch__btn:disabled {
    opacity: .6;
}

/* 成功提示（与错误提示同一位置，颜色区分） */
.h5-alert--ok {
    border-color: rgba(0, 191, 196, .5);
    background: rgba(0, 191, 196, .12);
    color: #ccf7f8;
}

/* ---------- 我的考勤 ---------- */

.h5-att__tag {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    background: var(--surface-strong);
    color: var(--text-dim);
}

.h5-att__tag--bad {
    background: rgba(255, 107, 107, .16);
    color: #ffd9d9;
}

.h5-att__note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.h5-att__note summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.h5-att__note p {
    margin: 6px 0 0;
    line-height: 1.6;
}


/* ---------- 我的工资 ---------- */

.h5-wage__hero {
    text-align: center;
}

/* 大数字：员工打开这一页主要就是看它一眼 */
.h5-wage__amount {
    margin: 8px 0 14px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

.h5-wage__amount--small {
    font-size: 28px;
}


/* ---------- 资料（分类标签 + 列表项） ---------- */

.h5-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.h5-chip {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-dim);
    background: var(--surface-strong);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.h5-chip--on {
    color: #06202a;
    background: var(--brand, #00BFC4);
    font-weight: 700;
}

.h5-kb__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
}

.h5-kb__title {
    font-size: 17px;
    font-weight: 700;
}

.h5-kb__summary {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.h5-kb__meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

/* ---------- 顶栏与卡片 ---------- */

.h5-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.h5-top__me {
    display: flex;
    flex-direction: column;
}

.h5-top__name {
    font-size: 18px;
    font-weight: 700;
}

.h5-top__no {
    font-size: 13px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.h5-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--teal);
    text-decoration: none;
    font-size: 15px;
}

.h5-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

/* 登录页底部的「返回首页」：低调、居中 —— 员工每天登录不该被它抢走注意力，
   但误点「员工入口」进来的访客必须找得到出路 */
.h5-link--back {
    align-self: center;
    color: var(--text-dim);
    font-size: 14px;
}

.h5-card__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
}

/* 页面内的分段标题（如「该做的考核」「转正申请」）：比卡片标题大一档，与卡片拉开层次 */
.h5-section-title {
    margin: 24px 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}

/* 档案的「标签 : 值」行：标签暗、值亮，长值可换行 */
.h5-rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h5-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
}

.h5-row dt {
    color: var(--text-dim);
    font-size: 14px;
    flex: 0 0 auto;
}

.h5-row dd {
    margin: 0;
    text-align: right;
    word-break: break-word;
}

/* 登记表里成组的输入（社交账号两行、工作经历两段…）：竖排、组间留白 */
.h5-rowset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.h5-rowset:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* 复选框行（兵役状况）：勾选框与文字一行排开，整行可点 */
.h5-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 15px;
}

.h5-check input {
    width: 22px;
    height: 22px;
    accent-color: var(--teal);
}

/* 语言能力 / 社交账号这类列表 */
.h5-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h5-list__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.h5-list__value {
    color: var(--text-dim);
}

.h5-list__note {
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.h5-note {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
}

/* ---------- 宽屏（电脑端）：同样的功能，把屏幕用起来 ---------- */

/*
 * 员工端是移动优先：手机上是一条 560px 的竖列（单手好用）。
 * 但在电脑上照搬这条竖列 = 两边全是空白、卡片一路往下排 —— 那不叫"电脑端"，只是把手机版放大。
 * 所以宽屏下：
 *   - 只有**卡片列表型**页面（工作台 / 我的考勤 / 我的请假 / 资料 / 工资明细）放宽到 1040px 并排两列；
 *   - **表单型**页面（打卡 / 请假申请 / 离职 / 问 AI）保持 560px 一列：输入框拉成 1000px 宽没法用。
 * 用 :has() 区分这两类（页面里有没有 .h5-grid）。浏览器不支持 :has() 时退回 560px 一列，
 * 也就是现在的样子 —— 不会坏，只是窄。
 */
@media (min-width: 1024px) {
    .h5__app:has(.h5-grid) {
        max-width: 1040px;
        padding: 36px 32px 56px;
    }

    .h5-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    /* 卡片里的文字在宽屏上给一点余量，别让它贴边 */
    .h5-grid .h5-card {
        margin-bottom: 0;
    }

    /* 宽屏上的底部 TAB 收成一条居中的圆角浮条，与手机的观感一致但不横贯整屏 */
    .h5-tabbar {
        bottom: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        overflow: hidden;
    }

    .h5.has-tabbar .h5__app {
        padding-bottom: calc(128px + env(safe-area-inset-bottom));
    }

    .h5-fab {
        bottom: calc(100px + env(safe-area-inset-bottom));
    }

    /* 功能宫格保持两列：壳宽 560px 时四列会把哈萨克语标题挤成一条条竖排 */
    .h5-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 资料在线预览（PDF 用 iframe；Word .docx 用 mammoth 转 HTML） ----------
   深色 H5 里弹出一张"白纸"：读文档要的是对比度和行宽，不是品牌氛围。 */
.h5-preview {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #1b2430;
}
.h5-preview[hidden] { display: none; }

.h5-preview__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid #e6ebef;
    background: #fff;
}
.h5-preview__bar strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    color: var(--navy);
}
.h5-preview__download {
    flex: none;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.h5-preview__close {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f6;
    color: #4a5a6a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.h5-preview__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}
.h5-preview__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.h5-preview__note {
    max-width: 620px;
    margin: 48px auto 0;
    padding: 0 20px;
    color: #5b6b7b;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}
.h5-preview__note + .h5-btn {
    display: block;
    max-width: 320px;
    margin: 20px auto 0;
    text-align: center;
}
.h5-preview__doc {
    max-width: 820px;
    margin: 0 auto;
    padding: 18px 18px 60px;
    font-size: 15px;
    line-height: 1.75;
    color: #1b2430;
    word-wrap: break-word;
}
.h5-preview__doc h1,
.h5-preview__doc h2,
.h5-preview__doc h3,
.h5-preview__doc h4 {
    margin: 1.2em 0 .5em;
    color: var(--navy);
    line-height: 1.35;
}
.h5-preview__doc h1 { font-size: 22px; }
.h5-preview__doc h2 { font-size: 19px; }
.h5-preview__doc h3 { font-size: 17px; }
.h5-preview__doc h4 { font-size: 16px; }
.h5-preview__doc p { margin: .6em 0; }
.h5-preview__doc ul,
.h5-preview__doc ol { padding-left: 1.3em; margin: .6em 0; }
.h5-preview__doc table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: 14px;
}
.h5-preview__doc th,
.h5-preview__doc td {
    border: 1px solid #dbe3e9;
    padding: 6px 8px;
    vertical-align: top;
}
.h5-preview__doc th { background: #f5f8fa; text-align: left; }
.h5-preview__doc img { max-width: 100%; height: auto; }
.h5-preview__doc a { color: var(--teal-dark); }
body.h5-preview-open { overflow: hidden; }
