/* RIVISTA template styles: page-elements.php */
.el-hero { padding: 56px 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.el-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--terra); color: var(--paper); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.el-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 8vw, 120px); line-height: .9; letter-spacing: -.045em; margin: 0 0 20px; }
.el-hero h1 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.el-hero h1 .dot { color: var(--accent); }
.el-hero p.lede { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 0; }

.el-body { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 32px 0 100px; }
.el-toc { position: sticky; top: 100px; align-self: start; font-family: var(--display); }
.el-toc h5 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; color: var(--ink-3); }
.el-toc ul { display: flex; flex-direction: column; gap: 4px; }
.el-toc a { padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); border-left: 2px solid transparent; transition: all var(--dur) var(--ease); display: flex; justify-content: space-between; align-items: center; }
.el-toc a:hover, .el-toc a.is-active { color: var(--ink); border-left-color: var(--terra); background: var(--paper-2); }
.el-toc a small { color: var(--ink-4); font-size: 10.5px; letter-spacing: .08em; }

.el-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.el-section:first-child { padding-top: 0; }
.el-section:last-child { border-bottom: 0; }
.el-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.el-section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -.03em; margin: 0; line-height: 1; }
.el-section h2 .num { color: var(--ink-3); font-family: var(--serif); font-style: italic; font-weight: 400; margin-right: 16px; }
.el-section h2 .dot { color: var(--accent); }
.el-section .lede { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 16px; max-width: 48ch; margin: 8px 0 0; }

.el-row { padding: 28px; background: var(--paper-2); margin-bottom: 16px; }

.el-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch { aspect-ratio: 1/1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; cursor: copy; transition: transform var(--dur) var(--ease); }
.swatch:hover { transform: translateY(-3px); }
.swatch .name { font-family: var(--display); font-size: 13px; font-weight: 700; }
.swatch .hex { font-family: "JetBrains Mono", monospace; font-size: 10.5px; opacity: .7; letter-spacing: .04em; }

.el-type-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.el-type-row .label { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.el-type-row .meta { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.t-display-xl { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: .9; letter-spacing: -.045em; margin: 0; }
.t-display-lg { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: .95; letter-spacing: -.04em; margin: 0; }
.t-display-md { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin: 0; }
.t-display-sm { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.t-serif { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--ink-2); margin: 0; }
.t-body { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 56ch; }
.t-small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin: 0; }
.t-kicker-row { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.t-mono { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-2); }

.el-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.el-buttons .label { width: 100%; font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.btn-icon-only { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur) var(--ease); }
.btn-icon-only:hover { background: var(--ink); color: var(--paper); }
.btn-icon-only svg { width: 14px; height: 14px; }
.btn-pill { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: all var(--dur) var(--ease); }
.btn-pill:hover { background: var(--ink); color: var(--paper); }
.btn-pill.solid { background: var(--ink); color: var(--paper); }
.btn-pill.solid:hover { background: var(--terra); border-color: var(--terra); }

.el-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.badge.ink { background: var(--ink); color: var(--paper); }
.badge.terra { background: var(--terra); color: var(--paper); }
.badge.butter { background: var(--butter); color: var(--ink); }
.badge.sky { background: var(--sky); color: var(--ink); }
.badge.rose { background: var(--rose); color: var(--ink); }
.badge.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.badge.round { border-radius: 999px; padding: 5px 12px; }

.el-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fld input[type="text"], .fld input[type="email"], .fld input[type="password"], .fld select, .fld textarea {
  padding: 13px 16px; border: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color var(--dur) var(--ease); width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); }
.fld textarea { min-height: 96px; resize: vertical; }
.fld.error input { border-color: var(--terra); }
.fld.error .help { color: var(--accent); font-size: 12px; }
.fld.success input { border-color: var(--leaf-2); }
.help { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.fld-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.fld-check input { width: 18px; height: 18px; accent-color: var(--terra); }

.el-alert { display: flex; gap: 14px; padding: 16px 20px; align-items: start; margin-bottom: 12px; border-left: 3px solid; background: var(--paper-2); }
.el-alert .ic { width: 20px; height: 20px; flex-shrink: 0; }
.el-alert h5 { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin: 0 0 4px; }
.el-alert p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.el-alert.info { border-color: var(--ink); }
.el-alert.success { border-color: var(--leaf-2); background: #ecf3ec; }
.el-alert.warn { border-color: var(--butter); background: #fbf8e8; }
.el-alert.danger { border-color: var(--terra); background: #f7eae6; }

.el-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-card { background: var(--paper-2); padding: 24px; }
.demo-card h4 { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.demo-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.demo-card .meta { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.demo-card.ink { background: var(--ink); color: var(--paper); }
.demo-card.ink p { color: rgba(255,255,255,.65); }
.demo-card.ink .meta { color: rgba(255,255,255,.5); }
.demo-card.butter { background: var(--butter); }
.demo-card.sky { background: var(--sky); }

.el-table { width: 100%; border-collapse: collapse; font-family: var(--display); }
.el-table th { text-align: left; padding: 14px 16px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--ink); background: var(--paper); }
.el-table td { padding: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.el-table tr:hover { background: var(--paper-2); }
.el-table .price { font-weight: 700; }

.el-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 32px; margin-bottom: 24px; }
.el-tabs button { padding: 14px 0; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--ink-3); position: relative; }
.el-tabs button.is-active { color: var(--ink); }
.el-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.el-tab-panel { padding: 16px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; max-width: 64ch; }
.el-tab-panel[hidden] { display: none; }

.el-acc-item { border-bottom: 1px solid var(--line); }
.el-acc-item:first-child { border-top: 1px solid var(--line); }
.el-acc-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; width: 100%; text-align: left; }
.el-acc-q h4 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; }
.el-acc-q .ic { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur) var(--ease); }
.el-acc-q .ic svg { width: 11px; height: 11px; }
.el-acc-item.is-open .ic { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.el-acc-a { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease); }
.el-acc-item.is-open .el-acc-a { max-height: 200px; }
.el-acc-a-inner { padding: 0 0 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.el-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.icon-tile { aspect-ratio: 1/1; background: var(--paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: background var(--dur) var(--ease); cursor: pointer; }
.icon-tile:hover { background: var(--ink); color: var(--paper); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile small { font-family: "JetBrains Mono", monospace; font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; }
.icon-tile:hover small { color: rgba(255,255,255,.6); }

.el-spacing { display: flex; align-items: end; gap: 16px; }
.sp-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-step .box { width: 64px; background: var(--terra); }
.sp-step .lab { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); }
.sp-step .n { font-family: var(--display); font-size: 13px; font-weight: 700; }

@media (max-width: 1080px) { .el-body { grid-template-columns: minmax(0, 1fr); } .el-toc { position: static; min-width: 0; } .el-colors { grid-template-columns: repeat(3, 1fr); } .el-icons { grid-template-columns: repeat(4, 1fr); } .el-card-row { grid-template-columns: 1fr; } .el-form { grid-template-columns: 1fr; } .el-type-row { grid-template-columns: 1fr; gap: 8px; } .t-display-xl { font-size: 60px; } .t-display-lg { font-size: 44px; } .t-display-xl, .t-display-lg, .t-display-md, .t-display-sm { overflow-wrap: anywhere; } .el-table { display: block; overflow-x: auto; white-space: nowrap; } .el-spacing { overflow-x: auto; padding-bottom: 8px; } }
