/*
 * The 14th RAP Symposium Website
 * Copyright (c) 2026 The 14th RAP Symposium. All Rights Reserved.
 * This stylesheet is used for the official website of The 14th RAP Symposium.
 */




/* =========================
   SPEAKERS PAGE ONLY
   Load after css/style.css
   ========================= */

html,
body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

.page-main{
  flex:1 0 auto;
  padding-top:0;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand,
.global-nav{
  position:relative;
  z-index:2;
}

.global-nav a.is-active{
  color:var(--red);
}

.global-nav a.is-active::after{
  width:100%;
}

/* Title image moved below the logo area */
.symposium-title-block{
  width:100%;
  max-width:none;
  margin:0;
  padding:14px 0 0 54px;
  box-sizing:border-box;
  text-align:left;
}

.symposium-title-block img{
  display:block;
  width:360px;
  max-width:calc(100vw - 108px);
  height:auto;
}
.page-hero{
  text-align:center;
}

.speakers-hero{
  background:none;
  padding:20px 20px 22px;
}

.speakers-hero h1{
  font-family:'Playfair Display', serif;
  color:var(--red);
  font-size:clamp(42px, 5.2vw, 68px);
  line-height:1;
  letter-spacing:0.08em;
  margin:0 0 14px;
  font-weight:800;
}

.speakers-hero .page-lead{
  font-size:clamp(15px, 1.25vw, 19px);
  line-height:1.9;
  font-weight:600;
  margin:0 auto;
}

.page-section.speakers-section{
  max-width:1280px;
  margin:0 auto;

  /* less whitespace before footer */
  padding:0 32px 20px;

  text-align:center;
}

.speakers-section .page-title,
.speakers-section > .page-lead{
  display:none;
}

.speaker-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));

  /* larger cards + tighter layout */
  gap:16px 20px;

  margin-top:12px;
}

.speaker-card{
  text-align:center;
  background:rgba(255,255,255,0.48);
  border:1px solid rgba(213,202,186,0.8);
  border-radius:6px;

  /* bigger cards */
  padding:30px 26px 28px;

  min-height:340px;

  box-shadow:0 8px 22px rgba(0,0,0,0.05);
}

.speaker-card img{
  display:block;
  width:170px;
  max-width:100%;
  aspect-ratio:1/1;
  height:auto;
  object-fit:cover;
  border-radius:2px;
  margin:0 auto 22px;
  background:rgba(255,255,255,0.4);
}

.speaker-card.is-photo-missing::before{
  content:"";
  display:block;
  width:170px;
  max-width:100%;
  aspect-ratio:1/1;
  margin:0 auto 18px;
  border-radius:2px;
  background:rgba(255,255,255,0.42);
}

.speaker-card h3{
  font-size:17px;
  margin:0 0 8px;
  font-weight:700;
}

.speaker-card p{
  font-size:14px;
  line-height:1.55;
  margin:0;
}

.back-link-area{
  display:flex;
  justify-content:center;
  margin:18px auto 0;
}

.back-link{
  color:var(--red);
  font-size:16px;
  font-weight:700;
  letter-spacing:0.02em;
  text-decoration:none;
}

.back-link:hover{
  opacity:.75;
}

.footer-divider1 img,
.footer-divider2 img{
  width:36px;
  height:180px;
  object-fit:contain;
  display:block;
}
footer{
  flex-shrink:0;
  margin-top:auto;
  margin-bottom:0 !important;
}

@media(max-width:1200px){
  .site-header{
    padding:18px 32px;
  }

  .symposium-title-block{
    padding-left:32px;
  }

  .symposium-title-block img{
    width:320px;
    max-width:calc(100vw - 64px);
  }

  .global-nav{
    gap:22px;
  }

  .global-nav a{
    font-size:12px;
  }
}

@media(max-width:980px){
  .speaker-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:760px){
  .site-header{
    height:auto;
    padding:18px 20px;
    position:relative;
  }

  .global-nav{
    display:none;
  }

  .page-main{
    padding-top:0;
  }

  .symposium-title-block{
    padding:24px 24px 0;
    text-align:center;
  }

  .symposium-title-block img{
    width:min(78vw, 330px);
    margin:0 auto;
  }

  .speakers-hero{
    padding:28px 20px 22px;
  }

  .speakers-hero h1{
    font-size:42px;
  }

  .page-section.speakers-section{
    padding:0 24px 46px;
  }

  .speaker-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .speaker-card{
    padding:24px 20px;
  }

  .speaker-card img,
  .speaker-card.is-photo-missing::before{
    width:132px;
  }

  .footer-divider1,
  .footer-divider2{
    display:none;
  }
}

