/* president.html — the home page's President section as a page of its own.
   styles.css carries the section; this only adapts it to a subpage. */

.president { padding-top: 36px; }
.president__top { max-width: 1240px; margin: 0 auto 30px; }
.president__back {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.president__back:hover { color: var(--blue); }

.president__actions { flex-direction: column; align-items: flex-start; gap: 14px; }
.president__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* a:hover would turn the label green on the button's green hover fill */
a.president__chat-btn, a.president__chat-btn:hover { color: #fff; }

.president__back:focus-visible,
.president__actions a:focus-visible,
.president__more a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.president__back:focus-visible { border-radius: 4px; }

.president__more {
  max-width: 1240px; margin: 64px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(20, 24, 28, .1);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.president__more-label { margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* The photo is square; once the grid stacks (1100px) its box turns wide and
   cover would crop at the hairline. Hold the faces in frame. */
.president__photo img { object-position: 50% 28%; }

/* ---- In Parliament: speeches and letters, filled by js/member.js ---- */
.pwork { padding: 76px var(--px) 96px; background: #fff; border-top: 1px solid rgba(20, 24, 28, .07); }
.pwork__wrap { max-width: 1240px; margin: 0 auto; }
[data-lang="ta"] .pwork__kicker { font-size: 13.5px; letter-spacing: .04em; }
.pwork__title { margin: 12px 0 0; font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
[data-lang="ta"] .pwork__title { line-height: 1.3; }
.pwork__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.pwork .mwork { background: var(--bg); box-shadow: none; border: 1px solid rgba(20, 24, 28, .08); }
.pwork__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 24px; }
.pwork__links a { display: inline-flex; align-items: center; min-height: 44px; }
.pwork__links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 760px) {
  .pwork { padding: 56px var(--px) 72px; }
  .pwork__grid { grid-template-columns: 1fr; margin-top: 22px; }
}

@media (max-width: 640px) {
  .president { padding-top: 22px; padding-bottom: 64px; }
  .president__top { margin-bottom: 26px; }
  /* keep the name inside the first screen on a phone */
  .president__photo img { height: min(420px, 82vw); }
  .president__more { margin-top: 48px; }
  .president__more-label { flex-basis: 100%; }
}
