/* -------------------------------------------------------
   HARBOR-DELTA DESIGN SYSTEM
   delta-components.css  (v1.1)
   Purpose: Cards, callouts, buttons, popups, micro-utilities,
            DI module geometry
-------------------------------------------------------- */

/* ------------------------------------------------------------
   ARTICLE CONTAINER — CORE
   ------------------------------------------------------------ */

.article-container {
  max-width: var(--delta-max-width);
  margin-inline: auto;
  padding: var(--delta-space-5);

  /* Typography */
  line-height: 1.6;
  color: var(--delta-color-fg);
  background: var(--page-canvas-bg);
;

  /* Shape & Depth */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);

  /* Flow */
  display: block;
}

/* Vertical rhythm: space between direct children */
.article-container > * + * {
  margin-top: var(--delta-space-4);
}

/* ------------------------------------------------------------
   ARTICLE REGIONS
   ------------------------------------------------------------ */

.article-header {
  margin-bottom: var(--delta-space-4);
}

.article-body {
  font-size: 1rem;
}

.article-footer {
  margin-top: var(--delta-space-5);
  font-size: 0.9rem;
  color: var(--delta-color-muted);
}

/* ------------------------------------------------------------
   ARTICLE META
   ------------------------------------------------------------ */

.article-meta {
  font-size: 0.875rem;
  color: var(--delta-color-muted);

  border-bottom: 1px solid var(--delta-color-border);
  padding-bottom: var(--delta-space-2);
  margin-bottom: var(--delta-space-4);
}

/* ------------------------------------------------------------
   WIDTH VARIANTS
   ------------------------------------------------------------ */

.article-container--wide {
  max-width: 1100px;
}

.article-container--narrow {
  max-width: 680px;
}

.article-container--full {
  max-width: none;
}

/* ------------------------------------------------------------
   THEME HOOK
   ------------------------------------------------------------ */

.article-container[data-article-theme] {
  /* Themes will override these tokens in delta-extensions.css */
  border-left: 4px solid transparent;
}


/* -------------------------------------------------------
   CARD COMPONENT
-------------------------------------------------------- */

.delta-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--delta-space-5);
  box-shadow: var(--shadow-sm), var(--shadow-md);
  border: 1px solid var(--color-divider);
  margin-bottom: var(--delta-space-6);
}

.delta-card h2 {
  margin-bottom: var(--delta-space-3);
  font-family: var(--font-heading);
}

.delta-card p {
  margin-bottom: var(--delta-space-3);
}

/* -------------------------------------------------------
   CALLOUT COMPONENT
-------------------------------------------------------- */

.delta-callout {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: var(--delta-space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--delta-space-5);
  color: var(--neutral-900);
}

.delta-callout strong {
  color: var(--color-primary-dark);
}  

/* --- SLASH --- */
.slash {
  position: relative;
  display: inline-block;
}

.slash::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: red;
  transform: rotate(-30deg);
}

/* -------------------------------------------------------
   BUTTONS
-------------------------------------------------------- */

.delta-btn {
  display: inline-block;
  padding: var(--delta-space-2) var(--delta-space-4);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.delta-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm), var(--shadow-md);
}

.delta-btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.delta-btn-outline:hover {
  background: var(--color-primary-light);
}

/* -------------------------------------------------------
   MICRO-UTILITIES
-------------------------------------------------------- */

.delta-pad-sm { padding: var(--delta-space-2); }
.delta-pad-md { padding: var(--delta-space-4); }
.delta-pad-lg { padding: var(--delta-space-6); }

.delta-mb-sm { margin-bottom: var(--delta-space-2); }
.delta-mb-md { margin-bottom: var(--delta-space-4); }
.delta-mb-lg { margin-bottom: var(--delta-space-6); }

.delta-text-center { text-align: center; }
.delta-text-right { text-align: right; }

/* -------------------------------------------------------
   DI POPUP MODULE (Narrow + Wide)
-------------------------------------------------------- */

.delta-popup {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--delta-space-4);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
  max-width: 480px;
}

.delta-popup-wide {
  max-width: 720px;
}

.delta-popup h3 {
  margin-bottom: var(--delta-space-3);
  font-family: var(--font-heading);
}

.delta-popup p {
  margin-bottom: var(--delta-space-3);
}

/* -------------------------------------------------------
   POPUP TRIGGER (Hover / Click)
-------------------------------------------------------- */

.delta-trigger {
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.2s ease;
}

.delta-trigger:hover {
  color: var(--color-primary);
}

/* -------------------------------------------------------
   ACCENT BARS / DIVIDERS
-------------------------------------------------------- */

.delta-accent {
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--delta-space-4);
}

