/*
Theme Name: Portal F1 Racing Dark 4.3
Theme URI: https://portalf1.si/
Author: Portal F1
Description: Portal F1 Racing Dark 4.3: temni izbirnik dirkališč in podpis avtorja v nogi; ohranja funkcije 4.2.
Version: 4.3.0
Requires at least: 6.0
Requires PHP: 7.4
Template: blocksy
Text Domain: portal-f1-racing-dark-v3
*/
:root {
  --pfr3-black: #090c10;
  --pfr3-bg: #0b0f14;
  --pfr3-card: #12171f;
  --pfr3-card2: #171d26;
  --pfr3-line: #2b333f;
  --pfr3-red: #f11d36;
  --pfr3-red2: #ff3d52;
  --pfr3-text: #f7f8fa;
  --pfr3-muted: #b1bcc9;
  --pfr3-width: 1360px;
}
html { scroll-behavior: smooth; }
html, body.pfr3-body, body.pfr3-body #main-container, body.pfr3-body #wrapper { background: var(--pfr3-bg) !important; }
body.pfr3-body { min-height: 100vh; margin: 0; color: var(--pfr3-text) !important; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.55; }
body.pfr3-body *, body.pfr3-body *::before, body.pfr3-body *::after { box-sizing: border-box; }
body.pfr3-body .pfr3-site { min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; background: var(--pfr3-bg); color: var(--pfr3-text); }
.pfr3-site :where(h1,h2,h3,h4,h5,h6,p,ul,ol,blockquote,figure) { margin-top: 0; }
.pfr3-site :where(h1,h2,h3,h4,h5,h6) { color: var(--pfr3-text); font-family: inherit; line-height: 1.17; letter-spacing: -.028em; }
.pfr3-site :where(a) { text-decoration: none; color: inherit; }
.pfr3-site a:hover { color: var(--pfr3-red2); }
.pfr3-site img, .pfr3-site video, .pfr3-site iframe { max-width: 100%; }
.pfr3-site img { height: auto; }
.pfr3-site :where(button,input,textarea) { font: inherit; }
.pfr3-site :focus-visible { outline: 3px solid var(--pfr3-red2); outline-offset: 3px; }
.pfr3-container { width: min(calc(100% - 48px), var(--pfr3-width)); margin-left: auto; margin-right: auto; }
.pfr3-skip { position: absolute; transform: translateY(-200%); z-index: 10010; padding: 10px 20px; background: #fff; color: #111 !important; }
.pfr3-skip:focus { transform: translateY(0); }
/* Own dark header: replaces the Blocksy header on every template. */
.pfr3-header { position: relative; z-index: 200; background: #080b10 !important; border-bottom: 1px solid #26303d; box-shadow: 0 2px 24px #0007; }
.pfr3-header-inner { min-height: 72px; display: flex; align-items: center; gap: clamp(16px,2.4vw,40px); }
.pfr3-brand { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(21px,2.2vw,30px); line-height: 1; white-space: nowrap; color: #f8fafc !important; font-weight: 900; letter-spacing: -.06em; }
.pfr3-brand:hover { color: #fff !important; }
.pfr3-brand-mark { color: var(--pfr3-red); flex: none; }
.pfr3-brand strong { color: var(--pfr3-red); font-weight: 950; }
.pfr3-main-nav { flex: 1; min-width: 0; }
.pfr3-menu { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; gap: clamp(8px,1.6vw,29px); }
.pfr3-menu li { position: relative; padding: 0; margin: 0; list-style: none; }
.pfr3-menu a { display: flex; align-items: center; min-height: 72px; border-bottom: 3px solid transparent; padding-top: 3px; color: #e8edf4 !important; font-weight: 800; text-transform: uppercase; font-size: 12px; white-space: nowrap; letter-spacing: .005em; }
.pfr3-menu a:hover, .pfr3-menu .current-menu-item > a, .pfr3-menu .current-menu-ancestor > a, .pfr3-menu a[aria-current="page"] { border-bottom-color: var(--pfr3-red); color: #fff !important; }
.pfr3-menu-toggle, .pfr3-search-toggle { -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 40px; height: 40px; cursor: pointer; border: 1px solid #262f3b; border-radius: 10px; background: #1a202a; color: #fff; padding: 0; }
.pfr3-search-toggle:hover, .pfr3-menu-toggle:hover { background: #293341; }
.pfr3-menu-toggle { display: none; }
.pfr3-menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 2px; border-radius: 5px; }
.pfr3-search-drawer { background: #101620; border-top: 1px solid var(--pfr3-line); }
.pfr3-search-drawer[hidden] { display: none !important; }
.pfr3-search-form { padding-top: 20px; padding-bottom: 22px; }
.pfr3-search-form label { display: block; color: var(--pfr3-muted); font-size: 12px; text-transform: uppercase; font-weight: 800; margin-bottom: 9px; }
.pfr3-search-form > div { display: flex; gap: 9px; }
.pfr3-search-form input { min-width: 0; flex: 1; padding: 12px 16px; border-radius: 7px; background: #090d13; border: 1px solid #3a4656; color: #fff; }
.pfr3-search-form button, .pfr3-action { display: inline-flex; align-items: center; gap: 14px; justify-content: center; padding: 12px 20px; border: 0; border-radius: 7px; background: var(--pfr3-red); color: #fff !important; font-size: 14px; font-weight: 850; cursor: pointer; }
.pfr3-search-form button:hover, .pfr3-action:hover { background: #d9132b; color: #fff !important; }
/* Main hero. */
.pfr3-site main { display: block; flex: 1; background: var(--pfr3-bg); }
.pfr3-hero { position: relative; isolation: isolate; background: radial-gradient(circle at 70% 20%,#273244,#0a0d12 60%); height: clamp(420px, 37vw, 570px); overflow: hidden; }
.pfr3-hero-image { position: absolute; z-index: -2; inset: 0; }
.pfr3-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.pfr3-hero-image .pfr3-img-placeholder { width: 100%; height: 100%; }
.pfr3-hero:after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,rgba(5,8,12,.99) 0%,rgba(5,8,12,.94) 18%,rgba(6,9,14,.62) 43%,rgba(5,7,11,.12) 76%),linear-gradient(0deg,rgba(5,8,12,.7),transparent 37%); }
.pfr3-hero-inner { height: 100%; display: flex; align-items: center; }
.pfr3-hero-copy { width: min(100%,570px); padding: 20px 0; }
.pfr3-eyebrow { color: var(--pfr3-red2) !important; display: block; font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: .17em; margin-bottom: 12px; }
.pfr3-hero-copy h1 { max-width: 630px; font-weight: 950; font-size: clamp(32px,4vw,60px); line-height: 1.04; letter-spacing: -.06em; margin-bottom: 16px; }
.pfr3-hero-copy h1 a { color: #fff !important; }
.pfr3-hero-copy p { font-size: clamp(14px,1.25vw,17px); line-height: 1.6; max-width: 500px; margin-bottom: 23px; color: #e0e5ed; }
.pfr3-img-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg,#263344,#10151e 62%,#271821); width: 100%; height: 100%; }
.pfr3-img-placeholder > span { color: #fff9; font-size: clamp(20px,3vw,36px); font-weight: 950; letter-spacing: -.06em; }
.pfr3-img-placeholder b { color: var(--pfr3-red); }
/* Three information panels */
.pfr3-dashboard { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 14px; margin-top: 17px; }
.pfr3-panel { min-width: 0; background: linear-gradient(150deg,#121821,#0d1219); border: 1px solid var(--pfr3-line); border-radius: 9px; padding: 20px; height: 100%; }
.pfr3-panel-title { font-size: 12px; color: #edf1f5; line-height: 1.35; letter-spacing: .11em; text-transform: uppercase; font-weight: 950; border-bottom: 1px solid var(--pfr3-line); padding-bottom: 12px; margin-bottom: 13px; }
.pfr3-race-round { color: var(--pfr3-red2); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pfr3-race h3 { font-size: clamp(22px,2vw,29px); font-weight: 950; letter-spacing: -.045em; margin: 7px 0 8px; }
.pfr3-race-location { color: #e1e8f2; margin: 0; font-size: 13px; }
.pfr3-muted { color: var(--pfr3-muted); font-size: 13px; margin: 8px 0 0; }
.pfr3-countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-top: 20px; }
.pfr3-countdown > div { text-align: center; padding: 10px 2px; background: #080c11; border: 1px solid #252d3b; border-radius: 5px; }
.pfr3-countdown strong { color: #fff; display: block; font-weight: 950; font-size: clamp(22px,2.5vw,34px); letter-spacing: -.04em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pfr3-countdown span { color: #b7c1cd; text-transform: uppercase; font-size: 9px; }
.pfr3-rank { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.pfr3-rank li { list-style: none; margin: 0; padding: 8px 0; display: grid; grid-template-columns: 27px minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid #27313d; font-size: 13px; }
.pfr3-rank li:last-child { border-bottom: none; }
.pfr3-pos { color: var(--pfr3-red2); font-weight: 900; }
.pfr3-rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ecf0f5; }
.pfr3-rank strong { color: #fff; font-weight: 900; font-variant-numeric: tabular-nums; }
.pfr3-panel-caption { color: #b0b9c7; font-size: 11px; margin: 12px 0 0; }
/* Card system & sections */
.pfr3-section-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 30px 0 14px; }
.pfr3-section-heading { display: flex; align-items: center; gap: 13px; font-size: clamp(24px,2vw,32px); font-weight: 950; letter-spacing: -.045em; line-height: 1.25; margin: 0; }
.pfr3-section-heading::before { content: ''; background: var(--pfr3-red); width: 5px; height: 29px; border-radius: 3px; flex: none; }
.pfr3-more { color: var(--pfr3-red2) !important; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.pfr3-cards-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.pfr3-card { min-width: 0; background: var(--pfr3-card); border: 1px solid var(--pfr3-line); border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.pfr3-card:hover { border-color: #7f3343; transform: translateY(-2px); }
.pfr3-card-image { display: block; position: relative; overflow: hidden; background: #19202b; aspect-ratio: 16/10; }
.pfr3-card-image .pfr3-img, .pfr3-card-image .pfr3-img-placeholder { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s; }
.pfr3-card:hover .pfr3-card-image img { transform: scale(1.045); }
.pfr3-card-content { flex: 1; padding: 15px 16px 17px; display: flex; flex-direction: column; align-items: start; }
.pfr3-tag { background: var(--pfr3-red); color: #fff !important; display: inline-block; font-size: 10px; font-weight: 900; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; letter-spacing: .04em; }
.pfr3-tag:hover { background: #ce182e; color: #fff !important; }
.pfr3-card h3 { font-size: clamp(16px,1.17vw,19px); line-height: 1.25; font-weight: 850; margin: 10px 0 17px; letter-spacing: -.03em; }
.pfr3-card h3 a { color: #fff !important; }
.pfr3-card h3 a:hover { color: #ffcbd1 !important; }
.pfr3-card time { margin-top: auto; color: #b0b9c7; font-size: 11px; }
.pfr3-categories { padding: 46px 0 65px; }
.pfr3-category-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pfr3-category-links a { padding: 14px 18px; border: 1px solid #344050; border-radius: 6px; color: #f0f4f7; font-size: 14px; background: #111821; display: flex; gap: 20px; align-items: center; }
.pfr3-category-links span { color: var(--pfr3-red2); }
.pfr3-category-links a:hover { border-color: var(--pfr3-red); }
.pfr3-empty { padding-top: 85px; padding-bottom: 85px; }
/* Unified article and long-form styling */
.pfr3-article-hero { position: relative; min-height: 350px; background: radial-gradient(ellipse at 80% 0%,#253041,#0b0f14 75%); isolation: isolate; display: flex; align-items: end; overflow: hidden; }
.pfr3-article-hero.pfr3-has-image { min-height: clamp(420px,35vw,570px); }
.pfr3-article-hero-photo { position: absolute; inset: 0; z-index: -2; }
.pfr3-article-hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: center 35%; }
.pfr3-article-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#090d13 1%,rgba(9,13,19,.96) 18%,rgba(9,13,19,.45) 60%,rgba(9,13,19,.10) 100%),linear-gradient(90deg,#090d1370,transparent 70%); }
.pfr3-article-head-inner { padding: 70px 0 34px; position: relative; }
.pfr3-article-head-inner h1 { max-width: 980px; font-size: clamp(30px,4.2vw,57px); line-height: 1.1; font-weight: 950; letter-spacing: -.052em; margin: 12px 0 20px; }
.pfr3-crumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 26px; color: #bcc7d5; font-size: 12px; }
.pfr3-crumbs a { color: #c7d2e1; }
.pfr3-crumbs span { color: var(--pfr3-red); }
.pfr3-post-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; color: #c4cedb; font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
.pfr3-post-meta span:first-child { color: #fff; font-weight: 900; }
.pfr3-article-layout { display: grid; grid-template-columns: minmax(0, 1.88fr) minmax(285px, 1fr); gap: clamp(22px,3.5vw,55px); padding-top: 28px; }
.pfr3-article { min-width: 0; }
.pfr3-article-content { max-width: 100%; color: #e1e7ef; font-size: clamp(16px,1.25vw,18px); line-height: 1.84; overflow-wrap: anywhere; }
.pfr3-article-content :where(p,li,span,strong,em,figcaption,label) { color: inherit; }
.pfr3-article-content > p { margin: 0 0 1.4em; }
.pfr3-article-content > p:first-child { font-size: 1.07em; }
.pfr3-article-content :where(h2,h3,h4,h5,h6) { color: #fff !important; font-weight: 900; line-height: 1.3; margin: 1.65em 0 .65em; }
.pfr3-article-content h2 { font-size: clamp(24px,2.3vw,32px); }
.pfr3-article-content h3 { font-size: clamp(20px,1.8vw,26px); }
.pfr3-article-content a { color: #ff687a; text-decoration: underline; text-underline-offset: 3px; }
.pfr3-article-content a:hover { color: #fff; }
.pfr3-article-content :where(ul,ol) { padding-left: 24px; margin-bottom: 1.5em; }
.pfr3-article-content li { margin-bottom: .55em; }
.pfr3-article-content :where(blockquote,.wp-block-quote) { background: #181f29; border-left: 4px solid var(--pfr3-red); margin: 30px 0; padding: 20px 25px; color: #f4f6fa; border-radius: 5px; font-style: italic; }
.pfr3-article-content blockquote p { margin-bottom: .5em; }
.pfr3-article-content :where(figure,.wp-block-image,.wp-block-gallery) { max-width: 100%; margin: 30px 0; }
.pfr3-article-content :where(img,video) { max-width: 100%; height: auto; border-radius: 6px; }
.pfr3-article-content figcaption, .pfr3-article-content .wp-element-caption { color: #aab5c4 !important; font-size: 12px; font-style: normal; }
.pfr3-article-content :where(pre,.wp-block-code) { overflow-x: auto; background: #0c121a; border: 1px solid #303e4e; border-radius: 6px; padding: 20px; color: #f4f5f8; }
.pfr3-article-content :where(code) { background: #1d2732; color: #f6d8dc; padding: 2px 4px; border-radius: 3px; }
.pfr3-article-content pre code { background: transparent; padding: 0; }
.pfr3-article-content :where(table,.wp-block-table table) { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; background: #151b23; color: #e6ecf4; }
.pfr3-article-content :where(th,td) { padding: 12px; border: 1px solid #334050; }
.pfr3-article-content th { background: #252f3b; color: #fff; }
.pfr3-article-content :where(hr) { border: 0; border-top: 1px solid #364455; margin: 32px 0; }
.pfr3-article-content :where(input:not([type="submit"]),select,textarea) { max-width: 100%; background: #131b25; color: #fff; border: 1px solid #465469; }
.pfr3-article-content :where(.wp-block-group,.wp-block-columns,.wp-block-column,.wp-block-cover) { max-width: 100%; }
.pfr3-article-content .has-background:not(.wp-block-cover) { color: inherit; }
.pfr3-article-content .has-text-color { color: inherit !important; }
.pfr3-article-content :where(.wp-block-embed,.wp-block-video) { width: 100%; }
.pfr3-article-content :where(.wp-block-embed__wrapper iframe) { width: 100%; }
.pfr3-article-content :where(.wp-block-button__link) { background: var(--pfr3-red); color: #fff !important; text-decoration: none; }
.pfr3-article-content :where(.wp-block-separator) { border-color: #394556; }
.pfr3-article-content :where(.wp-block-pullquote) { border-top: 3px solid var(--pfr3-red); border-bottom: 3px solid var(--pfr3-red); }
/* Ad slots may be created by plugins, but article text around them stays legible. */
.pfr3-article-content :where(.code-block,.ad-inserter,.adsbygoogle,.wp-block-html) { max-width: 100%; }
.pfr3-article-content :where(.adsbygoogle) { color: inherit; }
.pfr3-post-tags { border-top: 1px solid var(--pfr3-line); margin-top: 30px; padding-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.pfr3-post-tags span { color: #b5c0cb; }
.pfr3-post-tags a { background: #252d3a; padding: 6px 11px; border-radius: 5px; color: #e9edf4; }
.pfr3-share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 28px 0; font-size: 13px; }
.pfr3-share span { color: #b8c4d0; font-weight: 800; }
.pfr3-share a { border: 1px solid #3b4656; padding: 8px 12px; border-radius: 6px; color: #e4ecf5; }
.pfr3-aside { display: flex; flex-direction: column; gap: 14px; }
.pfr3-aside .pfr3-panel { height: auto; }
.pfr3-related { padding: 35px 0 85px; }
.pfr3-related > .pfr3-section-heading { margin: 0 0 18px; }
.pfr3-related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
/* Pages & archive/search templates. */
.pfr3-page-main { padding-top: 45px; padding-bottom: 90px; }
.pfr3-page { max-width: 1020px; margin: auto; }
.pfr3-page-title { font-size: clamp(32px,4vw,54px); font-weight: 950; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid #303949; }
.pfr3-page-cover { margin: 20px 0 36px; }
.pfr3-page-cover img { width: 100%; max-height: 470px; object-fit: cover; border-radius: 8px; }
.pfr3-list-main { padding-top: clamp(40px,5vw,78px); padding-bottom: 90px; }
.pfr3-list-heading { padding-bottom: 30px; margin-bottom: 24px; border-bottom: 1px solid #344151; }
.pfr3-list-heading h1 { margin: 0; font-size: clamp(34px,4vw,54px); font-weight: 950; }
.pfr3-list-intro { max-width: 750px; color: #bfcbd9; margin-top: 18px; }
.pfr3-pagination { padding: 32px 0; }
.pfr3-pagination ul { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pfr3-pagination li { list-style: none; }
.pfr3-pagination a, .pfr3-pagination span { display: inline-block; padding: 8px 13px; background: #1a222e; color: #fff; border-radius: 5px; font-size: 14px; }
.pfr3-pagination .current { background: var(--pfr3-red); }
.pfr3-error { padding-top: 135px; padding-bottom: 150px; }
.pfr3-error h1 { font-size: clamp(34px,4vw,62px); font-weight: 950; margin-bottom: 15px; }
.pfr3-error p { color: var(--pfr3-muted); margin-bottom: 24px; }
/* Single consistent dark footer; no Blocksy 'Trenutno priljubljeno' widgets. */
.pfr3-footer { margin-top: auto; background: #080c12 !important; border-top: 1px solid #2a3442; }
.pfr3-footer-main { display: flex; gap: 28px; justify-content: space-between; padding-top: 40px; padding-bottom: 28px; }
.pfr3-footer-main p { max-width: 460px; margin: 16px 0 0; font-size: 13px; color: #aeb9c7; }
.pfr3-footer-main nav { display: flex; flex-wrap: wrap; gap: 10px 23px; align-items: center; font-size: 13px; color: #e7eaf0; }
.pfr3-footer-bottom { border-top: 1px solid #283340; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; padding-top: 20px; padding-bottom: 23px; font-size: 11px; color: #9baaba; }
.pfr3-footer-bottom a { color: #b8c4d0; text-decoration: underline; }
/* Anticipate global typography/background customizer colors from Blocksy. */
body.pfr3-body .pfr3-site :where(.entry-content,.entry-content p,.entry-content li) { background-color: transparent; }
body.pfr3-body .pfr3-site .pfr3-card h3,
body.pfr3-body .pfr3-site .pfr3-article-head-inner h1,
body.pfr3-body .pfr3-site .pfr3-list-heading h1,
body.pfr3-body .pfr3-site .pfr3-page-title { color: #fff !important; }
/* Responsiveness */
@media(max-width: 1220px) {
  .pfr3-header-inner { gap: 14px; }
  .pfr3-menu { gap: 12px; }
  .pfr3-menu a { font-size: 11px; }
  .pfr3-cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 1000px) {
  .pfr3-dashboard { grid-template-columns: 1fr 1fr; }
  .pfr3-dashboard > div:first-child { grid-column: 1 / -1; }
  .pfr3-menu-toggle { display: grid; order: 3; }
  .pfr3-main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #101720; border-bottom: 1px solid #364251; padding: 8px 25px 20px; box-shadow: 0 15px 35px #0008; }
  .pfr3-main-nav.pfr3-open { display: block; }
  .pfr3-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 18px; max-width: 900px; margin: 0 auto; }
  .pfr3-menu a { min-height: 43px; border-bottom-width: 1px; font-size: 12px; }
  .pfr3-search-toggle { margin-left: auto; }
  .pfr3-article-layout { grid-template-columns: 1fr; }
  .pfr3-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr3-aside .pfr3-race { grid-column: 1/-1; }
}
@media(max-width: 690px) {
  .pfr3-container { width: min(calc(100% - 30px), var(--pfr3-width)); }
  .pfr3-header-inner { min-height: 62px; gap: 8px; }
  .pfr3-brand { font-size: 22px; gap: 5px; }
  .pfr3-brand-mark { width: 43px; height: 26px; }
  .pfr3-search-toggle,.pfr3-menu-toggle { width: 36px; height: 36px; }
  .pfr3-hero { height: 480px; }
  .pfr3-hero-image img { object-position: center; }
  .pfr3-hero:after { background: linear-gradient(0deg,rgba(7,10,15,.99),rgba(7,10,15,.7) 47%,rgba(7,10,15,.16) 90%); }
  .pfr3-hero-inner { align-items: end; }
  .pfr3-hero-copy { padding: 0 0 38px; }
  .pfr3-hero-copy h1 { font-size: clamp(30px,8vw,42px); }
  .pfr3-hero-copy p { font-size: 14px; }
  .pfr3-dashboard { grid-template-columns: 1fr; }
  .pfr3-dashboard > div:first-child { grid-column: auto; }
  .pfr3-cards-grid,.pfr3-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr3-card-content { padding: 13px; }
  .pfr3-card h3 { font-size: 16px; }
  .pfr3-section-bar { align-items: end; }
  .pfr3-section-heading { font-size: 22px; }
  .pfr3-article-hero.pfr3-has-image { min-height: 450px; }
  .pfr3-article-head-inner { padding-top: 90px; padding-bottom: 26px; }
  .pfr3-article-head-inner h1 { font-size: clamp(29px,7.3vw,42px); }
  .pfr3-article-content { font-size: 16px; }
  .pfr3-aside { grid-template-columns: 1fr; }
  .pfr3-aside .pfr3-race { grid-column: auto; }
  .pfr3-footer-main { flex-direction: column; }
}
@media(max-width: 440px) {
  .pfr3-cards-grid,.pfr3-related-grid { grid-template-columns: 1fr; }
  .pfr3-card-image { aspect-ratio: 16/9; }
  .pfr3-menu { grid-template-columns: 1fr; }
  .pfr3-section-bar { flex-wrap: wrap; }
  .pfr3-countdown strong { font-size: 26px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pfr3-site *, .pfr3-site *::before, .pfr3-site *::after { transition: none !important; }
}


/* ───── Portal F1 Racing Dark 3.1 refinements ───── */
/* Angular metallic racing stripes; intentionally subtle behind functional navigation. */
body.pfr3-body .pfr3-header {
  background-color: #080b10 !important;
  background-image:
    linear-gradient(90deg,rgba(6,9,14,.22) 0%,transparent 34%,rgba(6,9,14,.22) 82%),
    repeating-linear-gradient(133deg,transparent 0 70px,rgba(155,164,183,.10) 70px 94px,rgba(65,75,93,.07) 94px 116px,transparent 116px 194px) !important;
  background-position: center;
}
body.pfr3-body .pfr3-footer {
  background-color: #080c12 !important;
  background-image:
    linear-gradient(90deg,#080c12e8 0%,#080c12c4 52%,#080c12e8 100%),
    repeating-linear-gradient(133deg,transparent 0 85px,rgba(147,159,182,.16) 85px 112px,rgba(57,68,84,.11) 112px 132px,transparent 132px 205px) !important;
}
/* Clear, legible About area without overwhelming the original footer. */
.pfr3-footer-main { display: grid; grid-template-columns: minmax(180px,.95fr) minmax(340px,1.8fr) minmax(125px,.55fr); gap: clamp(28px,3vw,52px); align-items: start; padding-top: 47px; padding-bottom: 38px; }
.pfr3-footer-identity p { max-width: 260px; }
.pfr3-footer-about { min-width: 0; }
.pfr3-footer-about h2 { color: #fff !important; font-size: 19px; font-weight: 900; margin: 0 0 13px; padding-left: 12px; border-left: 4px solid var(--pfr3-red); line-height: 1.2; }
.pfr3-footer-about p { font-size: 14px; line-height: 1.75; max-width: 690px; margin: 0; color: #ccd5e0; }
.pfr3-footer-main nav { align-items: start; flex-direction: column; gap: 12px; }
.pfr3-footer-main nav a { color: #d7e0e9; }
/* Native WordPress same-site post embeds; no more bright white rectangles. */
.pfr3-article-content .pfr3-embed-card { display: grid; grid-template-columns: minmax(160px,32%) minmax(0,1fr); background: linear-gradient(145deg,#171f29,#111820) !important; border: 1px solid #364454; border-left: 4px solid var(--pfr3-red); border-radius: 11px; overflow: hidden; margin: 30px 0 34px; color: #ebeff5 !important; box-shadow: 0 12px 38px #0003; }
.pfr3-embed-image { display: block; min-width: 0; background: #101720; }
.pfr3-article-content .pfr3-embed-image img { display: block; width: 100%; height: 100%; min-height: 182px; object-fit: cover; border-radius: 0; }
.pfr3-embed-body { padding: 19px clamp(16px,2vw,29px); min-width: 0; }
.pfr3-embed-eyebrow { display: block; color: #ff5569 !important; font-weight: 850; text-transform: uppercase; letter-spacing: .10em; font-size: 10px; margin-bottom: 9px; }
.pfr3-article-content .pfr3-embed-body h3 { color: #fff !important; font-size: clamp(17px,1.5vw,22px); line-height: 1.25; margin: 0 0 9px; }
.pfr3-embed-body h3 a { text-decoration: none; color: #fff !important; }
.pfr3-embed-body h3 a:hover { color: #ff8290 !important; }
.pfr3-embed-body p { color: #bdc9d8 !important; font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.pfr3-article-content .pfr3-embed-cta { color: #ff6478 !important; font-size: 12px; font-weight: 850; text-transform: uppercase; text-decoration: none; }
/* An iframe itself cannot be recolored by parent CSS: remove visible white borders,
   and style its inner document through embed_head in functions.php. */
.pfr3-article-content :is(iframe.wp-embedded-content,iframe.wp-block-embed__wrapper, .wp-block-embed iframe) { display: block; max-width: 100%; border: 0; border-radius: 10px; background-color: #141b24; }
.pfr3-article-content .wp-block-embed { background: transparent !important; }
/* The Ekipe and Koledar dirk legacy layouts have light cards in saved page content.
   Scope these overrides to JUST those two pages, never third-party advertising. */
.pfr3-special-page .pfr3-article-content :is(
  .wp-block-columns > .wp-block-column,
  .wp-block-post,
  .wp-block-query .wp-block-post,
  .elementor-image-box-wrapper,
  .elementor-post__card,
  .elementor-post,
  .vc_grid-item-mini,
  .vc_gitem-zone-c,
  .pt-cv-ifield,
  .uagb-post__inner-wrap,
  .uagb-infobox__content-wrap,
  .stk-block-column > .stk-column-wrapper,
  .wp-block-group.has-background,
  .wp-block-media-text.has-background
) { background: #151c25 !important; color: #eef3f9 !important; border-color: #323e4d !important; }
.pfr3-special-page .pfr3-article-content :is(.wp-block-columns > .wp-block-column, .wp-block-post, .elementor-post__card, .vc_grid-item-mini, .pt-cv-ifield) { border: 1px solid #323e4d; border-radius: 9px; overflow: hidden; }
.pfr3-special-page .pfr3-article-content :is(.wp-block-columns > .wp-block-column, .wp-block-post, .elementor-post__card, .vc_grid-item-mini, .pt-cv-ifield):hover { border-color: #784054 !important; }
/* Overrides even when a previous theme saved white backgrounds as Gutenberg classes or inline styles. */
.pfr3-special-page .pfr3-article-content :is(
  .has-white-background-color,
  [style*="background-color: #fff"],
  [style*="background-color:#fff"],
  [style*="background-color: rgb(255, 255, 255)"],
  [style*="background-color: #ffffff"],
  [style*="background-color:#ffffff"],
  [style*="background: #fff"],
  [style*="background:#fff"]
) { background-color: #151c25 !important; color: #eff3fa !important; }
.pfr3-special-page .pfr3-article-content :is(h1,h2,h3,h4,h5,h6,.wp-block-post-title,.elementor-heading-title,.vc_gitem-post-data-source-post_title) { color: #f6f8fc !important; }
.pfr3-special-page .pfr3-article-content :is(.wp-block-column,.wp-block-post,.elementor-post__card,.vc_grid-item-mini,.pt-cv-ifield) a:hover { color: #ff6175 !important; }
.pfr3-special-page .pfr3-article-content :is(.has-black-color,.has-very-dark-gray-color) { color: #e8eef7 !important; }
.pfr3-special-page .pfr3-article-content :is(.has-vivid-red-color,.has-red-color) { color: var(--pfr3-red) !important; }
.pfr3-special-page .pfr3-article-content :is(.wp-block-column, .wp-block-post) img { display: block; max-width: 100%; height: auto; }
.pfr3-special-page .pfr3-article-content .wp-block-columns { gap: clamp(12px,1.5vw,22px); }
/* Tablet and phone: readers should see the news first. Desktop order is untouched. */
@media (max-width: 1024px) {
  .pfr3-home-content { display: flex; flex-direction: column; }
  .pfr3-home-content > .pfr3-news-block { order: 1; }
  .pfr3-home-content > .pfr3-dashboard { order: 2; margin-top: 28px; margin-bottom: 12px; }
  .pfr3-home-content > .pfr3-categories { order: 3; }
  .pfr3-home-content .pfr3-news-block .pfr3-section-bar { margin-top: 24px; }
  .pfr3-footer-main { grid-template-columns: minmax(180px,.8fr) minmax(0,1.7fr); }
  .pfr3-footer-main nav { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 690px) {
  .pfr3-footer-main { grid-template-columns: minmax(0,1fr); padding-top: 34px; }
  .pfr3-footer-main nav { grid-column: auto; }
  .pfr3-footer-about p { font-size: 13px; line-height: 1.7; }
  .pfr3-article-content .pfr3-embed-card { grid-template-columns: 1fr; }
  .pfr3-article-content .pfr3-embed-image img { height: 185px; min-height: 0; }
  .pfr3-embed-body { padding: 18px; }
  .pfr3-special-page .pfr3-article-content .wp-block-columns { gap: 14px; }
}

/* Runtime fallback for hard-coded light backgrounds in older page builder cards. */
.pfr3-special-page .pfr3-article-content .pfr3-auto-dark-card {
  background: #151c25 !important;
  color: #eef3f9 !important;
}


/* ─── Portal F1 Racing Dark 3.2 refinements ─── */
/* Next Grand Prix: country + race round, then event download. */
.pfr3-race-heading { display: flex; align-items: center; gap: 12px; margin-top: 5px; margin-bottom: 7px; min-width: 0; }
.pfr3-race-heading h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pfr3-race-flag { display: block; flex: 0 0 auto; width: 48px; height: 36px !important; object-fit: contain; border-radius: 4px; background: transparent; }
.pfr3-calendar-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; min-height: 40px; padding: 9px 13px; background: #24202b; color: #f4f6fa !important; border: 1px solid #774257; border-radius: 7px; font-size: 12px; font-weight: 850; text-decoration: none !important; transition: background .15s ease,border-color .15s ease; }
.pfr3-calendar-link svg { flex: none; color: #ff5369; }
.pfr3-calendar-link:hover { color: #fff !important; background: #34212d; border-color: #f11d36; }
/* Standings: show the first five immediately, with an accessible native expander. */
.pfr3-standings-expand { margin: 9px 0 0; }
.pfr3-standings-expand summary { display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 12px; cursor: pointer; padding: 11px 12px; border: 1px solid #424d5c; border-radius: 7px; background: #202632; color: #f5f7fb; font-size: 12px; font-weight: 850; }
.pfr3-standings-expand summary::-webkit-details-marker { display: none; }
.pfr3-standings-expand summary:hover { border-color: #f11d36; background: #262c38; }
.pfr3-standings-expand summary:focus-visible { outline: 3px solid #ff485c; outline-offset: 3px; }
.pfr3-expand-icon { color: #ff485c; font-size: 20px; line-height: .8; transform-origin: 50% 50%; transition: transform .15s; }
.pfr3-standings-expand[open] .pfr3-expand-icon { transform: rotate(180deg); }
.pfr3-standings-expand .pfr3-rank { margin-top: 5px; border-top: 1px solid #2e3745; }
/* All static team profile pages beneath /ekipe/ share the same dark panels. */
.pfr3-team-page .pfr3-article-content :is(.wp-block-columns,.wp-block-group,.wp-block-media-text,.wp-block-column),
.pfr3-team-page .pfr3-article-content :is(.stk-block,.stk-inner-blocks,.elementor-widget-wrap,.elementor-container) {
  color: #e8edf5;
}
.pfr3-team-page .pfr3-article-content :is(
  .wp-block-group.has-background,.wp-block-column.has-background,.wp-block-media-text.has-background,
  .wp-block-cover__inner-container,.elementor-widget-container,.elementor-column-wrap,
  .wp-block-columns > .wp-block-column,.stk-block-column > .stk-column-wrapper
) { background-color: #151c25 !important; color: #f0f3f7 !important; }
.pfr3-team-page .pfr3-article-content :is(.wp-block-columns > .wp-block-column,.wp-block-group.has-background,.wp-block-media-text.has-background) { border-radius: 8px; }
.pfr3-team-page .pfr3-article-content :is(h1,h2,h3,h4,p,strong,em,span,li) { color: inherit; }
.pfr3-team-page .pfr3-article-content :is(.has-white-background-color,.has-background[style],.has-background) { border-color: #333d4d !important; }
.pfr3-team-page .pfr3-article-content a:not(.wp-block-button__link) { color: #ff6478; }
.pfr3-team-page .pfr3-article-content img { background: transparent; }
/* Recolored Gutenberg-style white text surfaces; images (including brand logos), ads and iframes are untouched. */
.pfr3-special-page .pfr3-article-content .pfr3-auto-dark-card :is(h1,h2,h3,h4,h5,p,span,strong,li) { color: #eaf0f8; }
@media (max-width: 690px) {
  .pfr3-race-heading { gap: 9px; }
  .pfr3-race-flag { width: 40px; height: 34px !important; }
}


/* 3.2.1: desktop related-article embeds should use the full content width,
   not leave a large empty area on the right side. */
.pfr3-article-content :is(.wp-block-embed,.wp-block-embed-wordpress,figure.wp-block-embed) {
  width: 100% !important;
  max-width: 100% !important;
}
.pfr3-article-content .wp-block-embed__wrapper,
.pfr3-article-content .pfr3-embed-card {
  display: grid;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (min-width: 691px) {
  .pfr3-article-content .pfr3-embed-card {
    grid-template-columns: minmax(235px, 29%) minmax(0, 1fr);
    align-items: stretch;
  }
  .pfr3-article-content .pfr3-embed-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }
  .pfr3-article-content .pfr3-embed-body > * {
    max-width: none !important;
    width: 100%;
  }
}



/* 3.2.2: Explicit grid placement for related article previews.
   Some WordPress block/embed filters insert an extra element between the
   thumbnail and the content. Auto-placement then puts the content in the
   *first* column of the next row, creating the narrow text shown on desktop.
   These explicit locations keep image left + readable copy right regardless
   of such extra nodes, without affecting other blocks or adverts. */
@media (min-width: 691px) {
  body.pfr3-body .pfr3-article-content .pfr3-embed-card {
    display: grid !important;
    grid-template-columns: minmax(190px, 32%) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, auto);
    align-items: stretch;
    width: 100% !important;
    min-width: 0;
  }
  body.pfr3-body .pfr3-article-content .pfr3-embed-card > .pfr3-embed-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    align-self: stretch;
  }
  body.pfr3-body .pfr3-article-content .pfr3-embed-card > .pfr3-embed-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    max-width: none !important;
    align-self: center;
    width: 100% !important;
  }
  body.pfr3-body .pfr3-article-content .pfr3-embed-card > .pfr3-embed-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px;
    object-fit: cover;
  }
  body.pfr3-body .pfr3-article-content .pfr3-embed-body h3 {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: none !important;
  }
}
/* Discard only empty separators injected inside this particular card. */
body.pfr3-body .pfr3-article-content .pfr3-embed-card > :is(p:empty,div:empty,br) { display: none !important; }
@media (max-width: 690px) {
  body.pfr3-body .pfr3-article-content .pfr3-embed-card { display: grid !important; grid-template-columns: minmax(0,1fr) !important; }
  body.pfr3-body .pfr3-article-content .pfr3-embed-card > .pfr3-embed-image { grid-column: 1 !important; grid-row: 1 !important; }
  body.pfr3-body .pfr3-article-content .pfr3-embed-card > .pfr3-embed-body { grid-column: 1 !important; grid-row: 2 !important; width: 100% !important; }
}


/* Portal F1 v3.3.0 — expandable, dark circuit information inside the next-race card. */
.pfr3-race .pfr3-track-details { margin-top: 16px; border-top: 1px solid #303a49; color: #e9eef7; }
.pfr3-race .pfr3-track-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; padding: 17px 3px 2px; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .015em; list-style: none; }
.pfr3-race .pfr3-track-details > summary::-webkit-details-marker { display: none; }
.pfr3-race .pfr3-track-details > summary:hover { color: #ff6578; }
.pfr3-race .pfr3-track-details > summary:focus-visible { outline: 2px solid #ff5268; outline-offset: 4px; border-radius: 3px; }
.pfr3-track-summary-open { display: none; }
.pfr3-track-details[open] .pfr3-track-summary-open { display: inline; }
.pfr3-track-details[open] .pfr3-track-summary-closed { display: none; }
.pfr3-track-chevron { margin-left: auto; flex: none; color: #ff3852; transition: transform .2s ease; }
.pfr3-track-details[open] .pfr3-track-chevron { transform: rotate(180deg); }
.pfr3-track-content { padding: 17px 0 1px; animation: pfr3-track-reveal .15s ease; }
@keyframes pfr3-track-reveal { from { opacity: .75; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.pfr3-track-intro { display: flex; flex-direction: column; gap: 2px; margin: 0 0 13px; }
.pfr3-track-intro strong { font-size: 15px; color: #fff; line-height: 1.35; }
.pfr3-track-intro span { font-size: 12px; color: #aab6c6; }
.pfr3-track-diagram { padding: 9px 15px; text-align: center; border: 1px solid #283649; border-radius: 8px; background: radial-gradient(ellipse at center,#1e2733,#0a1018 80%); margin-bottom: 15px; }
.pfr3-track-outline { width: 100%; max-width: 410px; height: auto; display: block; margin: auto; }
.pfr3-track-halo { fill: none; stroke: rgba(235,45,70,.15); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.pfr3-track-stroke { fill: none; stroke: url(#pfr3-track-stroke); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.pfr3-track-diagram > span { display: block; margin-top: 2px; color: #929eae; font-size: 10px; }
.pfr3-track-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pfr3-track-stat { background: #0b111a; border: 1px solid #283440; padding: 12px; border-radius: 6px; min-width: 0; }
.pfr3-track-stat span { display: block; margin-bottom: 4px; color: #aebccf; font-size: 10px; }
.pfr3-track-stat strong { display: block; color: #fff; font-size: clamp(17px,1.6vw,21px); line-height: 1.2; }
.pfr3-track-record { font-size: 11px; margin: 9px 0 20px; color: #bac8d8; }
.pfr3-track-subtitle { color: #fff !important; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin: 20px 0 10px; font-weight: 900; }
.pfr3-track-winners { padding: 0; margin: 0 0 15px; list-style: none; }
.pfr3-track-winners li { list-style: none; display: grid; grid-template-columns: 39px minmax(0,1fr); column-gap: 9px; row-gap: 1px; align-items: baseline; border-bottom: 1px solid #273341; padding: 9px 1px; }
.pfr3-track-winners li > span { grid-row: 1/3; color: #ff5269; font-size: 12px; font-weight: 850; }
.pfr3-track-winners li > strong { min-width: 0; font-size: 12px; color: #f0f4fa; overflow-wrap: break-word; }
.pfr3-track-winners li > small { font-size: 10px; color: #aab7c8; }
.pfr3-track-map-header { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px; }
.pfr3-track-map-header h4 { margin-bottom: 9px; }
.pfr3-track-map-header a { font-size: 10px; color: #ff647b !important; text-decoration: none; }
.pfr3-track-map-header a:hover { color: white !important; }
.pfr3-track-map-box { position: relative; width: 100%; background: #101721; border: 1px solid #344151; border-radius: 8px; overflow: hidden; }
.pfr3-track-map-box iframe { display: block; width: 100%; height: 240px; border: 0; background: #101721; }
.pfr3-track-map-prompt { display: none; color: #a7b8c9; text-align: center; font-size: 12px; padding: 10px; }
.pfr3-track-note { font-size: 11px; color: #bec8d5; margin: 9px 0; }
.pfr3-track-credit { font-size: 10px; color: #8395aa; line-height: 1.5; margin: 8px 0 3px; }
.pfr3-track-credit a { color: #f36b80 !important; }
@media (max-width: 690px) { .pfr3-track-map-box iframe { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .pfr3-track-content { animation: none; } .pfr3-track-chevron { transition: none; } }

/* ================================================
   PORTAL F1 RACING DARK 4.0 · RACE CENTER + TICKER
   This layer intentionally keeps all v3.3 visuals intact.
   ================================================ */
.pfr4-ticker { background: #10151d; border-bottom: 1px solid #283240; color: #eaf0f6; position: relative; z-index: 5; }
.pfr4-ticker-inner { display: flex; align-items: center; gap: 18px; height: 40px; overflow: hidden; }
.pfr4-ticker-label { flex: 0 0 auto; display: flex; align-items: center; height: 100%; padding-right: 19px; border-right: 1px solid #364051; font-size: 10px; font-weight: 950; color: #ff3d57; letter-spacing: .095em; }
.pfr4-ticker-label::before { content: ''; height: 7px; width: 7px; background: #f11d36; display: inline-block; border-radius: 50%; margin-right: 10px; }
.pfr4-ticker-viewport { overflow: hidden; flex: 1 1 auto; min-width: 0; position: relative; mask-image: linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent); }
.pfr4-ticker-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.pfr4-ticker-list { list-style: none; display: flex; flex: 0 0 auto; align-items: center; gap: 28px; white-space: nowrap; margin: 0; padding: 0 28px 0 0; }
.pfr4-ticker-list li { list-style: none; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; }
.pfr4-ticker-list a { color: #e2e9f2 !important; text-decoration: none; }
.pfr4-ticker-list a:hover,.pfr4-ticker-list a:focus-visible { color: #ff6d7f !important; }
.pfr4-ticker-dot { background: #ed2543; width: 4px; height: 4px; border-radius: 50%; flex: none; }
.pfr4-ticker-all { color: #f7fafc !important; font-weight: 800; font-size: 10px; flex: 0 0 auto; text-decoration: none; padding-left: 14px; border-left: 1px solid #354254; }
.pfr4-ticker-all:hover { color: #ff556c !important; }
.pfr4-ticker-track.pfr4-is-scrolling { animation: pfr4-ticker-move var(--pfr4-duration,65s) linear infinite; }
.pfr4-ticker-viewport:is(:hover,:focus-within) .pfr4-ticker-track { animation-play-state: paused; }
@keyframes pfr4-ticker-move { to { transform: translateX(var(--pfr4-shift,-1000px)); } }

body.pfr3-body .pfr4-center { max-width: var(--pfr3-width); padding-top: clamp(28px,4.5vw,66px); padding-bottom: 85px; }
.pfr4-center :where(h1,h2,h3,h4) { color: #fff !important; }
.pfr4-center-hero { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #2e394a; border-radius: 12px; min-height: 260px; background: radial-gradient(ellipse at 76% 75%, #331c2a 0%,transparent 60%),linear-gradient(120deg,#161c26,#0b1119); display: flex; align-items: center; padding: clamp(26px,4.5vw,58px); }
.pfr4-center-hero:after { position: absolute; inset: 0; content: ''; z-index: -1; background: repeating-linear-gradient(128deg,transparent 0 52px,rgba(255,255,255,.025) 53px 83px,transparent 84px 165px); pointer-events: none; }
.pfr4-center-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.pfr4-kicker { display: inline-block; color: #ff4c66; font-weight: 900; font-size: 11px; line-height: 1.35; letter-spacing: .09em; }
.pfr4-center-hero h1 { font-size: clamp(37px,6.3vw,75px); letter-spacing: -.065em; line-height: 1.02; margin: 12px 0 18px; font-weight: 950; }
.pfr4-center-hero h1 span { color: #f72b49; }
.pfr4-center-hero p { color: #c3cdd9; font-size: clamp(14px,1.35vw,17px); max-width: 610px; margin: 0 0 20px; line-height: 1.65; }
.pfr4-center-hero-number { position: absolute; font-size: clamp(115px,19vw,270px); line-height: .8; font-weight: 1000; letter-spacing: -.12em; right: -10px; bottom: -12px; color: rgba(255,255,255,.045); pointer-events: none; }
.pfr4-center-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pfr4-center-chips a { border: 1px solid #485466; border-radius: 5px; padding: 7px 10px; color: #f3f6fb !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.pfr4-center-chips a:hover { border-color: #f11d36; background: #301523; }
.pfr4-center-section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; margin: 34px 0 15px; padding-bottom: 12px; border-bottom: 1px solid #2f3a48; }
.pfr4-center-section-heading h2 { margin: 0; padding-left: 13px; border-left: 4px solid #ef2140; font-size: clamp(20px,2.1vw,27px); font-weight: 950; letter-spacing: -.025em; line-height: 1.25; }
.pfr4-center-section-heading > span { font-size: 12px; color: #afbdcd; }
.pfr4-center-section-heading > a { color: #ff637a; font-size: 12px; font-weight: 800; }
.pfr4-center-columns { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
.pfr4-center-columns > * { min-width: 0; }
.pfr4-center-next > .pfr3-panel { height: 100%; }
.pfr4-panel { border: 1px solid #313b4b; background: linear-gradient(145deg,#171d27,#11161e); border-radius: 11px; padding: clamp(17px,2vw,23px); min-width: 0; }
.pfr4-panel h3 { padding: 0 0 13px; margin: 0 0 15px; border-bottom: 1px solid #364253; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 900; }
.pfr4-subtitle,.pfr4-result-subtitle { color: #f66c80; font-size: 12px; font-weight: 800; margin: 0 0 14px; }
.pfr4-sessions ol,.pfr4-results-list { padding: 0; margin: 0; list-style: none; }
.pfr4-sessions ol li { padding: 10px 0; border-bottom: 1px solid #303949; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pfr4-sessions ol li span { color: #e3ebf4; font-size: 12px; }
.pfr4-sessions ol li strong { color: #f5f7fa; font-size: 11px; text-align: right; font-weight: 850; }
.pfr4-results-list li { list-style: none; display: flex; gap: 9px; padding: 9px 0; align-items: center; border-bottom: 1px solid #303949; }
.pfr4-result-place { min-width: 19px; color: #fd455f; font-size: 13px; font-weight: 900; }
.pfr4-result-name { flex: 1; min-width: 0; color: #f2f5fa; font-size: 12px; font-weight: 750; line-height: 1.28; }
.pfr4-result-name small { display: block; color: #a6b2c2; font-size: 10px; margin-top: 4px; font-weight: 500; }
.pfr4-result-time { color: #c2ccda; font-size: 10px; text-align: right; max-width: 100px; overflow-wrap: anywhere; }
.pfr4-caption { color: #9daebf; font-size: 10px; line-height: 1.5; margin-top: 16px; }
.pfr4-muted { color: #b9c6d6; }
.pfr4-section { margin-top: 44px; }
.pfr4-circuit-explorer { background: linear-gradient(135deg,#151c26,#0d131b); border: 1px solid #344050; border-radius: 11px; overflow: hidden; }
.pfr4-circuit-top { padding: 19px clamp(16px,3vw,28px); border-bottom: 1px solid #344050; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pfr4-circuit-top label { color: #e4ebf3; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .055em; }
.pfr4-circuit-top select { background: #0d131b; color: #f6f8fa; border-radius: 5px; border: 1px solid #546173; padding: 11px 36px 11px 12px; width: min(100%,480px); font-size: 13px; cursor: pointer; }
.pfr4-circuit-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); min-height: 345px; }
.pfr4-circuit-info { padding: clamp(20px,3vw,34px); }
.pfr4-circuit-info h3 { font-size: clamp(25px,3vw,38px); font-weight: 950; letter-spacing: -.04em; line-height: 1.1; margin: 12px 0 6px; }
.pfr4-location { margin: 0 0 21px; color: #bfcbd7; font-size: 13px; }
.pfr4-facts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.pfr4-facts-grid > div { background: #0c1119; border: 1px solid #303b4c; border-radius: 7px; padding: 14px 11px; }
.pfr4-facts-grid small { display: block; color: #a9b5c5; font-size: 10px; margin-bottom: 5px; }
.pfr4-facts-grid strong { font-weight: 900; color: #fff; font-size: clamp(15px,1.4vw,19px); overflow-wrap: anywhere; }
.pfr4-circuit-holder { margin: 17px 0 7px; color: #b8c5d2; font-size: 12px; }
.pfr4-circuit-source { color: #ff6b81 !important; font-size: 11px; }
.pfr4-circuit-map { padding: 16px; background: radial-gradient(ellipse at center,#232b35,#0b1118 78%); border-left: 1px solid #344050; position: relative; display: flex; flex-direction: column; justify-content: stretch; min-width: 0; }
.pfr4-map-placeholder { min-height: 282px; border-radius: 7px; border: 1px dashed #465367; background: repeating-linear-gradient(-35deg,transparent 0 40px,#ffffff04 41px 70px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 13px; padding: 25px; color: #d9e3ed; font-size: 14px; font-weight: 850; }
.pfr4-map-glyph { font-size: 57px; line-height: 1; font-weight: 300; color: #f13b56; }
.pfr4-map-placeholder button { border-radius: 6px; border: none; color: #fff; background: #e91c38; cursor: pointer; padding: 11px 17px; font: inherit; font-size: 12px; font-weight: 900; }
.pfr4-map-placeholder button:hover { background: #fd425a; }
.pfr4-map-placeholder button:disabled { background: #4c5561; cursor: not-allowed; }
.pfr4-map-placeholder small { font-size: 11px; font-weight: 500; color: #aebccc; }
.pfr4-circuit-map iframe { border: 0; display: block; width: 100%; min-height: 282px; height: 100%; border-radius: 7px; background: #15202b; flex: 1; }
.pfr4-circuit-map iframe[hidden],.pfr4-map-placeholder[hidden] { display: none !important; }
.pfr4-map-bottom { padding: 8px 3px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; color: #9eabba; font-size: 10px; }
.pfr4-map-bottom a { color: #ff6078 !important; }
.pfr4-season-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.pfr4-season-race { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 19px 15px; border-radius: 8px; background: #141a23; border: 1px solid #333f50; }
.pfr4-season-race.pfr4-is-upcoming { border-color: #663446; }
.pfr4-season-round { color: #ff5067; font-size: 10px; letter-spacing: .07em; font-weight: 900; }
.pfr4-season-race strong { color: #fff; font-size: 15px; line-height: 1.34; }
.pfr4-season-race > span:not(.pfr4-season-round) { color: #bac5d1; font-size: 11px; }
.pfr4-season-race time { margin-top: auto; color: #fff; font-size: 12px; font-weight: 850; }
.pfr4-center-news .pfr3-cards-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 1120px) {
  .pfr4-center-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr4-center-next { grid-column: 1 / -1; }
  .pfr4-season-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .pfr4-center-columns { grid-template-columns: minmax(0,1fr); }
  .pfr4-center-next { grid-column: auto; }
  .pfr4-circuit-layout { grid-template-columns: 1fr; }
  .pfr4-circuit-map { border-left: 0; border-top: 1px solid #344050; }
  .pfr4-season-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr4-center-news .pfr3-cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr4-ticker-inner { gap: 9px; }
  .pfr4-ticker-label { font-size: 9px; padding-right: 8px; letter-spacing: 0; }
  .pfr4-ticker-all { display: none; }
  .pfr4-ticker-viewport { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
  .pfr4-ticker-track.pfr4-is-scrolling { animation: none; }
}
@media (max-width: 480px) {
  .pfr4-center-hero { padding: 24px 19px; }
  .pfr4-center-hero-number { right: 6px; bottom: 6px; }
  .pfr4-season-grid { grid-template-columns: minmax(0,1fr); }
  .pfr4-circuit-top select { width: 100%; }
  .pfr4-center-news .pfr3-cards-grid { grid-template-columns: minmax(0,1fr); }
  .pfr4-center-section-heading { margin-top: 26px; }
  .pfr4-ticker-list li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pfr4-ticker-track { animation: none !important; }
  .pfr4-ticker-viewport { overflow-x: auto; mask-image: none; }
}


/* ================================================
   Portal F1 4.2 — verified circuit data, mobile race strip, moving news.
   Desktop layouts remain the same.
   ================================================ */
.pfr42-mobile-race { display: none; }
/* The ticker animates on handheld screens too, rather than reverting to manual scrolling. */
@media (max-width: 760px) {
  .pfr4-ticker-viewport { overflow: hidden !important; overflow-x: hidden !important; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent,#000 4%,#000 96%,transparent); }
  .pfr4-ticker-track.pfr4-is-scrolling { animation: pfr4-ticker-move var(--pfr4-duration,65s) linear infinite !important; }
  .pfr4-ticker-viewport:focus-within .pfr4-ticker-track { animation-play-state: paused !important; }
  @media (hover: none) { .pfr4-ticker-viewport:hover .pfr4-ticker-track { animation-play-state: running !important; } }
}
@media (max-width: 1024px) {
  .pfr42-mobile-race { display: block; background: #090c11; border-bottom: 1px solid #343d4a; color: #fff; position: relative; z-index: 3; }
  .pfr42-mobile-race-shell { max-width: 100%; }
  .pfr42-race-details { background: transparent; }
  .pfr42-race-details > summary { display: block; list-style: none; padding: 9px 0 12px; cursor: pointer; outline-offset: -3px; }
  .pfr42-race-details > summary::-webkit-details-marker { display: none; }
  .pfr42-round { display: block; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; color: #e7edf5; font-weight: 650; letter-spacing: .045em; font-size: 11px; line-height: 1.5; margin-bottom: 5px; }
  .pfr42-round span { color: #798493; margin: 0 7px; }
  .pfr42-race-line { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-width: 0; }
  .pfr42-country { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-weight: 930; font-size: clamp(18px,3.3vw,25px); letter-spacing: -.04em; }
  .pfr42-country > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pfr42-country .pfr3-race-flag { display: block; width: 30px; height: 23px !important; flex: none; object-fit: contain; }
  .pfr42-mini-clock { flex: none; display: flex; align-items: baseline; gap: 4px; margin-left: auto; color: #ff536d; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; line-height: 1; }
  .pfr42-mini-clock strong { font-size: 19px; color: #fff; }
  .pfr42-mini-clock > span { font-size: 10px; font-weight: 800; }
  .pfr42-chevron { font-size: 25px; line-height: .8; color: #ff425a; flex: none; transition: transform .18s ease; margin-left: 1px; }
  .pfr42-race-details[open] .pfr42-chevron { transform: rotate(180deg); }
  .pfr42-race-expanded { border-top: 1px solid #273241; padding: 14px 0 17px; }
  .pfr42-expanded-label { display: block; color: #ff526c; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; margin-bottom: 6px; }
  .pfr42-race-expanded h2 { font-size: clamp(17px,3vw,23px); color: #fff; margin: 0 0 6px; line-height: 1.2; }
  .pfr42-race-expanded p { font-size: 12px; color: #bfcbd9; margin: 0 0 12px; }
  .pfr42-expanded-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .pfr42-expanded-actions a, .pfr42-race-center-link { display: inline-flex; color: #fff !important; font-weight: 850; border: 1px solid #4a3b4a; border-radius: 6px; padding: 8px 12px; font-size: 12px; text-decoration: none; background: #231c27; }
  .pfr42-expanded-actions a:hover { background: #422332; }
  /* Banner replaces the bulky duplicated race card at tablet and phone sizes. */
  .pfr3-home .pfr3-dashboard > div:first-child { display: none !important; }
  .pfr3-home .pfr3-dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pfr3-aside > .pfr3-race, .pfr4-center-columns > .pfr4-center-next { display: none !important; }
  .pfr4-center-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 690px) {
  .pfr3-home .pfr3-dashboard { grid-template-columns: minmax(0,1fr); }
  .pfr4-center-columns { grid-template-columns: minmax(0,1fr); }
  .pfr42-round { font-size: 10px; }
  .pfr42-country { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .pfr4-ticker-track.pfr4-is-scrolling { animation: none !important; }
  .pfr4-ticker-viewport { overflow-x: auto !important; mask-image: none; }
  .pfr42-chevron { transition: none; }
}

/* =========================================
   Portal F1 4.3 — readable native circuit selector
   Set both the closed control AND its system menu items.
   A dark color-scheme ensures OS-rendered dropdowns match the page.
   ========================================= */
body.pfr3-body .pfr4-circuit-top select[data-pfr4-select] {
  color-scheme: dark;
  background-color: #0d131b !important;
  color: #f5f7fb !important;
  -webkit-text-fill-color: #f5f7fb;
  border-color: #66768b;
}
body.pfr3-body .pfr4-circuit-top select[data-pfr4-select] option,
body.pfr3-body .pfr4-circuit-top select[data-pfr4-select] optgroup {
  background-color: #111923 !important;
  color: #f5f7fb !important;
  -webkit-text-fill-color: #f5f7fb;
  font-weight: 500;
}
body.pfr3-body .pfr4-circuit-top select[data-pfr4-select] option:checked {
  background-color: #314359 !important;
  color: #ffffff !important;
}
body.pfr3-body .pfr4-circuit-top select[data-pfr4-select]:focus-visible {
  outline: 2px solid #ff405b;
  outline-offset: 2px;
}
/* Author credit sits between copyright and data attribution. */
.pfr3-footer-bottom .pfr43-maker {
  color: #cbd4df;
  white-space: nowrap;
}
.pfr3-footer-bottom .pfr43-maker a {
  color: #f4f6fa !important;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,65,90,.55);
}
.pfr3-footer-bottom .pfr43-maker a:hover,
.pfr3-footer-bottom .pfr43-maker a:focus-visible {
  color: #ff6377 !important;
  border-bottom-color: currentColor;
}
@media (min-width: 900px) {
  .pfr3-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 16px;
    align-items: center;
  }
  .pfr3-footer-bottom > span:last-child { text-align: right; }
}
@media (max-width: 899px) {
  .pfr3-footer-bottom { gap: 12px 24px; }
}
