/* ══════════════════════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ══════════════════════════════════════════════════════════════════════════ */

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  border-bottom: 1px solid var(--bo-rule);
  background: var(--bo-paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fr-wrap .article-header {
  background: var(--fr-bg);
  border-color: var(--fr-rule);
}

.gd-wrap .article-header {
  background: var(--gd-paper);
  border-color: var(--gd-rule);
}

.cc-wrap .article-header {
  background: var(--cc-bg);
  border-color: var(--cc-rule);
}

.back-link {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bo-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--bo-accent);
}

.fr-wrap .back-link:hover {
  color: var(--fr-accent);
}

.gd-wrap .back-link:hover {
  color: var(--gd-accent);
}

.cc-wrap .back-link:hover {
  color: var(--cc-accent);
}

.logo-mini {
  font-family: var(--f-masthead);
  font-size: 24px;
  font-weight: 700;
  color: var(--bo-ink);
  text-decoration: none;
}

.logo-mini span {
  color: var(--bo-accent);
}

.fr-wrap .logo-mini span {
  color: var(--fr-accent);
}

.gd-wrap .logo-mini span {
  color: var(--gd-accent);
}

.cc-wrap .logo-mini span {
  color: var(--cc-accent);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-meta-top {
  margin-bottom: 16px;
}

.article-kicker {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bo-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--bo-accent);
}

.fr-wrap .article-kicker {
  color: var(--fr-accent);
}

.cc-wrap .article-kicker {
  color: var(--cc-accent);
}

.fr-wrap .article-kicker::before {
  background: var(--fr-accent);
}

.gd-wrap .article-kicker {
  color: var(--gd-accent);
}

.gd-wrap .article-kicker::before {
  background: var(--gd-accent);
}

.cc-wrap .article-kicker::before {
  background: var(--cc-accent);
}

.article-title {
  font-family: var(--f-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bo-ink);
  margin-bottom: 24px;
}

.article-title em {
  font-style: italic;
  color: var(--bo-accent);
}

.fr-wrap .article-title em {
  color: var(--fr-accent);
}

.gd-wrap .article-title em {
  color: var(--gd-accent);
}

.cc-wrap .article-title em {
  color: var(--cc-accent);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--bo-muted);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bo-rule);
}

.fr-wrap .article-meta {
  border-color: var(--fr-rule);
  color: var(--fr-muted);
}

.gd-wrap .article-meta {
  border-color: var(--gd-rule);
  color: var(--gd-muted);
}

.cc-wrap .article-meta {
  border-color: var(--cc-rule);
  color: var(--cc-muted);
}

.article-author {
  font-weight: 600;
  color: var(--bo-ink);
}

.fr-wrap .article-author {
  color: var(--fr-text-dim);
}

.gd-wrap .article-author {
  color: var(--gd-ink);
}

.cc-wrap .article-author {
  color: var(--cc-ink);
}

.article-location {
  background: var(--bo-ink);
  color: var(--bo-paper);
  padding: 2px 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fr-wrap .article-location {
  background: var(--fr-accent);
  color: white;
}

.gd-wrap .article-location {
  background: var(--gd-accent);
  color: white;
}

.cc-wrap .article-location {
  background: var(--cc-accent);
  color: white;
}

.article-body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  color: #2a2820;
}

.fr-wrap .article-body {
  color: var(--fr-text);
}

.gd-wrap .article-body {
  color: #2a2a22;
}

.cc-wrap .article-body {
  color: var(--cc-ink);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body p:first-child::first-letter {
  font-family: var(--f-serif);
  font-size: 72px;
  font-weight: 800;
  float: left;
  line-height: 0.78;
  margin: 12px 12px 0 0;
  color: var(--bo-ink);
}

.fr-wrap .article-body p:first-child::first-letter {
  color: var(--fr-accent);
}

.gd-wrap .article-body p:first-child::first-letter {
  color: var(--gd-accent);
}

.cc-wrap .article-body p:first-child::first-letter {
  color: var(--cc-accent);
}

.article-body h2 {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--bo-ink);
}

.article-body h3 {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: var(--bo-accent);
}

.fr-wrap .article-body h3 {
  color: var(--fr-accent);
}

.gd-wrap .article-body h3 {
  color: var(--gd-accent);
}

.cc-wrap .article-body h3 {
  color: var(--cc-accent);
}

.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--bo-accent);
  background: var(--bo-paper-dim);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--bo-ink);
}

.fr-wrap .article-body blockquote {
  border-color: var(--fr-accent);
  background: var(--fr-bg-raised);
}

.gd-wrap .article-body blockquote {
  border-color: var(--gd-accent);
  background: var(--gd-paper-dim);
}

.cc-wrap .article-body blockquote {
  border-color: var(--cc-accent);
  background: var(--cc-bg-raised);
}

.rw-wrap .article-body blockquote {
  border-color: var(--rw-accent);
  background: var(--rw-paper-dim);
}

.article-body ul, .article-body ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
}

.article-pullquote {
  margin: 48px -48px;
  padding: 32px 48px;
  background: var(--bo-ink);
  color: var(--bo-paper);
  position: relative;
}

.fr-wrap .article-pullquote {
  background: var(--fr-accent);
}

.gd-wrap .article-pullquote {
  background: var(--gd-accent);
}

.cc-wrap .article-pullquote {
  background: var(--cc-accent);
}

.rw-wrap .article-pullquote {
  background: var(--rw-accent);
}

.article-pullquote p {
  font-family: var(--f-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.article-pullquote::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 48px;
  font-family: var(--f-serif);
  font-size: 80px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}

.article-footer {
  background: var(--bo-ink);
  padding: 48px;
}

.fr-wrap .article-footer {
  background: var(--fr-bot-bg);
}

.gd-wrap .article-footer {
  background: var(--gd-ink);
}

.cc-wrap .article-footer {
  background: var(--cc-bot-bg);
}

.article-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-cta h3 {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bo-paper);
  margin-bottom: 12px;
}

.footer-cta .btn {
  display: inline-block;
  width: auto;
  background: var(--bo-accent);
}

.fr-wrap .footer-cta .btn {
  background: var(--fr-accent);
}

.gd-wrap .footer-cta .btn {
  background: var(--gd-accent);
}

.cc-wrap .footer-cta .btn {
  background: var(--cc-accent);
}

.footer-brand {
  text-align: right;
}

.footer-brand .logo-mini {
  color: var(--bo-paper);
  font-size: 20px;
}

.footer-brand p {
  font-family: var(--f-ui);
  font-size: 10px;
  color: #555;
  margin-top: 8px;
}

/* Responsive */

/* iPad / Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .article-header {
    padding: 14px 32px;
  }
  
  .article-content {
    padding: 40px 32px 56px;
    max-width: 720px;
  }
  
  .article-title {
    font-size: clamp(32px, 5vw, 42px);
  }
  
  .article-body {
    font-size: 18px;
  }
  
  .article-pullquote {
    margin: 40px -16px;
    padding: 28px 24px;
  }
  
  .article-footer {
    padding: 40px 32px;
  }
}

/* Publication Metadata */
.article-pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bo-bg, #f5f4f2);
  border-radius: 4px;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bo-muted);
}

.fr-wrap .article-pub-meta {
  background: var(--fr-bg);
  color: var(--fr-muted);
}

.gd-wrap .article-pub-meta {
  background: var(--gd-bg);
  color: var(--gd-muted);
}

.cc-wrap .article-pub-meta {
  background: var(--cc-bg);
  color: var(--cc-muted);
}

.article-pub-meta .pub-name {
  font-weight: 600;
}

.article-pub-meta .pub-section {
  color: var(--bo-accent);
}

.fr-wrap .article-pub-meta .pub-section {
  color: var(--fr-accent);
}

.gd-wrap .article-pub-meta .pub-section {
  color: var(--gd-accent);
}

.cc-wrap .article-pub-meta .pub-section {
  color: var(--cc-accent);
}

.article-pub-meta .pub-id {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  opacity: 0.7;
}

/* Citation Section */
.footer-cite {
  padding: 20px 24px;
  background: var(--bo-bg, #f5f4f2);
  border-radius: 6px;
  margin-bottom: 24px;
  text-align: center;
}

.fr-wrap .footer-cite {
  background: var(--fr-bg);
}

.gd-wrap .footer-cite {
  background: var(--gd-bg);
}

.cc-wrap .footer-cite {
  background: var(--cc-bg);
}

.footer-cite h4 {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bo-muted);
  margin: 0 0 12px 0;
}

.cite-full {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding: 12px;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--bo-rule);
}

.cite-short {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--bo-muted);
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--bo-rule);
}

/* Citation Copy Buttons */
.cite-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cite-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bo-muted);
  background: white;
  border: 1px solid var(--bo-rule);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.cite-copy-btn:hover {
  color: var(--bo-accent);
  border-color: var(--bo-accent);
  background: rgba(181, 97, 10, 0.05);
}

.cite-copy-btn.copied {
  color: #27ae60;
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.08);
}

.cite-copy-btn svg {
  flex-shrink: 0;
}

/* Section-specific button colors */
.fr-wrap .cite-copy-btn:hover {
  color: var(--fr-accent);
  border-color: var(--fr-accent);
  background: rgba(90, 56, 40, 0.05);
}

.gd-wrap .cite-copy-btn:hover {
  color: var(--gd-accent);
  border-color: var(--gd-accent);
  background: rgba(56, 80, 40, 0.05);
}