/* -------------------------------------------------------
   INLINE TAGS
-------------------------------------------------------- */

.delta-tag {
  display: inline-block;
  padding: var(--delta-space-1) var(--delta-space-2);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  margin-right: var(--delta-space-2);
}

.delta-table-wrapper {
  overflow-x: auto;
  margin: var(--delta-space-5) 0;
  border: 1px solid #dce1e8;
  border-radius: 10px;
  background: #fbfbfd;
}

/* Delta Separator — Rounded Divider */
.hb-separator {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.35); /* translucent grey */
  margin: var(--space-lg) auto;
}

.hb-separator {
  display: inline-block;
}

/* ============================================================
   Signature Component v1.0
   Modular, centered, brand-consistent
   ============================================================ */

.signature {
  text-align: center;
  margin: var(--space-xl) 0; /* outer breathing room */
}

/* Brand Separator */
.hb-separator {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.35); /* brand-consistent grey */
  margin: var(--space-lg) auto;
  display: block; /* stable centering */
}

/* Logo spacing */
.signature-logo {
  margin: var(--space-md) 0 var(--space-sm);
}

/* Tagline */
.signature-tagline {
  font-size: 0.85rem; /* modern, sleek, readable */
  margin: var(--space-sm) 0 var(--space-md);
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 18px;
  font-family: sans-serif;
  font-size: 14px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  z-index: 9999;
}

#backToTop.show  { opacity: 0.9; pointer-events: auto; }
#backToTop:hover { opacity: 1; }

/* Flex centering utility */
.u-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   17. CUSTOM HORIZONTAL RULES
   ============================================================
   Purpose:
     Unified styling system for <hr> elements, including themed
     color variants, width utilities, and border-weight rules.
     This chapter consolidates all HR-specific utilities from
     Chapter 19 to maintain a single, coherent subsystem.

   Notes:
     - HR-specific utilities live here (not in Chapter 19)
     - Alphabetical ordering within each subsection
     - Atomic utilities only (single-purpose)
     - Themed HRs use background-color (no borders)
     - Structural HRs use borders (classic rule styling)
     - Base thickness = 1.5px (Option A)
*/

/* ------------------------------------------------------------
   Base Custom HR (Option A)
   ------------------------------------------------------------ */

.custom-hr {
  border: none;
  height: 1.5px;            /* Option A base thickness */
  background-color: #000;   /* default: black */
  margin: 20px 0;
  display: block;
}

/* Neutralize Delta-Body HR rule */
.delta-body hr.custom-hr {
  border: none !important;
  border-top: none !important;
}

/* Extra safety override */
hr.custom-hr {
  border: none !important;
}

/* Optional wrapper (layout isolation) */
.hr-wrap {
  display: block;
}

/* ------------------------------------------------------------
   Themed Horizontal Rules (alphabetical)
   ------------------------------------------------------------ */

.custom-hr.chartreuse { background-color: #dfff00; }
.custom-hr.gold       { background-color: #c9a227; }
.custom-hr.parchment  { background-color: #f3e9d9; }
.custom-hr.soft-blue  { background-color: #2a6f97; }
.custom-hr.wtl        { background-color: rgb(125, 247, 226); }

/* ------------------------------------------------------------
   Structural Horizontal Rules
   ------------------------------------------------------------ */

/* -- Double Rule --------------------------------------------- */
.double-hr {
  border: 2px solid #000;
}

/* -- Half-Width Centered Rule -------------------------------- */
.half-hr {
  width: 50%;
  margin: 0 auto;
  border: 1px solid #000;
}

/* ------------------------------------------------------------
   Gold-HR Scoped System
   ------------------------------------------------------------ */

.gold-hr hr {
  border: 0;
  height: 2px;
  background-color: #c9a227;
}

.gold-hr .double-hr {
  border: 2px solid #c9a227;
  background: none;
}

.gold-hr .half-hr {
  width: 50%;
  margin: 1rem auto;
}

/* ------------------------------------------------------------
   HR Thickness Variants (atomic)
   ------------------------------------------------------------ */

.custom-hr--_5  { height: .5px !important; }
.custom-hr--1   { height: 1px !important; }
.custom-hr--1_5 { height: 1.5px !important; }
.custom-hr--2   { height: 2px !important; }
.custom-hr--2_5 { height: 2.5px !important; }
.custom-hr--3   { height: 3px !important; }
.custom-hr--4   { height: 4px !important; }

/* Final override to ensure only one base definition exists */
.custom-hr {
  height: 1.5px !important;
}

.custom-hr--thin {
  height: 1px !important;
  transform: scaleY(0.5);
  transform-origin: center;
}
