/* BSides Kerala 2027: styles for the inner pages (everything except the home
   page, which uses css/home.css, and the pages under archives/<year>/ and
   speakers/<year>/, which use css/style-2027.css).

   A quieter, document-like layout: black header, white pages, section titles
   in a left rail, thin rules. One typeface, Baloo Chettan 2. Yellow and red
   are used only where they mean something: the header rule, the current menu
   item, a deadline, a button. The menu and footer match the home page. */

:root{
  --ink:#050208;
  --sun:#FFE60A;
  --red:#E3262B;
  --red-dark:#B3141D;
  --wash:#F4F3F6;               /* the light grey alternate ground */

  --text:var(--ink);
  --muted:#4B4553;
  --line:#D8D4DD;
  --link:var(--red-dark);
  --focus:var(--ink);

  --display:'Baloo Chettan 2','Trebuchet MS',system-ui,sans-serif;
  --body:var(--display);

  --r:6px;
  --nav-h:72px;
  --gutter:clamp(1.25rem,5vw,4rem);
  --max:1320px;
  --space:clamp(3rem,6vw,4.75rem);

  /* names the two 2026 training pages still use in their own style blocks */
  --black:var(--ink);--black2:#1B1720;--white:#fff;
  --g50:var(--wash);--g100:#ECEAEF;--g200:var(--line);--g300:#C4BFCB;
  --g400:#8A8492;--g500:var(--muted);--g600:#37323D;
  --red-h:var(--red-dark);--green:#1E7A2E;--green-l:#1E7A2E;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--nav-h) + 1rem)}
body{margin:0;background:#fff;color:var(--text);font-family:var(--body);font-size:1.125rem;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0}
img{max-width:100%;height:auto;display:block}
iframe{border:0;display:block;width:100%}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--display);font-weight:800;line-height:1.1;letter-spacing:0;text-wrap:balance}
p{text-wrap:pretty}