/* =========================
   Footer layout fix
   Added: 2026-06-09
   Purpose:
   - prevent footer divider illustration from overlapping text
   - keep footer readable on desktop, tablet, and mobile
   ========================= */

footer{
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  padding:46px 48px !important;
  grid-template-columns:minmax(0,1.25fr) 44px minmax(240px,1fr) 44px minmax(220px,.9fr) !important;
  gap:22px !important;
  align-items:center !important;
}

.footer-brand,
.footer-contact,
.footer-copy{
  min-width:0 !important;
}

.footer-brand{
  gap:24px !important;
}

footer .brand-rap{
  font-size:clamp(42px,4.2vw,78px) !important;
  line-height:.86 !important;
}

.footer-brand span:not(.brand-rap){
  font-size:clamp(17px,1.55vw,26px) !important;
  line-height:1.35 !important;
}

.footer-contact{
  white-space:normal !important;
  font-size:clamp(16px,1.35vw,22px) !important;
  line-height:1.65 !important;
  overflow-wrap:anywhere !important;
}

.footer-contact p:first-child{
  font-size:clamp(22px,2vw,34px) !important;
  line-height:1.2 !important;
  margin-bottom:12px !important;
}

.footer-copy{
  font-size:clamp(12px,1vw,15px) !important;
  line-height:1.7 !important;
  overflow-wrap:anywhere !important;
}

.footer-divider1,
.footer-divider2{
  width:28px !important;
  height:78px !important;
  justify-self:center !important;
}

.footer-divider1 img,
.footer-divider2 img{
  width:20px !important;
  height:72px !important;
  object-fit:contain !important;
}

@media(max-width:1400px){
  footer{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,.85fr) !important;
    grid-template-areas:"brand contact copy" !important;
    gap:28px !important;
    padding:42px 42px !important;
  }

  .footer-divider1,
  .footer-divider2{
    display:none !important;
  }
}

