/* ==========================================================================
   W3 SMS - a single blog article (v3)

   Loaded after home-v3.css and blog-v3.css, whose hero, sidebar boxes, search
   field and category list the page reuses. Everything new is sv3-*, so nothing
   leaks onto other pages. The header and the footer are not touched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hv3 .sv3-hero { padding: clamp(22px, 3vw, 32px) 0 clamp(46px, 5vw, 60px); }

.sv3-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: center; }
.sv3-hero__copy { min-width: 0; }

.sv3-crumbs {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
    max-width: 100%;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .74rem;
    font-weight: 600;
    color: #fff;
}
.sv3-crumbs a { color: #fff; }
.sv3-crumbs a:hover { text-decoration: underline; }
.sv3-crumbs i { font-size: .56rem; opacity: .7; }

.sv3-badge {
    display: block; width: max-content; max-width: 100%;
    margin-top: 12px;
    padding: 5px 14px;
    border-radius: 7px;
    background: linear-gradient(145deg, #2a8bff, #0b5be8);
    font-size: .78rem; font-weight: 700;
    color: #fff;
}
.sv3-badge:hover { filter: brightness(1.08); color: #fff; }

.sv3-hero__title { margin-top: 8px !important; font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.sv3-hero__sub { margin-top: 10px !important; font-size: 1rem; color: #e1ecff; }

.sv3-art { display: flex; justify-content: center; }
.sv3-art svg { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 20px 26px rgba(0, 20, 90, .35)); }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.hv3 .sv3-main { padding: 22px 0 clamp(46px, 6vw, 72px); }
.sv3-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
.sv3-feed { display: grid; gap: 22px; min-width: 0; }

.sv3-article { min-width: 0; }

.sv3-cover { margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: #e9f1ff; box-shadow: 0 14px 34px rgba(18, 63, 160, .14); }
.sv3-cover img { display: block; width: 100%; height: auto; }

.sv3-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .78rem; font-weight: 500; color: #3b5280; }
.sv3-meta > span, .sv3-meta > time { display: inline-flex; align-items: center; gap: 7px; }
.sv3-meta > span > i, .sv3-meta > time > i { color: #3b5280; }
.sv3-share i { color: inherit; }
.sv3-meta__by b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #e8f0ff; font-size: .62rem; font-weight: 800; color: #1a62f0; }

.sv3-share { margin-left: auto; gap: 8px !important; }
.hv3 .sv3-share a, .sv3-share button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: #e8eef9; font-size: .78rem; color: #fff !important; cursor: pointer;
    transition: transform .14s ease, filter .14s ease;
}
.sv3-share a:hover, .sv3-share button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hv3 .sv3-share .is-fb { background: #1877f2; }
.hv3 .sv3-share .is-in { background: #0a66c2; }
.hv3 .sv3-share .is-x { background: #111; }
.hv3 .sv3-share .is-link { background: #e8eef9; color: #1a62f0 !important; }

.sv3-title { margin: 14px 0 12px !important; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; color: #0b1f4d; }

/* ---- what the administrator wrote ---- */
.sv3-body { font-size: 1rem; line-height: 1.85; color: #34476f; overflow-wrap: anywhere; }
.hv3 .sv3-body > * + * { margin-top: 14px; }
.sv3-body a { color: #1a62f0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sv3-body strong, .sv3-body b { color: #0b1f4d !important; }
.sv3-body h2, .sv3-body h3, .sv3-body h4 { font-weight: 800; line-height: 1.3; color: #0b1f4d; }
.sv3-body h2 { margin-top: 28px; font-size: 1.4rem; }
.sv3-body h3 { margin-top: 22px; font-size: 1.15rem; }
.sv3-body h4 { margin-top: 18px; font-size: 1rem; }
.sv3-body ul, .sv3-body ol { padding: 0; margin-left: 0; }
.sv3-body ul { list-style: none; }
.sv3-body ul li { position: relative; padding: 3px 0 3px 30px; }
.sv3-body ul li::before {
    content: "\f00c";
    position: absolute; left: 0; top: 7px;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #17a96b;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif; font-weight: 900; font-size: .6rem;
    color: #fff;
}
.sv3-body ol { list-style: decimal; padding-left: 24px; }
.sv3-body ol li { padding: 3px 0 3px 4px; }
.sv3-body ol li::marker { font-weight: 700; color: #1a62f0; }
.sv3-body blockquote { margin-left: 0; padding: 14px 18px; border-left: 4px solid #1a62f0; border-radius: 0 12px 12px 0; background: #eef5ff; color: #1d3361; }
.sv3-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 28px rgba(18, 63, 160, .14); }
.sv3-body hr { border: 0; border-top: 1px solid #dfe8f7; }
.sv3-body pre { margin: 0; padding: 16px 18px; border-radius: 12px; background: #181c27; overflow-x: auto; font-size: .84rem; line-height: 1.65; color: #e9eefc; }
.sv3-body code { padding: 1px 6px; border-radius: 5px; background: #eef4ff; font-size: .88em; color: #0b3fc4; }
.sv3-body pre code { padding: 0; background: none; color: inherit; }
.sv3-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.sv3-body th, .sv3-body td { padding: 10px 14px; border: 1px solid #e1eaf8; text-align: left; }
.sv3-body th { background: #f3f7ff; color: #0b1f4d; }

.sv3-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sv3-tags li a { display: inline-block; padding: 6px 14px; border: 1px solid #d9e6fb; border-radius: 8px; background: #f0f6ff; font-size: .78rem; font-weight: 600; color: #1a62f0; }
.sv3-tags li a:hover { background: #1a62f0; border-color: #1a62f0; color: #fff; }
.sv3-article > .sv3-tags { margin-top: 22px; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.sv3-comments { display: grid; gap: 18px; padding-top: 6px; }

/* ---- header card ---- */
.sv3-chead {
    position: relative;
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f8ff, #e6f0ff);
    border: 1px solid #dbe8fb;
    overflow: hidden;
}
.sv3-chead__icon {
    flex: 0 0 56px; width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f8bff, #0b4bd0);
    box-shadow: 0 10px 22px rgba(26, 98, 240, .32);
    font-size: 1.3rem; color: #fff;
}
.sv3-chead h2 { margin: 0 !important; font-size: 1.25rem; font-weight: 800; color: #0b1f4d; }
.sv3-chead p { margin-top: 3px !important; font-size: .86rem; color: #4a5d82; }
.sv3-chead__art { position: absolute; right: 22px; top: 50%; width: 130px; height: auto; transform: translateY(-50%); filter: drop-shadow(0 10px 16px rgba(18, 63, 160, .25)); pointer-events: none; }

/* ---- the form ---- */
.sv3-cform { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid #e3ecfa; box-shadow: 0 12px 30px rgba(18, 63, 160, .07); }
.sv3-cform__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sv3-cform__avatar {
    flex: 0 0 52px; width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #3d9bff, #0b4bd0);
    box-shadow: 0 0 0 4px #dbe9ff;
    font-size: 1.3rem; color: #fff;
}
.sv3-cform__head h3 { font-size: 1.15rem; font-weight: 800; color: #0b1f4d; }
.sv3-cform__head p { margin-top: 2px !important; font-size: .82rem; color: #5b6f94; }
.sv3-cform__head p b { color: #e5322d; }

.sv3-cform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }

.sv3-field { position: relative; display: block; }
.sv3-field > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: .95rem; color: #5b6f94; pointer-events: none; }
.sv3-field input, .sv3-field textarea {
    display: block; width: 100%;
    padding: 0 14px 0 42px;
    border: 1px solid #d9e4f5; border-radius: 10px; background: #fff;
    font: inherit; font-size: .9rem; color: #0b1f4d;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.sv3-field input { height: 50px; }
.sv3-field input::placeholder, .sv3-field textarea::placeholder { color: #7889a8; }
.sv3-field input:focus, .sv3-field textarea:focus { outline: 0; border-color: #2f8bff; box-shadow: 0 0 0 4px rgba(47, 139, 255, .16); }

.sv3-field--area > i { top: 18px; transform: none; }
.sv3-field--area textarea { min-height: 130px; padding: 14px 14px 34px 42px; resize: vertical; line-height: 1.6; }
.sv3-count { position: absolute; right: 14px; bottom: 10px; font-size: .74rem; color: #7889a8; pointer-events: none; }
.sv3-count.is-near { color: #d97706; }

.sv3-cform__foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.sv3-cform__foot .hv3-btn { min-width: 210px; justify-content: center; }

/* ---- nothing yet ---- */
.sv3-cempty { padding: 34px 20px; border: 1px dashed #cddcf3; border-radius: 16px; background: #fbfdff; text-align: center; }
.sv3-cempty__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; margin-bottom: 12px;
    border-radius: 50%; background: #e6f0ff;
    box-shadow: 0 0 0 10px #f1f6ff;
    font-size: 1.9rem; color: #5b9bff;
}
.sv3-cempty h3 { font-size: 1.08rem; font-weight: 800; color: #0b1f4d; }
.sv3-cempty p { margin-top: 4px !important; font-size: .86rem; color: #5b6f94; }

/* ---- the comments ---- */
.sv3-clist__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sv3-clist__head h3 { position: relative; padding-left: 14px; font-size: 1.1rem; font-weight: 800; color: #0b1f4d; }
.sv3-clist__head h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: #1a62f0; }

.sv3-sort { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid #d9e4f5; border-radius: 9px; background: #fff; font-size: .8rem; color: #35496f; }
.sv3-sort select { border: 0; background: transparent; font: inherit; font-size: .8rem; color: #0b1f4d; cursor: pointer; }
.sv3-sort select:focus { outline: 0; }

[data-sv3-items] { display: grid; gap: 12px; }
.sv3-comment { display: flex; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e3ecfa; box-shadow: 0 8px 22px rgba(18, 63, 160, .05); }
.sv3-comment__av {
    flex: 0 0 48px; width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.1rem; font-weight: 800; color: #fff;
}
.sv3-av-0 { background: linear-gradient(145deg, #4aa3ff, #1450d8); }
.sv3-av-1 { background: linear-gradient(145deg, #ff8fb1, #e0457f); }
.sv3-av-2 { background: linear-gradient(145deg, #45d98c, #12a35e); }
.sv3-av-3 { background: linear-gradient(145deg, #ffb457, #f0761a); }
.sv3-comment > div { min-width: 0; }
.sv3-comment h4 { font-size: .98rem; font-weight: 800; color: #0b1f4d; }
.sv3-comment time { display: block; margin-top: 1px; font-size: .74rem; color: #5b6f94; }
.sv3-comment p { margin: 8px 0 0 !important; font-size: .9rem; line-height: 1.65; color: #34476f; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sv3-side { position: sticky; top: 92px; }
.sv3-boxhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sv3-boxhead h2 { margin: 0 !important; }
.sv3-boxhead a { font-size: .78rem; font-weight: 700; color: #1a62f0; }
.sv3-boxhead a:hover { text-decoration: underline; }

.sv3-recent li > div > a { margin: 0 0 3px; }
.sv3-recent .bv3-latest__thumb { flex-basis: 66px; width: 66px; height: 58px; }

.sv3-tags--side li a { padding: 5px 12px; font-size: .74rem; }

.sv3-help { padding: 22px 18px 20px; border-radius: 16px; background: #eaf3ff; border: 1px solid #d6e6fc; text-align: center; }
.sv3-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 6px; font-size: 1.9rem; color: #1a62f0; }
.sv3-help h3 { font-size: 1.1rem; font-weight: 800; color: #0b1f4d; }
.sv3-help p { margin: 4px 0 14px !important; font-size: .84rem; color: var(--c-mute); }
.sv3-help .hv3-btn { width: 100%; padding-inline: 14px; font-size: .84rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1099.98px) {
    .sv3-layout { grid-template-columns: minmax(0, 1fr); }
    .sv3-side { position: static; }
}

@media (max-width: 991.98px) {
    .sv3-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .sv3-art { display: none; }
}

@media (max-width: 575.98px) {
    .sv3-share { margin-left: 0; }
    .sv3-form__grid { grid-template-columns: minmax(0, 1fr); }
    .sv3-comment { padding: 14px; }
    .sv3-cform { padding: 18px 16px; }
    .sv3-cform__row { grid-template-columns: minmax(0, 1fr); }
    .sv3-cform__foot .hv3-btn { width: 100%; }
    .sv3-chead { padding: 16px; }
    .sv3-chead__art { display: none; }
    .sv3-clist__head { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Phones and tablets
   -------------------------------------------------------------------------- */

/* The line under "Blog Details" sat on the pale wave at the foot of the hero
   picture, light text on a light patch. More room keeps it on the blue. */
.hv3 .sv3-hero { padding-bottom: clamp(84px, 9vw, 120px); }

/* The breadcrumb is one line that gives up its last item first, not a pill that
   wraps onto two rows and clips its own ends. */
.sv3-crumbs { display: flex; flex-wrap: nowrap; width: max-content; max-width: 100%; }
.sv3-crumbs a, .sv3-crumbs i { flex: 0 0 auto; }
.sv3-crumbs span[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 575.98px) {
    .sv3-hero__title { font-size: 2rem; }
    .sv3-meta { gap: 8px 14px; }
    .sv3-share { width: 100%; justify-content: flex-start; }
    .sv3-cover { margin-inline: -4px; border-radius: 12px; }
}

/* touch targets: the share buttons, the tag badge and the sidebar links */
.hv3 .sv3-share a, .sv3-share button { width: 36px; height: 36px; }
.sv3-badge { padding-block: 8px; }
.sv3-boxhead a { display: inline-flex; align-items: center; min-height: 32px; }
.sv3-recent li > div > a { padding-block: 4px; }
@media (pointer: coarse) {
    .hv3 .sv3-share a, .sv3-share button { width: 42px; height: 42px; }
    .sv3-tags li a { padding-block: 10px; }
}
