/* ═══════════════════════════════════════════════════
   PARISH BULLETIN — Portal / Public CSS
   Redesigned to match St Joseph's website design system
   Fonts: Montserrat (headings/UI) + Inter (body)
   Palette: Navy #2c3e50 · Amber #FFA500 · Off-white #f9f9f9
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  /* Core palette — matches parish site */
  --pb-primary:        #2c3e50;
  --pb-primary-dark:   #2A2724;
  --pb-accent:         #FFA500;
  --pb-accent-hover:   #e69500;
  --pb-accent-light:   rgba(255, 165, 0, 0.1);
  --pb-accent-lighter: rgba(255, 165, 0, 0.05);
  --pb-white:          #ffffff;
  --pb-off-white:      #f9f9f9;
  --pb-light-grey:     #f0f2f5;
  --pb-border:         #eaeaea;
  --pb-border-lt:      #f5f5f5;
  --pb-muted:          #546e7a;
  --pb-muted-lt:       #90a4ae;
  --pb-text:           #333333;

  /* Legacy aliases for section templates */
  --pb-navy:  var(--pb-primary);
  --pb-gold:  var(--pb-accent);
  --pb-cream: var(--pb-off-white);

  /* Design tokens */
  --pb-radius:    8px;
  --pb-radius-lg: 16px;
  --pb-shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --pb-shadow:    0 8px 24px rgba(0,0,0,0.08);
  --pb-shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --pb-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --pb-transition-fast: all 0.15s ease;

  /* Typography */
  --pb-font-sans:  'Inter', system-ui, sans-serif;
  --pb-font-head:  'Montserrat', system-ui, sans-serif;
  --pb-font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Nav height (approx) */
  --pb-nav-h: 55px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body.pb-portal-body {
  margin: 0;
  padding: 0;
  background: var(--pb-off-white);
  font-family: var(--pb-font-sans);
  color: var(--pb-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pb-font-head);
  font-weight: 700;
  color: var(--pb-primary);
  line-height: 1.2;
  margin: 0;
}

