/* The sample profile (/example/): a made-up car's history in the profiles' own layout (site.css), in colours of
   its own, with the parts a scrapbook brings: typed-out clippings, a race log and the chain of owners. */
:root { --navy: #14495a; --red: #e2661d; --gold: #f2b544; --paper: #f6f3ec; }
.hero { background: radial-gradient(120% 140% at 0% 0%, #23697d 0%, var(--navy) 55%, #072530 100%); color: #e6f0f2; }
.hero p { color: #d3e3e7; }
.hero-portrait figcaption, .hero-shot figcaption { color: #a9c6cd; }
.stats span { color: #b6d0d6; }
.t-drv { background: #fdeee4; color: #a8420c; }
.btn:hover { background: var(--red); }

.sample { background: #fff7e0; border-bottom: 1px solid #ecd9a6; color: #5c4a14; font: 600 13.5px/1.4 Arial, sans-serif; padding: 9px 44px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.sample a { color: #a8420c; white-space: nowrap; }

.hero-pic { margin: 0; flex: none; width: 330px; }
.hero-pic img { width: 100%; height: auto; border-radius: 6px; border: 3px solid #fff; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.hero-pic figcaption { color: #a9c6cd; font-size: 11.5px; margin-top: 8px; text-align: center; }

.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spec div { border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 6px; padding: 12px 14px; background: #fff; }
.spec b { display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.spec span { font: 700 15px/1.3 Arial, sans-serif; color: var(--navy); }

/* A clipping, typed out beside where it came from */
.clip { background: #fbf6e9; border: 1px solid #e4d6b4; box-shadow: 0 2px 6px rgba(80,60,20,.12); padding: 14px 16px 12px; font: 14.5px/1.5 Georgia, "Times New Roman", serif; color: #2d2617; transform: rotate(-.4deg); }
.clip:nth-child(even) { transform: rotate(.5deg); }
.clip .paper { font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6d2d; border-bottom: 1px solid #e4d6b4; padding-bottom: 7px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.clip h4 { font: 700 19px/1.15 Georgia, "Times New Roman", serif; color: #1d1a12; margin: 0 0 6px; }
.clip p { margin: 0 0 6px; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.card .clip { margin: 4px 0 14px; }

/* Race log */
.log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.log th { text-align: left; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.log td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log tr.yr td { font: 800 14px/1 Arial, sans-serif; color: var(--red); padding-top: 14px; border-bottom: 0; }
.log .res { display: inline-block; min-width: 38px; text-align: center; font: 700 12px/1 Arial, sans-serif; padding: 4px 6px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.log .res.win { background: #fdeee4; border-color: #f3c3a2; color: #a8420c; }

/* Owners, in order */
.owners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.owners li { margin: 0; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 6px 6px 0; padding: 10px 12px; background: #fff; font-size: 13.5px; line-height: 1.45; }
.owners b { display: block; color: var(--navy); font: 700 15px/1.25 Arial, sans-serif; }
.owners span { color: var(--red); font: 700 11px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.share { display: flex; gap: 20px; align-items: center; background: var(--paper); border: 1px dashed #c9bfa8; border-radius: 8px; padding: 18px 20px; }
.share p { margin: 0; flex: 1; }

/* The top of the page, two ways: a photo beside the story (as on Bruce Jenner Racing and Lyn Hatton's), or the
   full banner of our club websites: one photo stretched across the whole width of the screen, zooming slowly,
   with the words over it. The sample bar switches between them live. */
body { overflow-x: clip; }
.hero .hero-bg, .hero .hero-acts, .hero .down { display: none; }
.hero.banner { position: relative; display: flex; align-items: center; min-height: 640px; width: 100vw; margin-left: calc(50% - 50vw);
  padding: 0; overflow: hidden; isolation: isolate; background: #072530; color: #fff; border-bottom: 4px solid var(--red); }
.hero.banner .hero-pic { display: none; }
.hero.banner .hero-bg { display: block; position: absolute; inset: 0; z-index: -2; }
.hero.banner .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; animation: pf-zoom 18s ease-in-out infinite alternate; }
@keyframes pf-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero.banner .hero-bg img { animation: none; } }
.hero.banner::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(7,37,48,.92) 0%, rgba(7,37,48,.7) 42%, rgba(7,37,48,.12) 100%); }
.hero.banner .hero-text { flex: none; width: 980px; max-width: 100%; margin: 0 auto; padding: 96px 44px 118px; }
.hero.banner .hero-text > * { max-width: 560px; }
.hero.banner .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.hero.banner .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226,102,29,.3); }
.hero.banner h1 { max-width: 780px !important; font-size: 60px; line-height: 1.02; margin: 20px 0 14px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero.banner p.lead { font-size: 19px; color: rgba(255,255,255,.93); }
.hero.banner .stats, .hero.banner .hero-text > p:not(.lead) { display: none; }
.hero.banner .hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-acts .btn { padding: 14px 20px; font-size: 15px; }
.hero-acts .btn.ghost { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.6); padding: 12.5px 18px; }
.hero-acts .btn.ghost:hover { background: #fff; color: var(--navy); }
.hero.banner .cap { position: absolute; right: 18px; bottom: 12px; color: #fff; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero:not(.banner) .cap { display: none; }
.hero.banner .down { display: grid; place-items: center; position: absolute; left: 50%; bottom: 24px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); color: #fff; text-decoration: none; font: 700 20px/1 Arial, sans-serif; animation: pf-bob 2.4s ease-in-out infinite; }
@keyframes pf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero.banner .down { animation: none; } }
.look { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.look button { font: 700 12.5px/1 Arial, sans-serif; color: #5c4a14; background: #fff; border: 1.5px solid #e0c98a; border-radius: 16px; padding: 7px 11px; cursor: pointer; }
.look button[aria-pressed="true"] { background: #14495a; border-color: #14495a; color: #fff; }
.btn.red { background: var(--red); } .btn.red:hover { background: #fff; color: var(--navy); }