/* grounds (.on-ink is the light grey alternate; the class name predates it) */
.on-ink{background:var(--wash)}
.sun{background:var(--sun)}
.red-band{background:var(--red);color:#fff;--text:#fff;--muted:#fff;--link:#fff;--focus:#fff}

/* ---------- top menu (same as the home page) ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:100;height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:0 var(--gutter);background:var(--ink);color:#fff;--focus:var(--sun)}
.nav-logo{display:flex;align-items:center;gap:.75rem;flex:none;text-decoration:none}
.nav-name{font-family:var(--display);font-weight:800;font-size:1.55rem;line-height:1;text-transform:uppercase;white-space:nowrap;color:#fff;padding-top:.12em}
.nav-name span{color:#FF4A4F}
.nav-logo img{height:46px;width:auto}
.nav-links{display:flex;align-items:center;gap:.1rem;list-style:none}
.nav-links a{display:block;font-weight:700;font-size:1.0625rem;line-height:1.2;color:#fff;text-decoration:none;white-space:nowrap;padding:.5rem .8rem .35rem;border-radius:999px}
.nav-links a:hover{box-shadow:inset 0 0 0 2px #fff}
.nav-links a[aria-current="page"]{background:var(--sun);color:var(--ink)}
/* the one action in the menu: a red box at the right-hand end */
.nav-links a.nav-cta{background:var(--red);color:#fff;border-radius:var(--r);margin-left:.6rem;padding:.6rem 1.1rem .45rem}
.nav-links a.nav-cta:hover{background:var(--red-dark);box-shadow:none}
/* burger button: three bars that become a cross while the menu is open */
.nav-toggle{display:none;position:relative;flex:none;width:46px;height:46px;padding:0;background:none;border:0;border-radius:var(--r);cursor:pointer}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{position:absolute;left:8px;width:30px;height:3px;border-radius:2px;background:#fff;transition:transform .15s ease-out,top .15s ease-out}
.nav-toggle span{top:21.5px}
.nav-toggle span::before,.nav-toggle span::after{content:"";left:0}
.nav-toggle span::before{top:-9px}
.nav-toggle span::after{top:9px}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}
@media (prefers-reduced-motion:reduce){.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{transition:none}}
/* narrower laptops: tighten the menu so all nine items and the red box still fit on one line */
@media(max-width:1439px){
  .nav{gap:1rem}
  .nav-name{font-size:1.35rem}
  .nav-links a{font-size:.95rem;padding:.5rem .5rem .35rem}
  .nav-links a.nav-cta{margin-left:.3rem;padding:.55rem .8rem .4rem}
}
@media(max-width:1280px){
  .nav-toggle{display:block}
  .nav-links{display:none}
  .nav-links.open{display:block;position:absolute;top:100%;left:0;right:0;max-height:calc(100vh - var(--nav-h));overflow-y:auto;background:var(--ink);padding:.5rem var(--gutter) 1.5rem}
  .nav-links.open a{font-size:1.4rem;padding:.6rem .9rem .45rem;width:fit-content}
  .nav-links.open a.nav-cta{margin:.6rem 0 0}
}
/* phones: the wordmark alone, without the logo drawing */
@media(max-width:600px){.nav-logo img{display:none}.nav-name{font-size:1.5rem}}

/* ---------- page header: black, the artwork fading in at the right ---------- */
.page-hero{display:flex;align-items:flex-end;min-height:min(44vh,380px);padding:calc(var(--nav-h) + 2.5rem) var(--gutter) clamp(1.75rem,4vw,2.5rem);color:#fff;border-bottom:4px solid var(--sun);--focus:var(--sun);--link:#fff;
  background-color:var(--ink);
  background-image:linear-gradient(90deg,var(--ink) 0%,rgba(5,2,8,.96) 40%,rgba(5,2,8,.6) 64%,rgba(5,2,8,.15) 100%),url('../kathakali-bsides/assets/kathakali.png');
  background-size:cover,cover;background-position:center,calc(50% + 20vw) 6%;background-repeat:no-repeat}
.page-hero .inner{width:100%;max-width:var(--max);margin:0 auto}
.page-hero h1{font-size:clamp(2.1rem,4.6vw,3.5rem);line-height:1.05;max-width:20ch}
.page-hero p{margin-top:.7rem;font-size:clamp(1.1rem,1.5vw,1.3rem);line-height:1.4;color:rgba(255,255,255,.86);max-width:44ch}
@media(max-width:820px){
  .page-hero{min-height:min(52vh,400px);
    background-image:linear-gradient(180deg,rgba(5,2,8,.35) 0%,rgba(5,2,8,.7) 50%,var(--ink) 90%),url('../kathakali-bsides/assets/kathakali.png');
    background-position:center,58% 20%}
}

/* ---------- sections ---------- */
.sect{padding:var(--space) var(--gutter)}
.wrap{max-width:var(--max);margin:0 auto}
/* two white sections in a row are separated by a rule, not by doubled padding */
.sect.plain + .sect.plain{padding-top:0}
.sect.plain + .sect.plain > .wrap{border-top:1px solid var(--line);padding-top:var(--space)}
.sect h2,.sect-heading{font-size:clamp(1.6rem,2.6vw,2.1rem)}
.sect-text{margin-top:.5rem;color:var(--muted);max-width:60ch}
.sep{display:none}

/* section title in a left rail, content to its right */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:1.25rem clamp(2rem,5vw,4rem);align-items:start}
@media(max-width:900px){.split{grid-template-columns:minmax(0,1fr)}}

/* text beside a picture, equal halves */
.pair{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:2.5rem clamp(2.5rem,6vw,5rem);align-items:center}
.pair img{width:100%;border:1px solid var(--line);border-radius:var(--r)}
@media(max-width:820px){.pair{grid-template-columns:minmax(0,1fr)}}

.prose{max-width:64ch}
.prose > * + *{margin-top:.9em}
.prose h2{margin-top:2.5rem}
.prose ul{padding-left:1.25rem}
.prose li + li{margin-top:.35em}
.lede{font-size:clamp(1.25rem,1.8vw,1.45rem);line-height:1.45;font-weight:500}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

.btn{display:inline-block;font-family:var(--display);font-weight:700;font-size:1.125rem;line-height:1.2;padding:.75rem 1.5rem .6rem;border:2px solid var(--ink);border-radius:var(--r);text-decoration:none;cursor:pointer;background:var(--ink);color:#fff}
.btn:hover{background:#fff;color:var(--ink)}
.btn-primary{background:var(--red);border-color:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark);border-color:var(--red-dark);color:#fff}
.btn-outline,.btn-secondary{background:transparent;color:var(--ink)}
.btn-outline:hover,.btn-secondary:hover{background:var(--ink);color:#fff}
.red-band .btn-primary{background:#fff;border-color:#fff;color:var(--ink)}
.red-band .btn-primary:hover{background:var(--ink);border-color:var(--ink);color:#fff}

/* ---------- people ---------- */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1.25rem;margin-top:2rem}
/* phones: one person per row */
@media(max-width:560px){.cards-grid{grid-template-columns:minmax(0,1fr);gap:1.25rem}.card-body h3{font-size:1.5rem}.card-body p{font-size:1.0625rem}}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.card-img img{width:100%;aspect-ratio:1;object-fit:cover}
.card-body{display:flex;flex-direction:column;flex:1;padding:.8rem .95rem .9rem}
.card-body h3{font-size:1.25rem;line-height:1.15}
.card-body p{margin-top:.2rem;font-size:1rem;line-height:1.35;color:var(--muted)}
.team-social{display:flex;gap:.35rem;margin-top:auto;padding-top:.6rem;margin-left:-.3rem}
.team-social a{display:inline-flex;padding:.3rem;border-radius:4px;color:var(--muted)}
.team-social a:hover{color:var(--ink);background:var(--wash)}
.team-social svg{width:20px;height:20px;fill:currentColor}

/* staff and volunteers: five cards to a row on wide screens */
.cards-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1000px){.cards-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.cards-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cards-grid.five{grid-template-columns:minmax(0,1fr)}}

/* organizing team: each card sits on a solid yellow block, offset down and to the right.
   Four wider cards to a row, with a short last row centred, so no row ends in empty slots
   and the roles fit in fewer lines. */
.cards-grid.offset{--gap:1.75rem;--cols:4;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--gap);padding:0 8px 8px 0}
.cards-grid.offset .card{flex:0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));border-color:var(--ink);border-radius:0;box-shadow:8px 8px 0 var(--sun)}
.cards-grid.offset .card-body{padding:.9rem 1.1rem 1rem}
.cards-grid.offset .card-body h3{font-size:1.4rem}
.cards-grid.offset .team-social{padding-top:.5rem}
@media(max-width:1000px){.cards-grid.offset{--cols:3}}
@media(max-width:700px){.cards-grid.offset{--cols:2;--gap:1.1rem;padding:0 6px 6px 0}.cards-grid.offset .card{box-shadow:6px 6px 0 var(--sun)}.cards-grid.offset .card-body{padding:.7rem .8rem .8rem}.cards-grid.offset .card-body h3{font-size:1.2rem}}

@media(max-width:560px){.cards-grid.offset{--cols:1;--gap:1.75rem}.cards-grid.offset .card-body{padding:1rem 1.2rem 1.1rem}.cards-grid.offset .card-body h3{font-size:1.6rem}}

/* ---------- past editions (archives page) ---------- */
.editions{list-style:none;border-top:2px solid var(--ink)}
.editions li{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) minmax(0,240px);gap:1rem clamp(1.5rem,4vw,3rem);align-items:center;padding:1.75rem 0;border-bottom:1px solid var(--line)}
.editions .yr{font-weight:800;font-size:clamp(2.75rem,6vw,4.25rem);line-height:.9;color:var(--ink);text-decoration:none;padding-top:.1em}
.editions .yr:hover{color:var(--red-dark)}
.editions h3{font-size:1.35rem}
.editions p{margin-top:.3rem;color:var(--muted);max-width:50ch}
.editions img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--r)}
@media(max-width:900px){
  .editions li{grid-template-columns:minmax(0,1fr)}
  .editions img{max-width:360px}
}