/* ═══════════════════════════════════════
   STICKY HEADER
═══════════════════════════════════════ */
.pb-portal-header {
  background: var(--pb-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.pb-portal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pb-portal-logo {
  max-height: 34px;
  width: auto;
}
.pb-portal-site-name {
  font-family: var(--pb-font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.pb-portal-site-name i {
  color: var(--pb-accent);
  font-size: 15px;
}
.pb-portal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--pb-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  transition: var(--pb-transition-fast);
}
.pb-portal-back:hover {
  color: #fff;
  border-color: var(--pb-accent);
  background: rgba(255,165,0,0.1);
}
.pb-portal-back i { font-size: 11px; }

/* ═══════════════════════════════════════
   HERO SECTION (Archive)
═══════════════════════════════════════ */
.pb-portal-hero-banner {
  position: relative;
  padding: 90px 24px 70px;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.92) 0%, rgba(42, 39, 36, 0.96) 100%),
              url('https://stjosephclarkston.com/wp-content/uploads/2026/01/Welcome-View-from-LHS-scal.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.pb-portal-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--pb-off-white));
  pointer-events: none;
}
.pb-portal-hero-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
}
.pb-portal-hero-banner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
.pb-portal-main {
  padding: 48px 24px 80px;
}
.pb-portal-container {
  max-width: 1200px;
  margin: 0 auto;
}
/* Narrower container for single bulletin */
.pb-portal-container--narrow {
  max-width: 800px;
  margin: 0 auto;
}
.pb-selfservice-container {
  max-width: 480px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════ */
.pb-archive-title-block {
  text-align: center;
  margin-bottom: 48px;
}
.pb-archive-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}
.pb-archive-subtitle {
  font-size: 1rem;
  color: var(--pb-muted);
  margin: 0;
  font-family: var(--pb-font-sans);
  font-weight: 400;
}

/* Grid of cards */
.pb-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

/* Individual card */
.pb-archive-card {
  text-decoration: none;
  color: inherit;
  background: var(--pb-white);
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--pb-shadow-sm);
  border: 1px solid var(--pb-border);
  transition: var(--pb-transition);
  position: relative;
}
.pb-archive-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pb-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--pb-transition);
}
.pb-archive-card:hover {
  box-shadow: var(--pb-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.pb-archive-card:hover::before {
  transform: scaleX(1);
}

.pb-archive-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--pb-light-grey);
  flex-shrink: 0;
}
.pb-archive-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--pb-accent);
  background: linear-gradient(135deg, var(--pb-accent-lighter), var(--pb-accent-light));
}
.pb-archive-card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-archive-card-eyebrow {
  font-family: var(--pb-font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-muted);
  margin: 0;
}
.pb-archive-card-title {
  font-family: var(--pb-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--pb-primary);
  margin: 4px 0 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pb-archive-card-feast {
  font-family: var(--pb-font-serif);
  font-style: italic;
  color: var(--pb-accent);
  font-size: 14px;
  margin: 2px 0 0;
}
.pb-archive-card-date {
  font-size: 11.5px;
  color: var(--pb-muted);
  margin: 4px 0 0;
  font-weight: 500;
}
.pb-archive-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--pb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pb-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pb-accent);
  background: var(--pb-off-white);
  transition: var(--pb-transition-fast);
}
.pb-archive-card-footer i {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.pb-archive-card:hover .pb-archive-card-footer i {
  transform: translateX(4px);
}

.pb-archive-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--pb-muted);
  background: var(--pb-white);
  border-radius: var(--pb-radius-lg);
  border: 1px solid var(--pb-border);
}
.pb-archive-empty i {
  font-size: 48px;
  color: var(--pb-border);
  display: block;
  margin-bottom: 16px;
}

/* Subscribe CTA */
.pb-archive-subscribe-cta {
  text-align: center;
  padding: 40px 32px;
  background: var(--pb-white);
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow-sm);
  border: 1px solid var(--pb-border);
  border-top: 4px solid var(--pb-accent);
}
.pb-archive-subscribe-cta p {
  font-family: var(--pb-font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pb-primary);
  margin: 0 0 18px;
}

/* ═══════════════════════════════════════
   SINGLE BULLETIN PAGE
═══════════════════════════════════════ */

/* Title block */
.pb-portal-title-block {
  text-align: center;
  padding: 40px 0 32px;
  margin-bottom: 40px;
  position: relative;
}
.pb-portal-title-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--pb-accent);
  border-radius: 2px;
}
.pb-portal-bulletin-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--pb-primary);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.pb-portal-bulletin-date {
  font-size: 13px;
  color: var(--pb-muted);
  margin: 0;
  font-weight: 500;
}
.pb-portal-bulletin-date i {
  color: var(--pb-accent);
  margin-right: 5px;
}

/* Section jump nav */
.pb-portal-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}
.pb-portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pb-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pb-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--pb-border);
  border-radius: 50px;
  background: var(--pb-white);
  transition: var(--pb-transition-fast);
  box-shadow: var(--pb-shadow-sm);
}
.pb-portal-nav-link:hover,
.pb-portal-nav-link.active {
  border-color: var(--pb-accent);
  color: var(--pb-accent);
  background: var(--pb-accent-light);
}

/* Sections */
.pb-portal-section {
  margin-bottom: 28px;
}
.pb-portal-section--active {
  animation: pb-section-highlight 1.5s ease;
}
@keyframes pb-section-highlight {
  0%   { box-shadow: 0 0 0 3px rgba(255,165,0,0.4); }
  100% { box-shadow: none; }
}

/* Shared inner card */
.pb-portal-section-inner {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--pb-shadow-sm);
}

