/* KYLARALLIT.FI | YHTEINEN TYPOGRAFIA | V1.0
   AINOA paikka fonttiperheiden, painojen ja kursivoinnin hallintaan.
   Sovittu pari: Racing Sans One + Barlow.
   Racing Sans One on valmiiksi kallistuva: ei synteettistä kursiivia eikä lihavointia.
*/
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Racing+Sans+One&display=swap');

:root {
  --headfont: 'Racing Sans One', 'Arial Narrow', Arial, sans-serif;
  --bodyfont: 'Barlow', Arial, sans-serif;
  --font-display: var(--headfont);
  --font-text: var(--bodyfont);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

html { font-synthesis: none; }
body, button, input, select, textarea {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: var(--weight-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: var(--weight-semibold);
}

/* Näyttävät isokokoiset otsikot. Ei lisäkallistusta eikä lisälihavointia. */
.hero h1, .event-hero h1, .archive-hero h1, .news-hero h1,
.secthead h2, .partner-local-intro h2, .signup-intro h2,
.feature-content h2, .partnerword, .subheadline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.07;
}
.hero h1 em, .event-hero h1 em, .archive-hero h1 em, .news-hero h1 em,
.secthead h2 em, .partner-local-intro h2 em, .signup-intro h2 em,
.feature-content h2 em, .partnerword em, .subheadline em {
  font-style: normal;
  font-weight: 400;
}
.hero h1, .event-hero h1 { font-size: clamp(48px, 7.4vw, 102px); }
.news-hero h1, .archive-hero h1 { font-size: clamp(41px, 6vw, 82px); }
.secthead h2 { font-size: clamp(34px, 4.4vw, 60px); }

/* Kaikki pienemmät otsikot: pystysuora ja rauhallinen Barlow. */
.event-body h3, .news-text h3, .history-card h3, .service-copy h3,
.social-copy h3, .partner-card h3, .partner-platform-copy h3,
.info-box h3, .subsection h3, .news-sidebar h2, .partner-news-sidebar h2,
.platform-news-sidebar h2, .service-brief h2, .partner-local-mini h2,
.registration-demo h4, .doc-card h4, .contact-person h3, .roster-group h3,
.signup-success h3, .signup-form-heading strong, .event-news-content h3,
.event-news-sample h3, .fb-events-widget h4 {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.24;
}
.event-body h3 { font-size: clamp(21px, 2.1vw, 25px); text-transform: none; }
.news-text h3 { font-size: clamp(21px, 2.1vw, 26px); text-transform: none; }
.service-copy h3 { font-size: clamp(24px, 2.7vw, 33px); text-transform: none; }

/* Navigointi, painikkeet, päivämäärät, kortti- ja lomaketekstit. */
.brandword, .footerlogo, .navlinks, .nav-cta, .menu-button, .btn,
.btn-dark, .cardlink, .news-read-more, .kicker, .eyebrow,
.preview-band, .event-date, .event-services-intro .kicker,
.service-tab, .event-services .service-tab, .service-brief-link,
.signup-submit, .signup-field label, .signup-fieldset legend,
.roster-total, .roster-rank, .roster-column-labels,
.organizer, .service-eyebrow, .widget-header,
.archive-preview h3, .hero-stamp strong, .footer-brand,
.countdown-inner strong, .partner-shop-place, .article-label {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: var(--weight-semibold);
}
.signup-field input, .signup-field textarea, .signup-field select,
.legal-main, .legal-main h1, .legal-main h2, .legal-paper p,
.legal-contact-box p, .legal-lead, .legal-kicker, .legal-updated {
  font-family: var(--font-text);
  font-style: normal;
}
.legal-main h1, .legal-main h2 { font-weight: var(--weight-semibold); }
strong, b { font-weight: var(--weight-bold); }

/* Racing Sans One on yhden vahvuuden display-fontti. */
.hero h1 strong, .hero h1 b, .event-hero h1 strong, .event-hero h1 b,
.news-hero h1 strong, .secthead h2 strong, .partner-local-intro h2 strong {
  font-weight: 400;
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(44px, 10vw, 62px); line-height: 1.09; }
  .secthead h2 { font-size: clamp(32px, 8vw, 46px); line-height: 1.09; }
  .event-hero h1, .news-hero h1 { font-size: clamp(39px, 9vw, 62px); }
  .event-body h3, .news-text h3 { font-size: 22px; }
}
/* NO-ADDED-ITALIC: <em> remains a color/emphasis marker, never extra cursive styling. */
em, i { font-style: normal; }


