/* t2: Editorial Guide — article layout, sticky sidebar, breadcrumbs */

/* Header */
.editorial-header {
  border-bottom: 1px solid #e0e0e0;
}
.header-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 1.5rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
}
.header-nav a:hover { opacity: 1; }
.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn-cta:hover { opacity: 0.9; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* Breadcrumbs */
.breadcrumb-bar {
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
  border-bottom: 1px solid #e8e8e8;
  padding: 0.4rem 1.5rem;
  font-size: 0.85rem;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb-inner a {
  color: var(--primary);
  text-decoration: none;
}
.sep { margin: 0 0.4rem; color: #aaa; }
.current { color: var(--ink); }

/* Editorial two-column layout */
.editorial-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 2rem 1.5rem;
}

/* Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 1.5rem;
}
.sidebar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
}
.toc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}
.toc a:hover {
  border-left-color: var(--primary);
  color: var(--primary);
}
.sidebar-price-box {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.sidebar-price {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Article body */
.article-body {
  max-width: 740px;
  line-height: 1.75;
  color: var(--ink);
}
.article-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.article-lead {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.article-tagline {
  color: #666;
  margin-bottom: 1.5rem;
}
.section-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2.5rem 0;
}
.article-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Editorial pricing */
.editorial-pricing {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}
.pricing-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.pricing-badge {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.pricing-badge span {
  font-size: 0.9rem;
  font-weight: 400;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  columns: 2;
}
.feature-list li {
  padding: 0.3rem 0;
  padding-left: 1.3rem;
  position: relative;
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
}
.editorial-form label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.editorial-form input,
.editorial-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
.editorial-form button { margin-top: 1.25rem; }
.contact-details dt {
  font-weight: 600;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #666;
}
.contact-details dd {
  margin: 0;
}

/* Footer */
.editorial-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.footer-links a { color: var(--bg); text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.footer-info { opacity: 0.75; margin-bottom: 1rem; }
.footer-info p { margin: 0.15rem 0; }
.footer-disclaimer { font-size: 0.8rem; opacity: 0.6; margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 768px) {
  .editorial-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .header-nav { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .feature-list { columns: 1; }
}

/* Checkout page */
.checkout-wrap { padding: var(--space-xl) 0; }
.checkout-container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); display: grid; grid-template-columns: 1fr 380px; gap: var(--space-xl); align-items: start; }
.checkout-main h1 { margin-bottom: var(--space-sm); }
.checkout-steps { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid #e5e5e5; }
.checkout-steps .step { color: #999; font-size: 0.9rem; }
.checkout-steps .step.active { color: var(--primary, #333); font-weight: 600; }
.checkout-form h2 { font-size: 1.1rem; margin-bottom: var(--space-md); }
.checkout-form .form-group { margin-bottom: var(--space-md); }
.checkout-form input, .checkout-form select { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: var(--radius, 6px); font-size: 1rem; font-family: inherit; }
.checkout-form input:focus, .checkout-form select:focus { outline: none; border-color: var(--primary, #333); box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.checkout-submit { width: 100%; padding: 1rem; background: var(--primary, #333); color: #fff; border: none; border-radius: var(--radius, 6px); font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-top: var(--space-sm); }
.checkout-submit:hover { opacity: 0.9; }
.checkout-secure { text-align: center; font-size: 0.85rem; color: #666; margin-top: var(--space-sm); }
.checkout-success { padding: var(--space-lg); background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius, 6px); }
.checkout-success h2 { color: #166534; }
.order-summary { background: #fafafa; border: 1px solid #e5e5e5; border-radius: var(--radius, 6px); padding: var(--space-lg); position: sticky; top: var(--space-lg); }
.order-summary h3 { margin-bottom: var(--space-md); }
.order-item { display: flex; justify-content: space-between; padding: var(--space-sm) 0; margin-bottom: var(--space-sm); border-bottom: 1px solid #e5e5e5; }
.order-price { font-weight: 700; font-size: 1.1rem; }
.order-includes { list-style: none; padding: var(--space-sm) 0; }
.order-includes li { padding: 4px 0; font-size: 0.9rem; }
.order-includes li::before { content: "✓ "; color: #16a34a; font-weight: 700; }
.order-total { display: flex; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid #e5e5e5; margin-top: var(--space-sm); }
.total-price { font-size: 1.3rem; font-weight: 700; color: var(--primary, #333); }
.order-note { font-size: 0.8rem; color: #888; margin-top: var(--space-sm); }
.form-success { padding: var(--space-lg); background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius, 6px); text-align: center; }
.form-success h3 { color: #166534; margin-bottom: var(--space-sm); }
@media (max-width: 768px) {
  .checkout-container { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
