/* Город 1005: дизайн поверх старой темы. Подключается последним (frontend/assets/AppAsset.php). */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/literata-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/literata-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/literata-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gorod/literata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/gorod/unbounded-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/gorod/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/gorod/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/gorod/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --pine: #17443a;
    --pine-deep: #0f2e28;
    --ember: #e8622c;
    --ember-dark: #b94515;
    --sun: #f4ae3d;
    --paper: #f5f2ea;
    --card: #fff;
    --ink: #14231f;
    --text: #3c4a45;
    --muted: #6b7772;
    --line: #e6e1d5;
    --mist: #e7ece4;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 46, 40, .05), 0 8px 24px -12px rgba(15, 46, 40, .16);
    --shadow-up: 0 2px 4px rgba(15, 46, 40, .06), 0 22px 40px -18px rgba(15, 46, 40, .3);
    --f-display: 'Unbounded', 'Golos Text', sans-serif;
    --f-serif: 'Literata', Georgia, serif;
    --f-text: 'Golos Text', 'Helvetica Neue', sans-serif;
}

/* ---------- base ---------- */
body { background: var(--paper); color: var(--text); font-family: var(--f-text); font-size: 15px; line-height: 1.6; }
.wrapper { background: var(--paper); }
body p, body li, body dd, body dt, body label, body input, body textarea, body select, body .btn, body .btn-u { font-family: var(--f-text); }
body h1, body h2, body h3, body h4, body h5, body h6 { font-family: var(--f-serif); color: var(--ink); text-shadow: none; }
body a { color: var(--pine); transition: color .18s; }
body a:hover, body a:focus { color: var(--ember-dark); text-decoration: none; }
body :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
::selection { background: var(--sun); color: var(--ink); }
.content { padding-top: 28px; }
body hr { border-top-color: var(--line); }
/* the old theme squares every corner with !important */
.rounded, .rounded-2x { border-radius: 99px !important; }