/* Section title with amber underline */
.pb-portal-section-title {
  font-family: var(--pb-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pb-primary);
  margin: 0 0 24px;
  padding-bottom: 14px;
  position: relative;
}
.pb-portal-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px;
  height: 3px;
  background: var(--pb-accent);
  border-radius: 2px;
}

/* ── Bulletin header section (feast / date) ── */
.pb-portal-bulletin-header {
  text-align: center;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-dark) 100%);
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow);
}
.pb-portal-eyebrow {
  font-family: var(--pb-font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 12px;
}
.pb-portal-feast {
  font-family: var(--pb-font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-style: italic;
  color: var(--pb-accent);
  margin: 0 0 8px;
}
.pb-portal-date {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-weight: 500;
}

/* ── Hero image ── */
.pb-portal-hero {
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  box-shadow: var(--pb-shadow);
}
.pb-portal-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Mass schedule ── */
.pb-portal-schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.pb-portal-schedule-table tr {
  border-bottom: 1px solid var(--pb-border);
}
.pb-portal-schedule-table tr:last-child {
  border-bottom: none;
}
.pb-portal-sched-day {
  font-family: var(--pb-font-head);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 16px 12px 0;
  width: 35%;
  vertical-align: top;
  color: var(--pb-primary);
}
.pb-portal-sched-time {
  color: var(--pb-muted);
  padding: 12px 16px 12px 0;
  font-size: 13.5px;
  vertical-align: top;
  font-weight: 500;
}
.pb-portal-sched-int {
  font-size: 12px;
  color: var(--pb-muted-lt);
  font-style: italic;
  padding: 12px 0;
  vertical-align: top;
}
.pb-portal-lenten-box {
  background: var(--pb-accent-lighter);
  border: 1px solid var(--pb-accent-light);
  border-left: 4px solid var(--pb-accent);
  border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
  padding: 16px 18px;
  margin-top: 24px;
}
.pb-portal-lenten-title {
  font-family: var(--pb-font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-accent);
  margin: 0 0 8px;
}

/* ── Readings ── */
.pb-portal-reading {
  padding: 16px 0;
  border-bottom: 1px solid var(--pb-border-lt);
}
.pb-portal-reading:last-child { border-bottom: none; }
.pb-portal-reading-label {
  font-family: var(--pb-font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-accent);
  margin: 0 0 4px;
}
.pb-portal-reading-title {
  font-family: var(--pb-font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--pb-primary);
  margin: 0 0 4px;
}
.pb-portal-reading-desc {
  font-size: 13px;
  color: var(--pb-muted);
  margin: 0;
}

/* ── Intro / Pastor's note ── */
.pb-portal-intro {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-left: 4px solid var(--pb-accent);
  border-radius: 0 var(--pb-radius-lg) var(--pb-radius-lg) 0;
  padding: 28px 32px;
  box-shadow: var(--pb-shadow-sm);
}
.pb-portal-intro p {
  font-family: var(--pb-font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.8;
  color: var(--pb-text);
  margin: 0;
}

/* ── News items ── */
.pb-portal-news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--pb-border-lt);
}
.pb-portal-news-item:last-child { border-bottom: none; }
.pb-portal-news-tag {
  display: inline-block;
  font-family: var(--pb-font-head);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-primary);
  background: var(--pb-accent-light);
  border: 1px solid rgba(255,165,0,0.2);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.pb-portal-news-chip {
  display: inline-block;
  font-family: var(--pb-font-head);
  font-size: 10px;
  font-weight: 600;
  color: var(--pb-accent);
  background: var(--pb-accent-lighter);
  border: 1px solid var(--pb-accent-light);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.pb-portal-news-title {
  font-family: var(--pb-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--pb-primary);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.pb-portal-news-body {
  font-size: 14px;
  color: var(--pb-muted);
  line-height: 1.75;
  margin: 0;
}
.pb-portal-news-body a {
  color: var(--pb-accent);
  font-weight: 600;
  text-decoration: none;
}
.pb-portal-news-body a:hover { text-decoration: underline; }
.pb-portal-news-body p { margin: 0 0 8px; }
.pb-portal-news-body p:last-child { margin-bottom: 0; }
.pb-portal-news-item-img {
  width: 100%;
  height: auto;
  border-radius: var(--pb-radius);
  margin-bottom: 14px;
  display: block;
}

/* ── Contacts ── */
.pb-portal-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.pb-portal-contacts-col-title {
  font-family: var(--pb-font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-accent);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pb-accent-light);
}
.pb-portal-contact {
  font-size: 13.5px;
  color: var(--pb-text);
  margin-bottom: 16px;
  line-height: 1.65;
}
.pb-portal-contact a {
  color: var(--pb-primary);
  text-decoration: none;
  font-weight: 500;
}
.pb-portal-contact a:hover { color: var(--pb-accent); }
.pb-portal-contact strong {
  font-family: var(--pb-font-head);
  font-weight: 700;
  color: var(--pb-primary);
  display: block;
  margin-bottom: 2px;
}

/* ── Footer actions ── */
.pb-portal-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--pb-border);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.pb-portal-btn,
.pb-portal-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--pb-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pb-transition);
  border: 2px solid transparent;
}
.pb-portal-btn {
  background: var(--pb-accent);
  color: var(--pb-white);
  border-color: var(--pb-accent);
  box-shadow: var(--pb-shadow-sm);
}
.pb-portal-btn:hover {
  background: var(--pb-accent-hover);
  border-color: var(--pb-accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--pb-shadow);
}
.pb-portal-btn-outline {
  background: transparent;
  color: var(--pb-primary);
  border-color: var(--pb-border);
  box-shadow: var(--pb-shadow-sm);
}
.pb-portal-btn-outline:hover {
  border-color: var(--pb-accent);
  color: var(--pb-accent);
  background: var(--pb-accent-light);
  transform: translateY(-2px);
}