/* ---------- call for papers ---------- */
/* the deadline band: the date on the left, the one action on the right */
.red-band{padding-top:clamp(1.5rem,3vw,2.25rem);padding-bottom:clamp(1.5rem,3vw,2.25rem)}
.red-band .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem}
.red-band .actions{margin-top:0}
.deadline{font-weight:800;font-size:clamp(1.5rem,3vw,2.25rem);line-height:1.1}
/* short paragraphs set side by side under a heading */
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem clamp(2rem,4vw,3.5rem);border-top:2px solid var(--ink);margin-top:1.5rem;padding-top:1.25rem}
.cols3 p{color:var(--muted)}
@media(max-width:820px){.cols3{grid-template-columns:minmax(0,1fr)}}
/* the topic list runs the full width in three columns, so no rail sits empty beside it */
.topics{list-style:none;columns:3 16rem;column-gap:clamp(2rem,4vw,3.5rem);border-top:2px solid var(--ink);margin-top:1.75rem}
.topics li{font-weight:600;line-height:1.3;padding:.65rem 0 .5rem;border-bottom:1px solid var(--line);break-inside:avoid}

/* ---------- contact ---------- */
.contact-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:0 clamp(2rem,5vw,4rem);border-top:2px solid var(--ink)}
.contact-list dt,.contact-list dd{padding:1.4rem 0 1.2rem;border-bottom:1px solid var(--line)}
.contact-list dt{font-weight:700;font-size:1.25rem;color:var(--muted)}
.contact-list dd{font-weight:800;font-size:clamp(1.4rem,3.4vw,2.25rem);line-height:1.15;overflow-wrap:anywhere}
.contact-list a{color:var(--ink);text-decoration:none}
.contact-list a:hover{color:var(--red-dark);text-decoration:underline;text-decoration-thickness:2px}
@media(max-width:640px){
  .contact-list{grid-template-columns:minmax(0,1fr)}
  .contact-list dt{border-bottom:0;padding-bottom:0}
  .contact-list dd{padding-top:.2rem}
}