/* ---------- top bar ---------- */
.wrapper .header-v4 { border: 0; }
.wrapper .header-v4 .topbar-v1 { background: var(--pine-deep); border: 0; }
.wrapper .header-v4 .topbar-v1 .top-v1-contacts { margin: 0; }
.wrapper .header-v4 .topbar-v1 .top-v1-contacts li { padding: 8px 0; color: #b9cbc3; font-size: 12.5px; }
.top-v1-contacts .since { color: var(--sun); font-weight: 600; margin-right: 10px; }
.wrapper .header-v4 .topbar-v1 .top-v1-data li,
.wrapper .header-v4 .topbar-v1 .top-v1-data li:first-child { border: 0; padding: 8px 9px; }
.wrapper .header-v4 .topbar-v1 .top-v1-data li a { color: #e5eee9; font-size: 12.5px; }
.wrapper .header-v4 .topbar-v1 .top-v1-data li i { color: inherit; }
.wrapper .header-v4 .topbar-v1 .top-v1-data li a:hover, .wrapper .header-v4 .topbar-v1 .top-v1-data li a:hover i { color: var(--sun); }

/* ---------- masthead ---------- */
.wrapper .header-v4 .navbar-default { background: #fbf8f0; border: 0; margin: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 112px; padding: 12px 0 14px;
    background: url(../img/brand/header_bg.svg) center bottom / 1100px 84px no-repeat; }
.wrapper .header-v4 .masthead .site-logo { float: none; height: auto; padding: 0; margin: 0; max-width: 452px; flex: 0 1 452px; }
.wrapper .header-v4 .masthead .site-logo img { width: 100%; height: auto; margin: 0; }
.masthead-actions { display: flex; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 9px 16px; min-height: 52px; background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line); border-radius: 99px !important; box-shadow: var(--shadow); font: 600 13px/1.2 var(--f-text); }
body .chip { color: var(--ink); }
body .chip:hover { color: var(--ember-dark); border-color: var(--ember); }
.chip i { font-size: 18px; color: var(--ember); }
.chip img { width: 36px; height: 36px; }
.chip b { font: 600 17px/1 var(--f-display); }
.chip small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

/* ---------- navigation ---------- */
.wrapper .header-v4 .navbar-collapse { background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 10px 22px -20px rgba(15, 46, 40, .5); }
.wrapper .header-v4 .navbar-nav { border: 0; }
.wrapper .header-v4 .navbar-default .navbar-nav > li { border: 0; }
.wrapper .header-v4 .navbar-default .navbar-nav > li > a { border: 0; background: transparent; color: var(--ink); font: 600 14px/20px var(--f-text); text-transform: none; padding: 14px 18px; position: relative; }
.wrapper .header-v4 .navbar-default .navbar-nav > li:first-child > a { padding-left: 0; }
.wrapper .header-v4 .navbar-default .navbar-nav > li > a:after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ember); transform: scaleX(0); transition: transform .22s; }
.wrapper .header-v4 .navbar-default .navbar-nav > li:first-child > a:after { left: 0; }
.wrapper .header-v4 .navbar-default .navbar-nav > li > a:hover:after, .wrapper .header-v4 .navbar-default .navbar-nav > li.active > a:after, .wrapper .header-v4 .navbar-default .navbar-nav > li.open > a:after { transform: scaleX(1); }
.wrapper .header-v4 .navbar-default .navbar-nav > li > a:hover, .wrapper .header-v4 .navbar-default .navbar-nav > .active > a { color: var(--ember-dark); background: transparent; }
.wrapper .header-v4 .dropdown-menu { border: 1px solid var(--line); border-top: 3px solid var(--ember); border-radius: 0 0 12px 12px !important; box-shadow: var(--shadow-up); padding: 8px; }
.wrapper .header-v4 .dropdown-menu > li > a { border: 0; border-radius: 8px !important; padding: 8px 12px; font: 400 14px/1.35 var(--f-text); color: var(--text); }
.wrapper .header-v4 .dropdown-menu > li > a:hover, .wrapper .header-v4 .dropdown-menu > .active > a { background: var(--mist); color: var(--pine-deep); }
.wrapper .header-v4 .badge { background: var(--ember); font: 600 9px/1 var(--f-text); padding: 4px 6px; }
.wrapper .header-v4 .navbar .search-btn { color: var(--pine); padding: 16px 0 16px 16px; }
.wrapper .header-v4 .search-open { border: 1px solid var(--line); border-top: 3px solid var(--ember); border-radius: 0 0 12px 12px !important; box-shadow: var(--shadow-up); }