/* ── pb-btn for self-service pages ── */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--pb-radius);
  font-family: var(--pb-font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--pb-transition-fast);
  letter-spacing: -0.01em;
}
.pb-btn-primary { background: var(--pb-accent); color: #fff; border-color: var(--pb-accent); }
.pb-btn-primary:hover { background: var(--pb-accent-hover); }
.pb-btn-outline { background: transparent; border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-btn-outline:hover { background: var(--pb-accent-light); border-color: var(--pb-accent); color: var(--pb-accent); }
.pb-btn-ghost { background: transparent; color: var(--pb-muted); border-color: transparent; }
.pb-btn-ghost:hover { color: var(--pb-text); background: var(--pb-light-grey); }
.pb-btn-full { width: 100%; margin-bottom: 8px; }
.pb-btn-danger-outline {
  background: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  padding: 10px 20px;
  border-radius: var(--pb-radius);
  font-family: var(--pb-font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--pb-transition-fast);
}
.pb-btn-danger-outline:hover { background: #fdecea; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.pb-portal-footer {
  background: var(--pb-primary);
  text-align: center;
  padding: 28px 24px;
  margin-top: 0;
}
.pb-portal-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  font-family: var(--pb-font-head);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════
   SELF-SERVICE / FORMS
═══════════════════════════════════════ */
.pb-selfservice-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  border-top: 4px solid var(--pb-accent);
  padding: 40px;
  box-shadow: var(--pb-shadow);
}
.pb-selfservice-title {
  font-family: var(--pb-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pb-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pb-selfservice-desc {
  font-size: 13.5px;
  color: var(--pb-muted);
  margin: 0 0 28px;
}
.pb-ss-msg {
  padding: 12px 16px;
  border-radius: var(--pb-radius);
  font-size: 13px;
  margin-bottom: 18px;
}
.pb-ss-msg.success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.pb-ss-msg.error   { background: #fdecea; color: #c62828; border-left: 3px solid #c62828; }
.pb-ss-msg.info    { background: #e3f2fd; color: #1565c0; border-left: 3px solid #1565c0; }
.pb-selfservice-unsub-section {
  border-top: 1px solid var(--pb-border);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
}
.pb-selfservice-unsub-section p {
  font-size: 13px;
  color: var(--pb-muted);
  margin: 0 0 14px;
}
.pb-selfservice-done { text-align: center; padding: 20px 0; }
.pb-selfservice-done-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pb-accent-light);
  color: var(--pb-accent);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.pb-selfservice-done h2 {
  font-size: 1.5rem;
  color: var(--pb-primary);
  margin: 0 0 10px;
}
.pb-selfservice-done p {
  font-size: 14px;
  color: var(--pb-muted);
  margin: 0 0 24px;
  font-family: var(--pb-font-sans);
  font-weight: 400;
}

/* OTP input */
.pb-otp-input {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 10px;
  color: var(--pb-primary);
  font-family: var(--pb-font-head);
}

/* Form utils */
.pb-field { margin-bottom: 18px; }
.pb-field-full { grid-column: 1 / -1; }
.pb-label {
  display: block;
  font-family: var(--pb-font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--pb-primary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.pb-input, .pb-textarea, .pb-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  font-family: var(--pb-font-sans);
  font-size: 13.5px;
  color: var(--pb-text);
  outline: none;
  background: var(--pb-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pb-input:focus, .pb-textarea:focus, .pb-select:focus {
  border-color: var(--pb-accent);
  box-shadow: 0 0 0 3px var(--pb-accent-light);
}
.pb-textarea { resize: vertical; min-height: 80px; }
.pb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Subscribe form (shortcode) */
.pb-subscribe-form-wrap {}
.pb-subscribe-form {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  border-top: 4px solid var(--pb-accent);
  padding: 32px;
  max-width: 480px;
  box-shadow: var(--pb-shadow);
}
.pb-subscribe-title {
  font-family: var(--pb-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pb-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pb-subscribe-desc { font-size: 13px; color: var(--pb-muted); margin: 0 0 22px; }
.pb-subscribe-row { display: flex; gap: 10px; margin-bottom: 12px; }
.pb-subscribe-email { margin-bottom: 12px; }
.pb-subscribe-privacy { font-size: 11px; color: var(--pb-muted); text-align: center; margin-top: 10px; }
.pb-subscribe-msg {
  padding: 12px 16px;
  border-radius: var(--pb-radius);
  font-size: 13px;
  margin-bottom: 14px;
}
.pb-subscribe-msg.success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.pb-subscribe-msg.error   { background: #fdecea; color: #c62828; border-left: 3px solid #c62828; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .pb-portal-main { padding: 32px 16px 60px; }
  .pb-portal-hero-banner { padding: 70px 20px 60px; }
  .pb-archive-grid { grid-template-columns: 1fr; gap: 20px; }
  .pb-portal-section-inner { padding: 24px 20px; }
  .pb-selfservice-card { padding: 28px 20px; }
  .pb-portal-bulletin-header { padding: 28px 20px; }
  .pb-portal-footer-actions { flex-direction: column; align-items: center; }
  .pb-portal-contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .pb-form-grid { grid-template-columns: 1fr; }
  .pb-subscribe-row { flex-direction: column; }
  .pb-portal-nav-link { font-size: 10px; padding: 7px 12px; }
  .pb-portal-section-title { font-size: 1.2rem; }
  .pb-portal-section-inner { padding: 20px 16px; }
}

/* ── Override: ensure no unwanted list markers from WordPress themes ── */
.pb-portal-body ul,
.pb-portal-body ol { padding-left: 0; }

.pb-portal-news-body ul,
.pb-portal-news-body ol { padding-left: 1.5em; margin: 8px 0; }
