/* The Contractor's Board (/diploma-business/): boardroom green, gold accent.
   Rails from rails.css (scope .o4-icorails). */

.cb-arch {
	--o-primary: #1f3a2e; --o-primary-2: #2c5443; --o-accent: #c9a24b; --o-bg: #f5f6f2; --o-line: #dde3d8; --o-ink: #16221c; --o-surface: #fff;
	--o-grad: linear-gradient(135deg, #1f3a2e, #2c5443);
	--cb-gold: #c9a24b; --cb-green: #2c5443; --cb-muted: #5b6a62; --cb-paper: #eef2ec;
	background: var(--o-bg); color: var(--o-ink); padding-bottom: 0;
}
.cb-arch .wrap { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* hero */
.cb-hero { background: radial-gradient(1100px 420px at 88% -10%, rgba(201, 162, 75, .32), transparent 60%), var(--o-grad); color: #fff; padding: 54px 0 30px; position: relative; }
.cb-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cb-gold), transparent); }
.cb-eyebrow { display: inline-block; font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-gold); margin-bottom: 12px; }
.cb-eyebrow--ink { color: var(--cb-green); }
.cb-eyebrow--gold { color: var(--cb-gold); }
.cb-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; margin: 0 0 14px; max-width: 900px; letter-spacing: -.02em; }
.cb-hero h1 em { font-style: normal; color: #f0d78a; }
.cb-hero p { max-width: 820px; color: rgba(255, 255, 255, .8); font-size: 1.05rem; line-height: 1.6; margin: 0 0 22px; }
.cb-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cb-stats > span { display: flex; flex-direction: column; gap: 3px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 16px; min-width: 110px; }
.cb-stats b { font-size: 1.25rem; font-weight: 800; }
.cb-stats small { font-size: .74rem; color: rgba(255, 255, 255, .7); }
.cb-stat--gold { border-color: rgba(201, 162, 75, .6) !important; }
.cb-stat--gold b { color: #f0d78a; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.cb-chips-label { font-size: .78rem; color: rgba(255, 255, 255, .62); margin-right: 4px; }
.cb-chips button { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .84rem/1 system-ui, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.cb-chips button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.cb-chips button.is-on { background: var(--cb-gold); border-color: var(--cb-gold); color: #241900; }
.cb-chips--trade button.is-on { background: #fff; border-color: #fff; color: var(--cb-green); }

/* main */
.cb-arch .o4-3col { padding-top: 26px; padding-bottom: 40px; }
.cb-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.cb-sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cb-sec-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.015em; color: var(--o-ink); }
.cb-sec-head .cb-eyebrow { margin-bottom: 0; }
.cb-sec-note { color: var(--cb-muted); font-size: .92rem; line-height: 1.55; max-width: 780px; }
.cb-sec2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: -18px; }
.cb-sec2 h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.015em; }
.cb-count { font: 700 .78rem/1 system-ui, sans-serif; color: var(--cb-muted); background: #fff; border: 1px solid var(--o-line); border-radius: 999px; padding: 6px 12px; }

/* crew board */
.cb-board { background: #fff; border: 1px solid var(--o-line); border-radius: 18px; padding: 22px 22px 8px; box-shadow: 0 12px 34px rgba(31, 58, 46, .07); }
.cb-tablewrap { overflow-x: auto; margin: 0 -8px; }
.cb-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 740px; }
.cb-table th { text-align: left; font: 700 .7rem/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); padding: 8px 10px 12px; border-bottom: 2px solid var(--o-line); }
.cb-table td { padding: 12px 10px; border-bottom: 1px solid var(--o-line); vertical-align: top; }
.cb-row { cursor: pointer; transition: background .15s; }
.cb-row:hover, .cb-row:focus-visible { background: #f3f7f2; outline: none; }
.cb-row.is-open { background: #eef4ec; }
.cb-row td:first-child a { font-weight: 700; color: var(--o-ink); text-decoration: none; }
.cb-row td:first-child a:hover { color: var(--cb-green); }
.cb-row td small { display: block; color: var(--cb-muted); font-size: .76rem; margin-top: 3px; line-height: 1.4; }
.cb-num { font-variant-numeric: tabular-nums; color: #26332c; }
.cb-num b { color: var(--o-ink); }
.cb-money { font-weight: 700; color: var(--cb-green); }
.cb-soft { color: var(--cb-muted); font-size: .82rem; font-weight: 400; }
.cb-growth td { background: #fbf6e8; border-left: 4px solid var(--cb-gold); color: #3a2f0a; font-size: .88rem; line-height: 1.6; }
.cb-growth span { display: inline-block; font: 700 .68rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8a6a0a; margin-right: 10px; }
.cb-growth a { font-weight: 700; color: var(--cb-green); text-decoration: none; margin-left: 6px; }
.cb-growth:not([hidden]) { display: table-row; }
.cb-row[hidden], .cb-growth[hidden] { display: none; }

/* shelf */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--o-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 58, 46, .13); border-color: #bfd0c4; }
.cb-card[hidden] { display: none; }
.cb-media { display: block; aspect-ratio: 16 / 9; background: var(--o-grad); overflow: hidden; }
.cb-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cb-card:hover .cb-media img { transform: scale(1.04); }
.cb-media-fall { display: grid; place-items: center; height: 100%; font-size: 2.6rem; opacity: .6; }
.cb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.cb-card-body > em { font: 700 .66rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-green); font-style: normal; }
.cb-card-body > b { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.cb-card-ex { color: var(--cb-muted); font-size: .88rem; line-height: 1.55; }
.cb-card-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-card-nums span { background: var(--cb-paper); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-card-nums small { font: 700 .62rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-muted); }
.cb-card-nums i { font-style: normal; font-weight: 700; font-size: .86rem; color: var(--o-ink); }
.cb-card-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-card-facts span { font: 600 .72rem/1 system-ui, sans-serif; color: #26332c; border: 1px solid var(--o-line); border-radius: 999px; padding: 5px 9px; }
.cb-card-facts .cb-seal { background: var(--cb-gold); border-color: var(--cb-gold); color: #241900; font-weight: 700; }
.cb-card-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-card-scale i { font: 600 .7rem/1 system-ui, sans-serif; font-style: normal; color: #4a5c52; background: var(--cb-paper); border-radius: 6px; padding: 4px 8px; }
.cb-card-go { margin-top: auto; font: 700 .84rem/1 system-ui, sans-serif; color: var(--cb-green); }
.cb-empty { display: none; background: #fff; border: 1px dashed var(--o-line); border-radius: 14px; padding: 22px; text-align: center; color: var(--cb-muted); }
.cb-empty:not([hidden]) { display: block; }

/* papers and law */
.cb-papers { background: #fff; border: 1px solid var(--o-line); border-radius: 18px; padding: 24px; }
.cb-papers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cb-papers h3 { margin: 0 0 12px; font-size: 1.05rem; }
.cb-paper-list, .cb-law-list { display: flex; flex-direction: column; gap: 8px; }
.cb-paper { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--o-line); border-left: 4px solid var(--cb-green); border-radius: 10px; padding: 10px 14px; }
.cb-paper b { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .92rem; }
.cb-paper b i { font-style: normal; font-size: .68rem; background: var(--o-primary); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; }
.cb-paper span { font-size: .8rem; color: var(--cb-muted); }
.cb-paper a { font: 700 .76rem/1 system-ui, sans-serif; color: var(--cb-green); text-decoration: none; }
.cb-law { display: flex; flex-direction: column; gap: 3px; background: var(--cb-paper); border-radius: 10px; padding: 10px 14px; }
.cb-law b { font-size: .92rem; }
.cb-law span { font-size: .82rem; color: #3b4a42; line-height: 1.5; }
.cb-fine { margin: 12px 0 0; font-size: .78rem; color: var(--cb-muted); }

/* world */
.cb-plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cb-play { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--o-line); border-top: 4px solid var(--cb-green); border-radius: 12px; padding: 14px 16px; transition: transform .15s, box-shadow .15s; }
.cb-play:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 58, 46, .1); }
.cb-play--low { border-top-color: #2c8a5b; }
.cb-play--medium { border-top-color: var(--cb-gold); }
.cb-play--high { border-top-color: #b3552d; }
.cb-play-top { display: flex; justify-content: space-between; gap: 8px; font: 700 .66rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); }
.cb-play-top em { font-style: normal; color: var(--cb-green); }
.cb-play-top i { font-style: normal; }
.cb-play b { font-size: .96rem; line-height: 1.35; }
.cb-play > span:last-child { font-size: .82rem; color: var(--cb-muted); line-height: 1.5; }
.cb-countries { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-countries a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--o-ink); background: #fff; border: 1px solid var(--o-line); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .9rem; transition: transform .15s, border-color .15s; }
.cb-countries a:hover { transform: translateY(-2px); border-color: var(--cb-green); }
.cb-countries b { font-size: .7rem; background: var(--cb-paper); border-radius: 999px; padding: 4px 8px; color: var(--cb-muted); }

/* promises and doors */
.cb-promises { background: var(--o-grad); color: #fff; border-radius: 18px; padding: 26px; }
.cb-promises .cb-sec-head h2 { color: #fff; }
.cb-promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cb-promise-grid div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cb-promise-grid span { font-size: 1.5rem; }
.cb-promise-grid b { font-size: .98rem; }
.cb-promise-grid p { margin: 0; font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .76); }
.cb-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cb-door { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; padding: 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.cb-door:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 58, 46, .1); }
.cb-door-ico { font-size: 1.6rem; }
.cb-door b { font-size: 1rem; }
.cb-door span:last-child { font-size: .84rem; color: var(--cb-muted); line-height: 1.5; }

/* rail */
.cb-rail-body { display: flex; flex-direction: column; gap: 10px; }
.cb-rail-step { display: flex; gap: 10px; align-items: flex-start; }
.cb-rail-step b { flex: 0 0 24px; height: 24px; display: grid; place-items: center; background: var(--cb-gold); color: #241900; border-radius: 999px; font-size: .74rem; }
.cb-rail-step span { display: flex; flex-direction: column; gap: 2px; }
.cb-rail-step strong { font-size: .88rem; }
.cb-rail-step small { font-size: .76rem; color: var(--cb-muted); line-height: 1.45; }
.cb-rail-honest p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--cb-muted); }

@media (max-width: 900px) {
	.cb-hero { padding: 40px 0 24px; }
	.cb-papers-grid { grid-template-columns: 1fr; }
	.cb-board { padding: 16px 14px 4px; }
	.cb-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cb-arch * { transition: none !important; } }
