/* ============================================================
   Zoho Weekly Digest - common stylesheet
   (c) 2026 New Realities Corporation
   ============================================================ */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #1A1A1A;
  --text-secondary: #5F5E5A;
  --text-tertiary: #888780;
  --accent: #C8102E;
  --brand-blue: #3B5998;
  --official: #534AB7;
  --blog: #0F6E56;
  --media: #888780;
  --price: #BA7517;
  --event: #185FA5;
  --breaking: #A32D2D;
  --radius: 10px;
  --radius-lg: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.product-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo-mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}
.logo-mark span { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}
.hero-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.hero-meta .dot { color: var(--text-tertiary); }

/* ---------- Layout ---------- */
.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.layout-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
}

/* ---------- Section heading ---------- */
.section-heading {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  text-align: right;
  padding-right: 4px;
}
.timeline-date .dow {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}
.timeline-date .date {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
}
.timeline-body {
  border-left: 2px solid var(--media);
  padding-left: 18px;
}
.timeline-body.t-official { border-left-color: var(--official); }
.timeline-body.t-blog { border-left-color: var(--blog); }
.timeline-body.t-price { border-left-color: var(--price); }
.timeline-body.t-event { border-left-color: var(--event); }

.topic-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text);
}
.topic-title a:hover { color: var(--accent); }
.topic-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.7;
}
.topic-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}
.source-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.tag-official { background: #EEEDFE; color: #3C3489; }
.tag-blog { background: #E1F5EE; color: #085041; }
.tag-media { background: #F1EFE8; color: #444441; }
.tag-price { background: #FAEEDA; color: #633806; }
.tag-event { background: #E6F1FB; color: #0C447C; }

.topic-link {
  color: var(--official);
  font-size: 12px;
}
.topic-link:hover { text-decoration: underline; }

/* ---------- Breaking banner ---------- */
.breaking {
  background: #FCEBEB;
  border: 0.5px solid #F09595;
  border-left: 3px solid var(--breaking);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.breaking-label {
  background: var(--breaking);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
  flex-shrink: 0;
}
.breaking-body {
  font-size: 13.5px;
  color: #501313;
  flex: 1;
}

/* ---------- Sidebar ---------- */
.sidebar { font-size: 13px; }
.sidebar-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  font-weight: 500;
  margin: 0 0 12px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
}
.stat-value {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-list li {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.archive-list li:last-child { border-bottom: none; }
.archive-vol {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}
.archive-link {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-top: 2px;
  line-height: 1.5;
}
.archive-link:hover { color: var(--accent); }

.subscribe-input {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
  margin-bottom: 8px;
}
.subscribe-btn {
  width: 100%;
  padding: 9px;
  background: var(--text);
  color: var(--surface);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.subscribe-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 8px 0 0;
  line-height: 1.5;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.legend-bar {
  width: 3px;
  height: 14px;
  border-radius: 1px;
}

/* ---------- Archive grid ---------- */
.archive-section {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 32px 24px 0;
  border-top: 0.5px solid var(--border);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.archive-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.archive-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.archive-card .vol {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 500;
}
.archive-card .period {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.archive-card .head {
  font-size: 14px;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.55;
}
.archive-card .count {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--border);
}

/* ---------- Article page ---------- */
.article-header {
  padding: 32px 0 24px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 24px;
}
.article-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.article-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
}
.article-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.article-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--surface);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--border);
}
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--text-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.source-box {
  margin: 32px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
}
.source-box-title {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  font-weight: 500;
  margin: 0 0 10px;
}
.source-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-box li {
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
}
.source-box li:last-child { border-bottom: none; }
.source-box a { color: var(--official); }
.source-box a:hover { text-decoration: underline; }

.related-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s;
}
.related-card:hover { border-color: var(--border-strong); }
.related-card .date {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}
.related-card .title {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- Filter bar (archive page) ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.filter-pill {
  background: var(--surface);
  border: 0.5px solid var(--border);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}
.filter-pill.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.filter-pill:hover:not(.active) { border-color: var(--border-strong); color: var(--text); }

/* ---------- Subscribe page ---------- */
.subscribe-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.subscribe-form-block {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.subscribe-form-block input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  margin-bottom: 10px;
}
.subscribe-form-block button {
  width: 100%;
  padding: 12px;
  background: var(--text);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 40px 0;
}
.benefit-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
}
.benefit-card .icon {
  font-size: 22px;
  margin-bottom: 8px;
}
.benefit-card .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.benefit-card .body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- About page ---------- */
.about-section {
  margin-bottom: 40px;
}
.about-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}
.about-section p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 14px;
}
.source-policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .source-policy-grid { grid-template-columns: 1fr; }
}
.source-policy {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.source-policy .name {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.source-policy .desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.company-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-top: 16px;
}
.company-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.company-card .name {
  font-size: 15px;
  font-weight: 600;
}
.company-card .info {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 0.5px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }
