/* Design system v1: literal CSS3 tokens, no compiler or CSS variables.
 * ink #1c2734; muted #546a70; link/focus #176d70; canvas #f6fbfa; surface #ffffff
 * mint #48c5c3; mint-soft #d9f5f1; gold #ffc978; orange #ffab45; pink #ebc3da
 * border #dcebe8; control-border #7b9296
 * success #246344/#edf7ef; warning #795018/#fff0d8; danger #a32f46/#fff0f3
 * Space 4/8/12/16/24/32/48/64px. Type 12/14/16/20/28/36px.
 * Radius 8 control, 16 card, 24 hero, 999 pill. Breakpoints 640/920px.
 */
* { box-sizing: border-box; }
html { background: #f6fbfa; }
body { margin: 0; color: #1c2734; font: 16px/1.8 "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
main, header, footer, nav, section, article { display: block; }
h1, h2, h3 { line-height: 1.4; word-wrap: break-word; }
h1 { font-size: 36px; margin: 16px 0 24px; }
h2 { font-size: 28px; margin: 0 0 8px; }
h3 { font-size: 20px; margin: 0 0 12px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; }
a { color: #176d70; text-decoration: underline; }
a:hover { color: #1c2734; }
/* Selection should not add a ring around links, controls or focused content. */
:focus { outline: none; }
/* Component display styles must not reveal controls marked as hidden. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: 90%; max-width: 1120px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #ffffff; padding: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: bold; }
.muted, .section-intro { color: #546a70; font-size: 14px; }
.section { padding: 32px 0; border-bottom: 1px solid #dcebe8; }
.section h2 { letter-spacing: .04em; }
.section-intro { margin: 0 0 24px; }
/* Remove inline-block whitespace to keep 2/3-column rows from wrapping. */
.cards { margin: 0 -8px; font-size: 0; }
.card { display: inline-block; vertical-align: top; width: calc(100% - 16px); margin: 8px; padding: 24px; font-size: 16px; background: #ffffff; border: 1px solid #dcebe8; border-radius: 16px; box-shadow: 0 4px 16px rgba(28,39,52,.04); word-wrap: break-word; }
.card p { font-size: 14px; }
.card > a:not(.button) { display: inline-block; min-height: 44px; padding: 10px 0; margin-top: 8px; font-size: 14px; }
.card--tinted { background: #d9f5f1; }
.card--night { background: #1c2734; color: #ffffff; border-color: #1c2734; }
.card--night .muted, .card--night a { color: #d9f5f1; }
.button { display: inline-block; vertical-align: middle; min-height: 44px; max-width: 100%; padding: 9px 24px; border: 2px solid #1c2734; border-radius: 999px; background: #1c2734; color: #ffffff; font-size: 14px; font-weight: bold; line-height: 1.6; text-align: center; text-decoration: none; white-space: normal; }
.button:hover { background: #30485a; border-color: #30485a; color: #ffffff; text-decoration: none; }
.button:active { background: #101b25; border-color: #101b25; }
.button--secondary { background: #d9f5f1; border-color: #176d70; color: #176d70; }
.button--secondary:hover, .button--secondary:active { background: #176d70; border-color: #176d70; color: #ffffff; }
.button--outline { background: #ffffff; border-color: #176d70; color: #176d70; }
.button--outline:hover, .button--outline:active { background: #d9f5f1; border-color: #176d70; color: #1c2734; }
.button--danger { background: #a32f46; border-color: #a32f46; }
.button--danger:hover, .button--danger:active { background: #7c2335; border-color: #7c2335; }
.button:disabled, .button:disabled:hover, .button:disabled:active { background: #edf2f1; color: #546a70; border-color: #7b9296; cursor: not-allowed; }
.actions { margin: -4px; }
.actions .button { margin: 4px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #edf2f1; color: #546a70; font-size: 12px; line-height: 1.6; }
.tag--public { background: #edf7ef; color: #246344; }
.tag--private { background: #1c2734; color: #ffffff; }
.tag--warning { background: #fff0d8; color: #795018; }
.tag--error { background: #fff0f3; color: #a32f46; }
.alert { padding: 16px 24px; border: 1px solid #7b9296; border-left: 4px solid #176d70; border-radius: 8px; background: #d9f5f1; }
.alert--success { background: #edf7ef; border-color: #246344; color: #246344; }
.alert--warning { background: #fff0d8; border-color: #795018; color: #795018; }
.alert--error { background: #fff0f3; border-color: #a32f46; color: #a32f46; }
.empty-state { padding: 32px 24px; text-align: center; border: 1px dashed #7b9296; border-radius: 16px; background: #ffffff; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: #546a70; font-size: 14px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 8px; font-weight: bold; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #7b9296; border-radius: 8px; color: #1c2734; background: #ffffff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid #a32f46; }
.field input:disabled, .field select:disabled, .field textarea:disabled { color: #546a70; background: #edf2f1; cursor: not-allowed; opacity: 1; }
.field input[readonly] { background: #edf2f1; }
.field-help, .field-error { display: block; margin: 8px 0 0; font-size: 14px; }
.field-help { color: #546a70; }
.field-error { color: #a32f46; }
.table-scroll { overflow-x: auto; border: 1px solid #dcebe8; border-radius: 8px; }
.table { border-collapse: collapse; width: 100%; background: #ffffff; text-align: left; font-size: 14px; }
.table caption { text-align: left; padding: 16px; font-weight: bold; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid #dcebe8; vertical-align: top; }
.table th { background: #d9f5f1; }
.table tr:last-child td { border-bottom: 0; }
@media (min-width: 640px) { .card { width: calc(50% - 16px); } .section { padding: 48px 0; } }
@media (min-width: 920px) { .card { width: calc(33.333% - 16px); } .cards--two .card { width: calc(50% - 16px); } }
@media print { .button, .skip { display: none; } .card { box-shadow: none; } }