/* ---------- code of conduct ---------- */
.coc-rule{font-weight:800;font-size:clamp(1.35rem,2.4vw,1.75rem);line-height:1.2;border-left:6px solid var(--sun);padding:.4rem 0 .2rem 1.25rem;margin:2rem 0}
.coc-note{font-size:1rem;color:var(--muted);border-top:1px solid var(--line);margin-top:2.5rem;padding-top:1.25rem}

/* ---------- 2026 training pages: keep their own layout, use this type and palette ---------- */
.td-content h3,.td-info-box h4,.td-trainer-body h3{font-family:var(--display);letter-spacing:0}
.td-content h3{font-size:clamp(1.5rem,2.4vw,1.9rem)}
.td-info-box h4{font-size:1.3rem}
.td-day-tab,.td-bread,.td-trainer-body .td-trainer-role,.td-meta-item{font-family:var(--body);letter-spacing:0;text-transform:none;font-size:1.05rem}
.td-day-tab{border-radius:var(--r);border-width:2px;font-weight:700;padding:.4rem 1.1rem .25rem}
.td-day-tab.active{background:var(--ink);border-color:var(--ink);color:#fff}
.td-day-tab:hover:not(.active){border-color:var(--ink);color:var(--ink)}
.td-info-box,.td-callout,.td-social{border-radius:var(--r)}
.td-info-box.highlight{border-color:var(--ink)}
.td-info-box.highlight h4{color:var(--ink)}
.td-trainer-img img{border-radius:var(--r);border:1px solid var(--line)}

/* ---------- footer (same as the home page) ---------- */
.ft{background:#fff;border-top:3px solid var(--ink);padding:clamp(2.5rem,6vw,4rem) var(--gutter) 1.5rem}
.ft-inner{max-width:1340px;margin:0 auto}
.ft-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:2.5rem}
.ft-brand img{height:64px;width:auto}
.ft-brand p{margin-top:1rem;max-width:36ch;color:#48424F}
.ft-socials{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:1rem;margin-left:-.4rem}
.ft-social{display:inline-flex;padding:.4rem;border-radius:10px;color:var(--ink)}
.ft-social:hover{background:var(--sun)}
.ft-social svg{width:24px;height:24px}
.ft-col h2{font-size:1.4rem;margin-bottom:.4rem}
.ft-col a{display:block;width:fit-content;padding:.15rem 0;color:var(--ink);font-weight:500;text-decoration-color:var(--sun);text-decoration-thickness:3px;text-underline-offset:.2em}
.ft-col a:hover{text-decoration-color:var(--ink)}
.ft-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 2rem;margin-top:2.5rem;padding-top:1.1rem;border-top:3px solid var(--ink);font-size:1rem;color:#48424F}
.ft-banner{line-height:0;overflow:hidden;background:#fff}
.ft-banner img{width:100%;max-height:420px;object-fit:cover;object-position:center bottom}
@media(max-width:900px){.ft-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ft-grid{grid-template-columns:1fr}}

/* ---------- speakers page: every past speaker, by year ---------- */
.speaker-list h3{font-size:1.5rem;margin-top:2.5rem}
.speaker-list h3 span{font-weight:500;font-size:1.0625rem;color:var(--muted);margin-left:.5rem}
.speaker-list .topics{columns:4 13rem;margin-top:.9rem}
.speaker-list .topics a{color:var(--ink);text-decoration:none}
.speaker-list .topics a:hover{color:var(--red-dark);text-decoration:underline}

/* code of conduct: one reading column, centred on the page and set a little larger,
   with the list of unacceptable behaviour in two columns */
.prose.coc{max-width:52rem;margin-left:auto;margin-right:auto;font-size:1.1875rem;line-height:1.65}
.prose.coc ul{columns:2 20rem;column-gap:3rem;padding-left:1.25rem}
.prose.coc li{break-inside:avoid}
.prose.coc .coc-rule{font-size:clamp(1.6rem,3vw,2.25rem)}

/* ---------- contact: the main email fills a yellow panel on the left, since it is how
   most people will get in touch; the other three details stack beside it ---------- */
.contact-band{background:#fff;color:var(--ink);padding:var(--space) var(--gutter)}
.contact-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(2rem,4vw,3.5rem);align-items:stretch}
.contact-main{display:flex;flex-direction:column;justify-content:flex-end;min-height:24rem;background:var(--sun);color:var(--ink);text-decoration:none;padding:clamp(1.75rem,3.5vw,3rem);border-radius:var(--r)}
.contact-main .how{font-weight:700;font-size:1.25rem}
.contact-main .what{margin-top:.4rem;font-weight:800;font-size:clamp(2rem,4.6vw,3.75rem);line-height:1;overflow-wrap:anywhere}
.contact-main .note{margin-top:1.1rem;max-width:36ch;line-height:1.5}
.contact-main:hover .what{text-decoration:underline;text-decoration-thickness:.07em;text-underline-offset:.12em}
.contact-main:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.contact-side{list-style:none;display:flex;flex-direction:column;justify-content:space-between}
.contact-side li{padding:1.5rem 0;border-top:1px solid var(--line)}
.contact-side li:first-child{border-top:2px solid var(--ink)}
.contact-side li:last-child{border-bottom:1px solid var(--line)}
.contact-side h2{font-size:1.125rem;font-weight:700;color:var(--muted)}
.contact-side a,.contact-side address,.contact-side .todo{display:block;margin-top:.3rem;font-style:normal;font-weight:800;font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.15;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.contact-side a:hover{color:var(--red-dark);text-decoration:underline;text-decoration-thickness:2px}
/* a detail that has not been supplied yet */
.contact-side .todo{color:#8A8492}
.contact-side p{margin-top:.4rem;color:var(--muted)}
@media(max-width:860px){
  .contact-split{grid-template-columns:minmax(0,1fr)}
  .contact-main{min-height:0;padding-top:3rem}
}