@media(max-width:900px){
  footer{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "brand"
      "contact"
      "copy" !important;
    gap:20px !important;
    padding:36px 24px 40px !important;
    text-align:center !important;
  }

  .footer-brand{
    justify-content:center !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  footer .brand-rap{
    font-size:42px !important;
  }

  .footer-brand span:not(.brand-rap){
    font-size:16px !important;
  }

  .footer-contact{
    font-size:16px !important;
  }

  .footer-contact p:first-child{
    font-size:22px !important;
  }

  .footer-copy{
    font-size:12px !important;
  }
}

/* =========================
   Footer divider display fix
   PC: show decorative star lines
   Mobile/tablet: hide them for readability
   ========================= */

@media(min-width:901px){
  .footer-divider1,
  .footer-divider2{
    display:flex !important;
    width:28px !important;
    height:78px !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:center !important;
  }

  .footer-divider1 img,
  .footer-divider2 img{
    width:20px !important;
    height:72px !important;
    object-fit:contain !important;
    display:block !important;
  }
}

@media(max-width:900px){
  .footer-divider1,
  .footer-divider2{
    display:none !important;
  }
}

/* =========================
   Footer divider final override
   Added: 2026-06-09
   Purpose:
   - keep footer divider lines in the correct grid columns on PC
   - hide divider lines on tablet/mobile for readability
   ========================= */

@media(min-width:901px){
  footer{
    display:grid !important;
    grid-template-columns:minmax(0,1.1fr) 28px minmax(0,1fr) 28px minmax(0,.85fr) !important;
    grid-template-areas:"brand divider1 contact divider2 copy" !important;
    gap:18px !important;
    align-items:center !important;
    padding:42px 36px !important;
    overflow:hidden !important;
  }

  .footer-brand{
    grid-area:brand !important;
  }

  .footer-contact{
    grid-area:contact !important;
  }

  .footer-copy{
    grid-area:copy !important;
  }

  .footer-divider1{
    grid-area:divider1 !important;
  }

  .footer-divider2{
    grid-area:divider2 !important;
  }

  .footer-divider1,
  .footer-divider2{
    display:flex !important;
    width:28px !important;
    height:78px !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:center !important;
    align-self:center !important;
  }

  .footer-divider1 img,
  .footer-divider2 img{
    width:20px !important;
    height:72px !important;
    object-fit:contain !important;
    display:block !important;
  }
}

@media(max-width:900px){
  footer{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:
      "brand"
      "contact"
      "copy" !important;
    gap:20px !important;
    padding:36px 24px 40px !important;
    text-align:center !important;
  }

  .footer-brand{
    grid-area:brand !important;
    justify-content:center !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  .footer-contact{
    grid-area:contact !important;
  }

  .footer-copy{
    grid-area:copy !important;
  }

  .footer-divider1,
  .footer-divider2{
    display:none !important;
  }
}



/* =========================
   PRINT FIX — Speakers page
   Added: 2026-10-28
   Fixes:
   1) fixed header overlapping content when printing
   2) white artifact in footer when printing
   ========================= */

@media print {

  .site-header{
    position:static !important;
    top:auto !important;
    left:auto !important;
    width:100% !important;
    height:auto !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  .page-main,
  .speakers-section{
    overflow:visible !important;
  }

  .speaker-card{
    break-inside:avoid !important;
    page-break-inside:avoid !important;
    box-shadow:none !important;
  }

  .global-nav a::after{
    display:none !important;
    content:none !important;
  }

  footer{
    background:#8b000f !important;
    background-image:none !important;
    overflow:hidden !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  .footer-divider1,
  .footer-divider2,
  .footer-divider1 img,
  .footer-divider2 img{
    display:none !important;
  }

  footer::before,
  footer::after{
    content:none !important;
    display:none !important;
  }

  body,
  body *{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
}


/* =========================
   SESSION HEADINGS
   Added: 2026-10-28
   Session titles sit above speaker cards, not inside them.
   ========================= */

.session-heading{
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
  text-align:left;
  margin:18px 0 0;
  padding:12px 4px 10px;
  border-bottom:1px solid rgba(168,21,24,.45);
}

.session-heading:first-child{
  margin-top:0;
}

.session-heading h2{
  margin:0;
  color:var(--red);
  font-family:'Playfair Display', 'Noto Sans JP', sans-serif;
  font-size:clamp(20px,1.8vw,28px);
  line-height:1.35;
  font-weight:700;
  letter-spacing:.01em;
}

@media(max-width:760px){
  .session-heading{
    margin-top:14px;
    padding:10px 2px 8px;
  }

  .session-heading h2{
    font-size:20px;
  }
}

@media print{
  .session-heading{
    grid-column:1 / -1 !important;
    break-after:avoid !important;
    page-break-after:avoid !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }
}


/* =========================
   SPEAKER CARDS — NO PHOTO VERSION
   Added: 2026-10-28
   Photos are not used. Talk title becomes the visual focus.
   ========================= */

.speaker-card.is-photo-missing::before{
  display:none !important;
  content:none !important;
}

.speaker-card{
  min-height:240px;
  padding:34px 28px 30px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.speaker-card .talk-title{
  order:-1;
  min-height:82px;
  margin:0 0 22px;
  padding:18px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(168,21,24,.055);
  border-top:1px solid rgba(168,21,24,.18);
  border-bottom:1px solid rgba(168,21,24,.18);
  color:var(--red);
  font-family:'Playfair Display','Noto Sans JP',sans-serif;
  font-size:clamp(18px,1.45vw,23px);
  line-height:1.4;
  font-weight:700;
}

.speaker-card h3{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.4;
}

.speaker-card p:not(.talk-title){
  font-size:14px;
  line-height:1.6;
}

@media(max-width:760px){
  .speaker-card{
    min-height:auto;
    padding:26px 20px;
  }

  .speaker-card .talk-title{
    min-height:auto;
    font-size:18px;
    padding:14px 10px;
    margin-bottom:18px;
  }
}

@media print{
  .speaker-card .talk-title{
    background:transparent !important;
    border-top:1px solid rgba(168,21,24,.28) !important;
    border-bottom:1px solid rgba(168,21,24,.28) !important;
  }
}


/* =========================
   SPEAKER CARD FINAL ORDER
   Added: 2026-10-28
   Order: talk title -> speaker -> affiliation
   ========================= */

.speaker-card.is-photo-missing::before{
  display:none !important;
  content:none !important;
}

.speaker-card{
  min-height:220px;
  padding:28px 24px 26px;
  display:block;
}

.speaker-card .talk-title{
  margin:0 0 18px;
  padding:14px 12px;
  color:var(--red);
  background:rgba(168,21,24,.055);
  border-top:1px solid rgba(168,21,24,.18);
  border-bottom:1px solid rgba(168,21,24,.18);
  font-family:'Playfair Display','Noto Sans JP',sans-serif;
  font-size:clamp(17px,1.35vw,22px);
  line-height:1.4;
  font-weight:700;
}

.speaker-card h3{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.4;
}

.speaker-card p:not(.talk-title){
  margin:0;
  font-size:14px;
  line-height:1.6;
}

@media(max-width:760px){
  .speaker-card{
    min-height:auto;
    padding:24px 18px;
  }

  .speaker-card .talk-title{
    font-size:17px;
    margin-bottom:16px;
  }
}

@media print{
  .speaker-card .talk-title{
    background:transparent !important;
  }
}
