/* v29 full history content patch.
   Final combined refinement: compact timeline panel, cleaner old-site block,
   stronger justified typography, aligned previews, and subtle per-section side rails. */
:root{
  --story-max:1080px;
  --story-inner:44px;
}
main{overflow:hidden;position:relative}

.timeline{padding:8px 0 2px;position:relative;z-index:1}
.timeline.wrap{width:min(1320px,calc(100% - 64px))!important;max-width:1320px!important}
.timeline-graphic{
  position:relative;
  max-width:1320px;
  margin:0 auto;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.timeline .timeline-story-art{display:block;width:100%;max-width:100%;height:auto;margin:0 auto}
.timeline-hotspot{position:absolute;top:8%;height:78%;display:block;border-radius:999px;outline:none;background:rgba(255,255,255,0);transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.timeline-hotspot:hover,.timeline-hotspot:focus{background:rgba(17,86,128,.06);box-shadow:inset 0 0 0 2px rgba(17,86,128,.18);transform:translateY(-1px)}
.timeline-hotspot.hotspot-1{left:2.3%;width:13.8%}
.timeline-hotspot.hotspot-2{left:18.4%;width:13.8%}
.timeline-hotspot.hotspot-3{left:34.5%;width:13.8%}
.timeline-hotspot.hotspot-4{left:50.7%;width:13.8%}
.timeline-hotspot.hotspot-5{left:66.8%;width:13.8%}
.timeline-hotspot.hotspot-6{left:82.9%;width:13.8%}
.timeline-links{display:none!important}
.art-divider{display:none!important}

.history-section{
  position:relative;
  margin-top:10px;
  margin-bottom:6px;
  padding:0 0 12px;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  font-family:"Segoe UI Variable","Segoe UI",Arial,Helvetica,sans-serif;
  --section-line-rgb:154,167,178;
}
.history-section.wrap::before,
.history-section.wrap::after{
  content:"";
  position:absolute;
  top:12px;
  bottom:12px;
  width:7px;
  border-radius:7px 4px 8px 5px;
  pointer-events:none;
  opacity:1;
  background:linear-gradient(to bottom,
    rgba(var(--section-line-rgb),0) 0%,
    rgba(var(--section-line-rgb),.34) 7%,
    rgba(var(--section-line-rgb),.74) 24%,
    rgba(var(--section-line-rgb),.88) 50%,
    rgba(var(--section-line-rgb),.70) 76%,
    rgba(var(--section-line-rgb),.30) 93%,
    rgba(var(--section-line-rgb),0) 100%);
  box-shadow:0 0 0 1px rgba(var(--section-line-rgb),.15),0 0 10px rgba(var(--section-line-rgb),.16);
}
.history-section.wrap::before{left:-73px}
.history-section.wrap::after{right:-73px}

#overview{--section-line-rgb:47,126,184}
#origin{--section-line-rgb:215,166,49}
#internet{--section-line-rgb:92,123,151}
#photo-day{--section-line-rgb:62,154,195}
#club-life{--section-line-rgb:197,124,45}
#people{--section-line-rgb:58,101,151}
#garagedays{--section-line-rgb:205,148,38}
#ukraine{--section-line-rgb:77,139,178}
#knowledge{--section-line-rgb:58,132,137}
#war{--section-line-rgb:133,86,55}
#today{--section-line-rgb:78,132,73}
#photostory{--section-line-rgb:103,112,158}
#join{--section-line-rgb:47,113,169}

/* Hard override of legacy v29 rail artwork from home.css.
   Keep only the new thin per-section colour accents. */
#overview.history-section.wrap::before,#overview.history-section.wrap::after,
#origin.history-section.wrap::before,#origin.history-section.wrap::after,
#internet.history-section.wrap::before,#internet.history-section.wrap::after,
#photo-day.history-section.wrap::before,#photo-day.history-section.wrap::after,
#club-life.history-section.wrap::before,#club-life.history-section.wrap::after,
#people.history-section.wrap::before,#people.history-section.wrap::after,
#garagedays.history-section.wrap::before,#garagedays.history-section.wrap::after,
#ukraine.history-section.wrap::before,#ukraine.history-section.wrap::after,
#knowledge.history-section.wrap::before,#knowledge.history-section.wrap::after,
#war.history-section.wrap::before,#war.history-section.wrap::after,
#today.history-section.wrap::before,#today.history-section.wrap::after,
#photostory.history-section.wrap::before,#photostory.history-section.wrap::after,
#join.history-section.wrap::before,#join.history-section.wrap::after{
  background-image:linear-gradient(to bottom,
    rgba(var(--section-line-rgb),0) 0%,
    rgba(var(--section-line-rgb),.34) 7%,
    rgba(var(--section-line-rgb),.74) 24%,
    rgba(var(--section-line-rgb),.88) 50%,
    rgba(var(--section-line-rgb),.70) 76%,
    rgba(var(--section-line-rgb),.30) 93%,
    rgba(var(--section-line-rgb),0) 100%)!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:100% 100%!important;
}

.history-section .story-title-wrap{margin:0 0 6px;text-align:center}
.history-section .story-title-art{display:block;width:100%;max-width:var(--story-max);height:auto;margin:0 auto;object-fit:contain}

.history-section>.story-media,
.history-section>.story-prose,
.history-section>.story-two-col,
.history-section>.founders-intro,
.history-section>.founders-grid,
.history-section>.story-memory-line,
.history-section>.story-actions,
.history-section>.photostory-grid{
  width:auto;
  margin-left:var(--story-inner);
  margin-right:var(--story-inner);
}
.history-section>.story-prose{max-width:none}
.history-section>.story-two-col .story-prose{padding-left:0;padding-right:0}

.story-prose{
  width:100%;
  max-width:none;
  margin:0;
  color:#163d57;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-kerning:normal;
  font-family:"Segoe UI","Helvetica Neue",Arial,Helvetica,sans-serif;
}
.story-prose p{
  font-size:18px;
  line-height:1.64;
  margin:0 0 11px;
  color:#153d59;
  font-weight:650;
  letter-spacing:.003em;
  text-align:justify;
  text-align-last:left;
  text-justify:inter-word;
  hyphens:none;
  -webkit-hyphens:none;
  overflow-wrap:normal;
  word-break:normal;
}
.story-prose p:last-child{margin-bottom:0}
.story-prose strong{color:#083c64;font-weight:700}
.story-prose .lead{font-size:18.5px;line-height:1.66;color:#103b59;font-weight:700}

.story-two-col{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;align-items:start}
.story-two-col.reverse{grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr)}
.story-two-col.reverse .story-prose{order:2}
.story-two-col.reverse .story-media{order:1}

.story-media{display:grid;gap:10px;align-items:start}
.story-media.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.story-media.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.story-media.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.story-media.compact,
.story-media.spacious{max-width:none;margin-top:10px}
.story-photo.lightbox{display:block;position:relative;overflow:visible!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
.history-section .story-photo.lightbox img{display:block;width:100%;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;opacity:1!important;transition:transform .2s ease,filter .2s ease;filter:drop-shadow(0 8px 13px rgba(27,67,91,.08))}
.history-section .story-photo.lightbox:hover img{transform:translateY(-2px) scale(1.006);filter:drop-shadow(0 10px 17px rgba(27,67,91,.13))}

.founders-intro{max-width:none;margin-top:0;margin-bottom:7px}
.founders-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:start;margin-top:8px;margin-bottom:10px;max-width:none}
.founder-card{margin:0;text-align:center;min-width:0}
.founder-card .lightbox{display:block;background:transparent!important;border-radius:0!important;overflow:visible!important}
.founder-card .lightbox img{display:block;width:100%;height:auto!important;min-height:0!important;object-fit:contain!important;border-radius:0!important;opacity:1!important;background:transparent!important;filter:drop-shadow(0 8px 13px rgba(26,67,92,.08))}
.founder-card figcaption{margin-top:4px;color:#164663;line-height:1.35}
.founder-card figcaption b{display:block;font-size:14px}
.founder-card figcaption span{display:block;margin-top:2px;font-size:11px;color:#638198}
.story-memory-line{max-width:none;margin-top:18px;margin-bottom:18px;padding-left:18px;border-left:3px solid rgba(230,177,39,.72);font-size:17px;font-style:italic;color:#315f7b}
.story-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px}
.story-actions img{display:block;height:46px;width:auto;object-fit:contain}
.photostory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}
.photostory-grid .story-photo:nth-child(3n+1){transform:rotate(-.35deg)}
.photostory-grid .story-photo:nth-child(3n+2){transform:rotate(.3deg)}
.photostory-grid .story-photo:nth-child(3n){transform:rotate(-.15deg)}

/* Old-site section: stacked monitors inside a calm presentation column. */
#internet .story-two-col{grid-template-columns:minmax(280px,300px) minmax(0,1fr);gap:18px}
#internet .story-media{
  grid-template-columns:1fr!important;
  gap:14px;
  max-width:300px;
  justify-self:start;
  align-self:start;
  padding:6px;
  border-radius:18px;
  background:rgba(241,246,249,.55);
  box-shadow:none;
}
#internet .story-photo.lightbox{max-width:100%}
#internet .story-prose p{font-size:17.8px;line-height:1.62}

/* Keep content on top of the decorative side rails. */
.timeline,.history-section{z-index:1}

@media(max-width:1100px){
  .timeline.wrap{width:calc(100% - 36px)!important;max-width:none!important}
}
@media(max-width:980px){
  :root{--story-inner:28px}
  .timeline{padding:6px 0 2px}
  .timeline-graphic{padding:0;border-radius:0}
  .history-section.wrap::before{left:8px}
  .history-section.wrap::after{right:8px}
  .story-two-col,.story-two-col.reverse{grid-template-columns:1fr;gap:10px}
  .story-two-col.reverse .story-prose,.story-two-col.reverse .story-media{order:initial}
  .story-media.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .founders-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .photostory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #internet .story-two-col{grid-template-columns:1fr;gap:12px}
  #internet .story-media{max-width:420px;justify-self:center}
}
@media(max-width:760px){
  .timeline.wrap{width:calc(100% - 20px)!important}
}
@media(max-width:620px){
  :root{--story-inner:0px}
  .timeline-graphic{padding:0;border-radius:0}
  .timeline-hotspot{top:6%;height:82%}
  .history-section.wrap::before,.history-section.wrap::after{display:none}
  .history-section{padding:0 0 12px;margin-top:6px;margin-bottom:6px}
  .story-prose p{font-size:16px;line-height:1.6;margin-bottom:8px;font-weight:650}
  .story-prose .lead{font-size:16.5px;line-height:1.62;font-weight:700}
  .story-media.cols-3,.story-media.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .story-media.cols-2{gap:7px}
  .founders-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .founder-card:last-child{grid-column:1/3;width:50%;justify-self:center}
  .photostory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .story-memory-line{font-size:15px;padding-left:12px}
  #internet .story-media{max-width:100%;padding:8px}
}