/* PALVELU - all typefaces and weights remain centralized here. */
.servicepage-lead h1 {
  font-family:var(--font-display);
  font-style:normal;
  font-weight:400;
  letter-spacing:0;
}
.servicepage-why h2,
.servicepage-offer-head h2,
.servicepage-callout h2,
.servicepage-feature h3 {
  font-family:var(--font-text);
  font-style:normal;
  font-weight:var(--weight-semibold);
  letter-spacing:0;
}
.servicepage-overline,
.servicepage-section-label,
.servicepage-feature-index,
.servicepage-contact-link,
.servicepage-secondary {
  font-family:var(--font-text);
  font-style:normal;
  font-weight:var(--weight-semibold);
}


/* EVENT-CARD-OPTION-3 | Barlow SemiBold; do not modify the global display font. */
.event-card .event-body h3, .history-card h3 {font-family:var(--font-text);font-style:normal;font-weight:600;font-size:clamp(22px,2.1vw,27px);letter-spacing:-.016em;line-height:1.13;text-transform:none;}
.event-card .event-meta, .history-card .event-meta {font-family:var(--font-text);font-style:normal;font-weight:500;font-size:13px;line-height:1.4;letter-spacing:0;text-transform:none;}
.event-card .event-meta-date, .history-card .event-meta-date {font-weight:600;}
.event-card .event-meta-place, .history-card .event-meta-place {font-weight:500;}
@media(max-width:600px){.event-card .event-body h3,.history-card h3{font-size:24px;line-height:1.16;}}


/* ROSTER-COMPACT-V1: all roster type sizes and weights centralized. */
.roster-group h3{font-family:var(--font-text);font-style:normal;font-weight:600;font-size:clamp(18px,2.15vw,22px);letter-spacing:0;}
.roster-classno,.roster-count{font-family:var(--font-text);font-style:normal;font-weight:600;font-size:11px;}
.roster-column-labels{font-family:var(--font-text);font-style:normal;font-weight:600;font-size:11px;}
.roster-row{font-family:var(--font-text);font-style:normal;font-weight:400;font-size:13px;}
.roster-rank{font-family:var(--font-text);font-style:normal;font-weight:600;font-size:12px;}
.roster-total strong{font-family:var(--font-text);font-style:normal;font-weight:700;}
.roster-total span{font-family:var(--font-text);font-style:normal;font-weight:600;}
@media(max-width:700px){.roster-row{font-size:12px}.roster-driver small,.roster-codriver small,.roster-auto small{font-size:9px;font-weight:500}}

/* ROSTER-CLASS-UNIFIED-V1 | identical visual treatment for class number and class name. */
.roster-group .roster-group-heading .roster-classno,
.roster-group .roster-group-heading h3 {
  font-family: var(--font-text);
  font-size: clamp(18px, 2.15vw, 22px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}
@media(max-width:600px) {
 .roster-group .roster-group-heading .roster-classno,
 .roster-group .roster-group-heading h3 { font-size: 18px; }
}



/* TOIVAKKA-EVENT-UX-V1 | centrally managed button and compact signup type */
.signup-callout-title{font-family:var(--font-text);font-weight:600;font-style:normal;font-size:clamp(18px,2.1vw,24px);line-height:1.2;}
.signup-callout-note{font-family:var(--font-text);font-weight:400;font-style:normal;font-size:12px;line-height:1.3;}
.signup-callout-open,.card-email-share{font-family:var(--font-text);font-weight:600;font-style:normal;font-size:13px;letter-spacing:0;line-height:1.2;}


/* EVENT-QUICKLINKS-V1: typography remains exclusively Racing Sans One / Barlow. */
.event-contents-kicker{font-family:var(--font-text);font-size:11px;font-style:normal;font-weight:600;line-height:1.25;}
.event-contents-heading strong{font-family:var(--font-text);font-size:clamp(17px,1.8vw,21px);font-style:normal;font-weight:600;line-height:1.16;}
.event-contents-link{font-family:var(--font-text);font-size:clamp(12px,1.05vw,14px);font-style:normal;font-weight:600;line-height:1.25;letter-spacing:0;}
.event-contents-link>span:nth-child(1){font-size:11px;font-weight:500;}
.social-channel-actions .btn{font-family:var(--font-text);font-style:normal;font-weight:600;}


/* NAV-TEXT-SIZE-2026-11-23: Slightly larger top navigation on desktop and in the mobile menu. */
.siteheader .navlinks { font-size: 13px; }
@media (max-width: 1030px) {
  .siteheader .navlinks { font-size: 14px; }
}

/* NEWS-HEADING-LOCKED-MASTER: Toivakka news card typography; no banner selectors. */
.news-grid .news .news-text h3,.event-news-teaser .event-news-teaser-content h3{font-family:var(--font-text);font-style:normal;font-weight:600;text-transform:uppercase;letter-spacing:-.012em;line-height:1.22;overflow-wrap:break-word;}