.cc-wrap .cite-copy-btn:hover {
  color: var(--cc-accent);
  border-color: var(--cc-accent);
  background: rgba(107, 76, 138, 0.05);
}

/* Mobile */
@media (max-width: 767px) {
  .article-header {
    padding: 12px 20px;
  }
  
  .article-pub-meta {
    font-size: 10px;
    padding: 10px 12px;
  }
  
  .article-pub-meta .pub-id {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
  
  .article-content {
    padding: 32px 20px 48px;
  }
  
  .article-title {
    font-size: clamp(26px, 7vw, 36px);
  }
  
  .article-body {
    font-size: 17px;
  }
  
  .article-pullquote {
    margin: 32px -20px;
    padding: 24px 20px;
  }
  
  .article-pullquote p {
    font-size: 20px;
  }
  
  .article-footer {
    padding: 32px 20px;
  }
  
  .article-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
  }
}

/* ══════════════ INLINE SUBSCRIBE PROMPT ══════════════ */
.article-subscribe {
  margin: 48px 0;
  padding: 32px;
  background: rgba(181, 97, 10, 0.06);
  border: 1px solid rgba(181, 97, 10, 0.15);
  border-radius: 6px;
}

.article-subscribe-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.article-subscribe-text {
  font-family: var(--f-serif);
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.article-subscribe-form input {
  flex: 1;
  max-width: 240px;
  padding: 12px 16px;
  font-family: var(--f-ui);
  font-size: 14px;
  border: 1px solid rgba(181, 97, 10, 0.3);
  border-radius: 4px;
  background: #fff;
  outline: none;
}

.article-subscribe-form input:focus {
  border-color: var(--bo-accent);
}

.article-subscribe-form button {
  padding: 12px 20px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bo-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.article-subscribe-form button:hover {
  opacity: 0.85;
}

.article-subscribe-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.article-subscribe .nl-success {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #27ae60;
  font-weight: 600;
  margin-top: 12px;
}

.article-subscribe .nl-error {
  font-family: var(--f-ui);
  font-size: 12px;
  color: #e74c3c;
  margin-top: 8px;
}

/* ══════════════ FORWARD TO COLLEAGUE ══════════════ */
.article-share {
  margin: 32px 0;
  text-align: center;
}

.share-forward-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-forward-btn:hover {
  color: var(--bo-accent);
  border-color: var(--bo-accent);
}

.share-forward-btn svg {
  stroke: currentColor;
}

.share-forward-panel {
  margin-top: 16px;
  padding: 20px;
  background: #f9f9f7;
  border: 1px solid #eee;
  border-radius: 6px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.share-forward-label {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 10px;
}

.share-forward-text {
  font-family: var(--f-ui);
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  white-space: pre-wrap;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin-bottom: 12px;
}

.share-copy-btn {
  padding: 10px 16px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--bo-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-copy-btn:hover {
  opacity: 0.85;
}

.share-copied {
  font-family: var(--f-ui);
  font-size: 13px;
  color: #27ae60;
  font-weight: 600;
}

/* Section-specific colors */
.fr-wrap .article-subscribe {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.15);
}

.fr-wrap .article-subscribe-form input:focus {
  border-color: var(--fr-accent);
}

.fr-wrap .article-subscribe-form button,
.fr-wrap .share-copy-btn {
  background: var(--fr-accent);
}

.fr-wrap .share-forward-btn:hover {
  color: var(--fr-accent);
  border-color: var(--fr-accent);
}

.gd-wrap .article-subscribe {
  background: rgba(56, 80, 40, 0.06);
  border-color: rgba(56, 80, 40, 0.15);
}

.gd-wrap .article-subscribe-form input:focus {
  border-color: var(--gd-accent);
}

.gd-wrap .article-subscribe-form button,
.gd-wrap .share-copy-btn {
  background: var(--gd-accent);
}

.gd-wrap .share-forward-btn:hover {
  color: var(--gd-accent);
  border-color: var(--gd-accent);
}

.cc-wrap .article-subscribe {
  background: rgba(107, 76, 138, 0.06);
  border-color: rgba(107, 76, 138, 0.15);
}

.cc-wrap .article-subscribe-form input:focus {
  border-color: var(--cc-accent);
}

.cc-wrap .article-subscribe-form button,
.cc-wrap .share-copy-btn {
  background: var(--cc-accent);
}

.cc-wrap .share-forward-btn:hover {
  color: var(--cc-accent);
  border-color: var(--cc-accent);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .article-subscribe {
    margin: 32px -20px;
    padding: 24px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .article-subscribe-form {
    flex-direction: column;
  }
  
  .article-subscribe-form input {
    max-width: none;
  }
  
  .share-forward-panel {
    padding: 16px;
  }
  
  .share-forward-text {
    font-size: 12px;
    padding: 12px;
  }
}