/* ---------- buttons, forms, headings ---------- */
body .btn-u, body .btn-u:focus { background: var(--pine); border-radius: 99px !important; padding: 8px 18px; font-weight: 600; transition: background .18s; }
body a.btn-u, body a.btn-u:hover { color: #fff; }
body .btn-u:hover, body .btn-u:active { background: var(--ember-dark); color: #fff; }
body .form-control { border-color: var(--line); border-radius: 10px !important; box-shadow: none; }
body .form-control:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(23, 68, 58, .14); }
body .headline { border: 0; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
body .headline:after { content: ''; flex: 1; height: 1px; background: var(--line); }
body .headline h1, body .headline h2, body .headline h3, body .headline h4 { border: 0; margin: 0; padding: 0; font: 600 17px/1.35 var(--f-display); letter-spacing: -.01em; }
body .headline h1:before, body .headline h2:before, body .headline h3:before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: var(--ember); }
body .headline i.fa { display: none; }
.content > .row > .col-md-9 > h1, .content .col-md-9 > h1 { font: 600 26px/1.3 var(--f-display); margin: 0 0 8px; }

/* ---------- home: top stories ---------- */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.story { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.story:nth-child(2) { animation-delay: .06s } .story:nth-child(3) { animation-delay: .12s } .story:nth-child(4) { animation-delay: .18s }
.story:nth-child(5) { animation-delay: .22s } .story:nth-child(6) { animation-delay: .26s } .story:nth-child(n+7) { animation-delay: .3s }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }
.story-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-media img { transform: scale(1.045); }
.story-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
body .story-meta a { position: relative; z-index: 2; color: var(--ember-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
body .story h3 { margin: 0 0 8px; font: 600 17px/1.34 var(--f-serif); }
body .story h3 a { color: var(--ink); font: inherit; }
/* the whole card is clickable */
.story h3 a:after { content: ''; position: absolute; inset: 0; z-index: 1; }
body .story:hover h3 a { color: var(--ember-dark); }
.story-summary { font-size: 13.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-summary p { margin: 0; font-size: inherit; color: inherit !important; }
.story-summary * { color: inherit !important; font-size: inherit !important; }
.story-lead { grid-column: span 2; grid-row: span 2; background: var(--pine-deep); }
.story-lead .story-media { flex: 1; aspect-ratio: auto; min-height: 280px; position: relative; }
.story-lead .story-media img { position: absolute; inset: 0; }
.story-lead .story-body { flex: 0 0 auto; padding: 22px 26px 26px; }
body .story-lead h3 { font-size: 29px; line-height: 1.22; }
body .story-lead h3 a, body .story-lead:hover h3 a { color: #fff; }
body .story-lead:hover h3 a { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 5px; text-decoration-thickness: 2px; }
body .story-lead .story-meta, body .story-lead .story-summary { color: #b9cbc3; }
.story-lead .story-summary { font-size: 15px; }
body .story-lead .story-meta a { color: var(--sun); }

/* ---------- home: categories and catalog ---------- */
body .thumbnail-kenburn { margin-bottom: 14px; }
body .magazine-news-img { border-radius: var(--radius) !important; overflow: hidden; margin-bottom: 12px; background: var(--mist); }
.magazine-news-img img { width: 100%; }
body .magazine-news-img i.grad-blue { display: none; }
body .magazine-badge { left: 12px; bottom: 12px; top: auto; right: auto; border-radius: 99px !important; padding: 4px 12px; background: var(--pine) !important; font: 600 11px/1.6 var(--f-text); }
body .magazine-badge a { color: #fff; }
body .magazine-news h3 { font: 600 19px/1.32 var(--f-serif); text-transform: none; margin: 0 0 8px; }
body .magazine-news h3 a { color: var(--ink); }
body .magazine-news h3 a:hover { color: var(--ember-dark); }
.magazine-news .posts { margin-bottom: 34px; }
body .posts dl { margin-bottom: 0; padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
body .posts dl dt { float: none; width: 60px; flex: 0 0 60px; position: relative; }
body .posts dl dt img { width: 60px; height: 60px; object-fit: cover; margin: 0; border: 0; padding: 0; border-radius: 12px !important; }
body .posts dl dd { margin: 0; min-width: 0; }
body .posts dl dd p { margin: 0; line-height: 1.42; }
body .posts dl dd p a { color: var(--ink); font-size: 14px; font-weight: 500; }
body .posts dl dd p a:hover { color: var(--ember-dark); }
body .posts dl dt .badge { position: absolute; top: -6px; right: -6px; background: var(--ember); }
.blog-thumb-v4 { background: var(--card); border-radius: var(--radius) !important; box-shadow: var(--shadow); padding: 8px 8px 14px; height: 100%; }
.blog-thumb-v4 img { width: 100%; border-radius: 10px !important; }
body .blog-thumb-v4 a { color: var(--ink); font-weight: 600; font-size: 14px; }

/* ---------- sidebar ---------- */
.magazine-page .col-md-3 > .posts { background: var(--card); border-radius: var(--radius) !important; box-shadow: var(--shadow); padding: 18px; margin-bottom: 22px; }
body .magazine-page .col-md-3 .headline { margin-bottom: 8px; }
body .magazine-page .col-md-3 .headline h2, body .magazine-page .col-md-3 .headline h3 { font-size: 13px; }
body .magazine-page .col-md-3 .headline:after { display: none; }
body .magazine-mini-news { padding: 10px 0 0; }
body .magazine-mini-news h3 { font: 600 14.5px/1.38 var(--f-serif); margin: 0 0 6px; }
body .magazine-mini-news h3 a { color: var(--ink); }
body .magazine-mini-news h3 a:hover { color: var(--ember-dark); }
body .magazine-mini-news .post-author { font-size: 12px; margin-bottom: 4px; color: var(--muted); }
body .magazine-mini-news .post-author strong { color: var(--pine); }
body .magazine-mini-news p { font-size: 13px; color: var(--muted); margin: 0; padding-left: 10px; border-left: 2px solid var(--mist); overflow-wrap: anywhere; }
body .magazine-mini-news + hr { margin: 12px 0 0; }

/* ---------- news list ---------- */
body .blog-medium { background: var(--card); border-radius: var(--radius) !important; box-shadow: var(--shadow); margin: 0 0 18px !important; padding: 16px 1px; }
.blog-medium + br { display: none; }
.blog-medium img { width: 100%; border-radius: 12px !important; margin-bottom: 0; }
body .blog-medium h2 { font: 600 21px/1.3 var(--f-serif); margin: 2px 0 8px; text-transform: none; }
body .blog-medium h2 a { color: var(--ink); }
body .blog-medium h2 a:hover { color: var(--ember-dark); }
body .blog-info li, body .blog-info li a { font-size: 12.5px; color: var(--muted); }
body .blog-info li i { color: var(--ember); }
body .pagination > li > a, body .pagination > li > span { border: 0; margin: 0 3px; min-width: 38px; border-radius: 99px !important; background: var(--card); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
body .pagination > .active > a, body .pagination > .active > a:hover { background: var(--pine); color: #fff; }
body .pagination > li > a:hover { background: var(--sun); color: var(--ink); }

/* ---------- article ---------- */
body .log-page.blog-item > .blog { background: var(--card); border-radius: var(--radius) !important; box-shadow: var(--shadow); padding: 30px 38px; }
body .blog-item .blog h1 { font: 700 34px/1.22 var(--f-serif); letter-spacing: -.012em; text-transform: none; margin: 0 0 16px; color: var(--ink); }
.blog-item main { font-family: var(--f-serif); font-size: 18px; line-height: 1.72; color: #24312d; overflow-wrap: break-word; }
.blog-item main p, .blog-item main li { font-family: var(--f-serif); font-size: 18px; line-height: 1.72; color: #24312d; margin-bottom: 18px; }
.blog-item main a { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.blog-item main img, .blog-item .blog-img img { max-width: 100%; height: auto; border-radius: 12px !important; }
.blog-item main blockquote { border-left: 4px solid var(--ember); background: var(--paper); border-radius: 0 12px 12px 0 !important; font-size: 18px; }
body .blog-tags li a { background: var(--mist); border-radius: 99px !important; color: var(--pine-deep); padding: 4px 12px; font-size: 12px; }
body .blog-tags li a:hover { background: var(--sun); color: var(--ink); }

/* ---------- other blocks ---------- */
body .panel, body .table, body .sky-form { border-radius: 12px !important; border-color: var(--line); }
body .sky-form { background: var(--card); box-shadow: var(--shadow); }
body .table { background: var(--card); }
body .alert { border-radius: 12px !important; }

/* ---------- footer ---------- */
.wrapper ~ .footer-v1, .footer-v1 { margin-top: 56px; }
.footer-v1:before { content: ''; display: block; height: 84px; background: url(../img/brand/header_bg.svg) center bottom / 1100px 84px repeat-x; opacity: .9; }
body .footer-v1 .footer { background: var(--pine-deep); border-top: 4px solid var(--ember); padding: 44px 0 30px; }
body .footer-v1 .footer p, body .footer-v1 .footer address { color: #b9cbc3; font-size: 13.5px; line-height: 1.65; }
body .footer-v1 .footer a { color: #fff; }
body .footer-v1 .footer a:hover { color: var(--sun); }
body .footer-v1 .footer-logo { width: 206px; height: auto; opacity: 1; margin-bottom: 18px; }
body .footer-v1 .headline h2 { color: #fff; font-size: 13px; }
body .footer-v1 .headline:after { background: rgba(255, 255, 255, .14); }
body .footer-v1 .link-list li { border-color: rgba(255, 255, 255, .1); }
body .footer-v1 .link-list li a { color: #dbe7e1; }
body .footer-v1 .map-img { background: none !important; }
body .footer-v1 .copyright { background: #0a211c; border: 0; padding: 16px 0 10px; }
body .footer-v1 .copyright p { color: #8fa69d; font-size: 12.5px; }
body .footer-v1 .footer-socials li a { color: #dbe7e1; }
body .footer-v1 .footer-socials li a:hover { color: var(--sun); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .wrapper .header-v4 .masthead .site-logo { flex-basis: 390px; }
    .wrapper .header-v4 .navbar-default .navbar-nav > li > a { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 991px) {
    .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-lead { grid-row: auto; }
    .masthead { min-height: 96px; }
    .masthead-actions .chip span { display: none; }
    .chip { padding: 8px 14px; }
}
@media (max-width: 767px) {
    .masthead { min-height: 0; padding: 14px 15px 30px; background-position: 62% bottom; background-size: 786px 60px; }
    .wrapper .header-v4 .masthead .site-logo { flex: 1 1 auto; max-width: 330px; }
    .masthead-actions { display: none; }
    .wrapper .header-v4 .navbar-toggle { float: none; width: calc(100% - 30px); margin: 10px 15px; border: 0; border-radius: 99px !important; background: var(--pine); display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; }
    .wrapper .header-v4 .navbar-toggle .full-width-menu { float: none; color: #fff; font: 600 14px/1.4 var(--f-text); text-transform: none; padding: 0; }
    .wrapper .header-v4 .navbar-toggle .icon-toggle { float: none; padding: 0; background: none; }
    .wrapper .header-v4 .navbar-toggle .icon-bar { background: #fff; }
    .wrapper .header-v4 .navbar-default .navbar-nav > li:first-child > a { padding-left: 12px; }
    .feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .story-lead { grid-column: auto; }
    .story-lead .story-media { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
    body .story-lead h3 { font-size: 22px; }
    body .headline h1, body .headline h2 { font-size: 15px; }
    body .log-page.blog-item > .blog { padding: 20px 18px; }
    body .blog-item .blog h1 { font-size: 25px; }
    .blog-item main, .blog-item main p, .blog-item main li { font-size: 17px; }
    .blog-medium img { margin-bottom: 12px; }
    .footer-v1:before { height: 60px; background-size: 786px 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .story { animation: none; }
    .story, .story-media img { transition: none; }
}

/* ---------- fixes over the old theme ---------- */
body .magazine-news-img span.magazine-badge { top: auto !important; bottom: 12px !important; left: 12px !important; right: auto !important; width: auto !important; height: auto !important; }
body .posts dl.dl-horizontal:before, body .posts dl.dl-horizontal:after { display: none; }
body .posts dl.dl-horizontal dt { float: none !important; width: 60px !important; margin: 0 !important; text-align: left; overflow: visible; }
body .posts dl.dl-horizontal dd { margin: 0 !important; flex: 1; overflow-wrap: anywhere; }
body .posts dl.dl-horizontal dt img { object-fit: contain; background: var(--card); }
.content .col-md-9 > h1 + hr { margin-top: 12px; }
body .content .col-md-9 > h1 { font-size: 21px; line-height: 1.4; }
body .magazine-news-img { max-height: none; aspect-ratio: 409 / 258; }
body .magazine-news-img img { height: 100%; object-fit: cover; }
body .bus-list.all-buses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body .bus-list.all-buses > li { background: transparent; }
body .bus-list.all-buses a { float: none; width: auto; height: 100%; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px !important; box-shadow: var(--shadow); color: var(--ink); }
body .bus-list.all-buses a:hover { background: var(--pine); border-color: var(--pine); color: #fff; }
body .bus-list.all-buses a i.fa { color: var(--ember); }
@media (max-width: 767px) {
    .wrapper .header-v4 .topbar-v1 .top-v1-contacts { display: none; }
    .masthead { padding-bottom: 52px; background-size: 650px 50px; }
}

/* bus timetables and bank rates */
body .panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px !important; box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px; }
body .crumbs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
body .crumbs li + li:before { content: "/"; margin-right: 8px; opacity: .4; }
body a.more { font-weight: 600; color: var(--pine); }
body .bus-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body .bus-sections h2 { margin-top: 0; }
body .bus-sections h2 a { color: var(--ink); }
body .bus-numbers { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body .bus-numbers a { display: block; min-width: 46px; padding: 8px 10px; text-align: center; font-weight: 700; border: 1px solid var(--line); border-radius: 10px !important; color: var(--ink); }
body .bus-numbers a:hover { background: var(--pine); color: #fff; text-decoration: none; }
body .bus-search { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
body .bus-search label { margin: 0; }
body .bus-search input { margin-top: 6px; }
body .bus-search p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; }
body .bus-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
body .bus-route { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px !important; box-shadow: var(--shadow); color: var(--ink); }
body .bus-route[hidden], body .bus-empty[hidden], body .bus-times[hidden] { display: none; }
body .bus-route:hover { border-color: var(--pine); text-decoration: none; color: var(--ink); }
body .bus-route b { flex: 0 0 58px; padding: 10px 0; text-align: center; background: var(--pine); color: #fff; border-radius: 10px !important; font-size: 14px; }
body .bus-route span { min-width: 0; font-weight: 600; line-height: 1.35; }
body .bus-route small { display: block; font-weight: 400; opacity: .65; }
body .bus-days span { display: inline-block; padding: 2px 8px; margin-right: 2px; border-radius: 6px !important; background: var(--line); font-size: 12px; opacity: .6; }
body .bus-days span.on { background: var(--pine); color: #fff; opacity: 1; }
body .bus-days small { display: inline-block; margin-left: 10px; opacity: .65; }
body .bus-directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
body .bus-directions h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
body .bus-stops { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px !important; }
body .bus-stops li + li { border-top: 1px solid var(--line); }
body .bus-stops a { display: block; padding: 8px 14px; color: var(--ink); }
body .bus-stops a.active { background: var(--pine); color: #fff; }
body .bus-times { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
body .bus-times h4 { font-weight: 700; }
body .bus-times h4 small { display: block; margin-top: 4px; }
body .bus-times ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
body .bus-times li { padding: 8px 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 10px !important; }
body .bus-times li.next { background: var(--ember); border-color: var(--ember); color: #fff; }
body .rates-wrap { padding: 0; overflow-x: auto; }
body .rates { width: 100%; min-width: 680px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
body .rates th, body .rates td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); }
body .rates thead th { background: var(--pine-deep); color: #fff; font-size: 12px; font-weight: 600; border-color: rgba(255,255,255,.12); }
body .rates tbody th { text-align: left; padding-left: 18px; font-weight: 700; color: var(--ink); }
body .rates tbody th img { object-fit: contain; margin-right: 8px; vertical-align: middle; }
body .rates td.buy { background: rgba(244,174,61,.08); }
body .rates td.best { background: var(--sun); color: var(--ink); font-weight: 700; }
body .rates tr.branch { background: var(--paper); font-size: 13px; }
body .rates tr.branch th { font-weight: 400; max-width: 300px; }
body .rates summary { cursor: pointer; }
body .rates details p { margin: 6px 0 0; font-size: 12px; }
body .branches-toggle { border: 0; background: none; padding: 0 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ember); white-space: nowrap; }
@media (max-width: 991px) { body .bus-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body .bus-routes, body .bus-sections, body .bus-search { grid-template-columns: minmax(0, 1fr); } body .bus-search label + label { margin-top: 10px; } }

/* the lead spans two rows: keep its two neighbours short so the lead photo stays landscape */
@media (min-width: 992px) {
    .story:nth-child(2) .story-media, .story:nth-child(3) .story-media { aspect-ratio: 16 / 9; }
    .story:nth-child(2) .story-summary, .story:nth-child(3) .story-summary { display: none; }
    body .story:nth-child(2) h3, body .story:nth-child(3) h3 { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
