/* StanMowing components. Sections: buttons, fields, choices, cards, badges, alerts, dialogs, tables, navigation, empty states, form errors. */
/* Buttons */
/* Secondary button, button link and native file action: default full contrast appearance. */
.sm-button, .sm-input::file-selector-button { background: var(--surface); border: var(--line-control) solid var(--control-border); border-radius: var(--radius-control); color: var(--text); font: 600 var(--text-body)/var(--leading-control) var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--feedback-time), border-color var(--feedback-time); }
/* Primary button: default current brand accent. */
.sm-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Link button: default underlined tertiary action. */
.sm-button--link { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: var(--focus-offset); }
/* Danger button: default destructive boundary. */
.sm-button--danger { border-color: var(--error-text); color: var(--error-text); }
/* Quiet icon action: default unboxed navigation affordance. */
.sm-button--quiet { background: transparent; border: 0; color: var(--accent-hover); }
/* Small button: default supporting action type size. */
.sm-button--small { font-size: var(--text-small); }
/* Caption action: default compact media control retains the supporting label size. */
.sm-button--caption { font-size: var(--text-caption); }
/* Compact button: default supporting call to action keeps its original type. */
.sm-button--compact { font-size: var(--text-form-copy); }
/* Branded tertiary action: default compact underlined service link. */
.sm-button--brand-link { color: var(--accent-hover); font-size: var(--text-small); font-weight: 400; }
/* Supporting link action: default small label retains its full target. */
.sm-button--help { font-size: var(--text-caption); font-weight: 400; }
/* Supporting text, field and action: default compact label keeps the full control target. */
.sm-text--subline { font-size: var(--text-subline); }
/* Rating: default Lucide outlines retain a readable boundary. */
.sm-rating { color: var(--warning-text); }
/* Tab: default underline space keeps the label steady. */
.sm-button:where([role="tab"]:not(:disabled, [aria-disabled="true"])) { background: transparent; border-color: transparent; border-radius: 0; border-block-end: var(--line-invalid) solid var(--divider); }
/* Secondary button and file action: hover uses neutral tint, distinct from selection. */
.sm-button:where(:not(:disabled, [aria-disabled="true"]):hover), .sm-input:where(:not(:disabled):hover)::file-selector-button { background: var(--surface-muted); border-color: var(--accent-hover); }
/* Primary button: hover uses the darker brand accent. */
.sm-button--primary:where(:not(:disabled, [aria-disabled="true"]):hover) { background: var(--accent-hover); border-color: var(--accent-hover); }
/* Link button: hover remains an underlined text action. */
.sm-button--link:where(:not(:disabled, [aria-disabled="true"]):hover) { background: transparent; border-color: transparent; color: var(--accent-hover); }
/* Danger button: hover uses the error surface. */
.sm-button--danger:where(:not(:disabled, [aria-disabled="true"]):hover) { background: var(--error-surface); border-color: var(--error-text); }
/* Tab: hover reinforces the underline without a selected fill. */
.sm-button:where([role="tab"]:not(:disabled, [aria-disabled="true"]):hover) { background: var(--surface-muted); border-color: transparent; border-block-end-color: var(--control-border); }
/* Choices and pagination: selected tint stays distinct from the primary action. */
.sm-button:where([aria-pressed="true"], [aria-selected="true"], [aria-checked="true"], [aria-current]):not(:where([role="tab"])), .sm-choice:where(:has(input:checked)) { background: var(--selected); border-color: var(--selected-border); color: var(--selected-text); }
/* Tab: selected tint and accent indicator mark the current panel. */
.sm-button:where([role="tab"][aria-selected="true"]:not(:disabled, [aria-disabled="true"])) { background: var(--selected); color: var(--selected-text); border-color: transparent; border-block-end-color: var(--selected-border); }
/* Buttons, fields and choice cards: disabled uses an opaque neutral fill. */
.sm-button:where(:disabled, [aria-disabled="true"]), .sm-input:where(:disabled), .sm-select:where(:disabled), .sm-textarea:where(:disabled), .sm-choice:where(:has(input:disabled)), .sm-input:disabled::file-selector-button { background: var(--disabled-surface); color: var(--disabled-text); border-color: var(--disabled-border); cursor: not-allowed; opacity: 1; }
/* Fields and choice cards: invalid uses the required two pixel red border. */
.sm-input:where([aria-invalid="true"], .invalid), .sm-select:where([aria-invalid="true"], .invalid), .sm-textarea:where([aria-invalid="true"], .invalid), .sm-choice:where(:has(input[aria-invalid="true"])), .sm-rating:where([aria-invalid="true"]) { border: var(--line-invalid) solid var(--invalid-border); }
/* Button: loading shows progress with disabled semantics. */
.sm-button[aria-busy="true"] { cursor: progress; }
/* Loading indicator: one ring serves buttons and standalone progress. */
.sm-spinner, .sm-button:where([aria-busy="true"]):not(:where(:has(.sm-spinner)))::before { border: var(--line-invalid) solid currentColor; border-inline-end-color: transparent; border-radius: var(--radius-pill); animation: sm-spin var(--spin-time) linear infinite; }
/* Loading indicator: one complete turn. */
@keyframes sm-spin {
/* Loading indicator: end of the turn. */
to { transform: rotate(360deg); }
}
/* Inputs, selects and textareas */
/* Editable fields: default readable value and clear boundary. */
:where(.sm-input, .sm-select, .sm-textarea) { background: var(--surface); color: var(--text); border: var(--line-control) solid var(--control-border); border-radius: var(--radius-control); font: 400 var(--text-body)/var(--leading-control) var(--font); }
/* Editable fields: default readable placeholder. */
.sm-input::placeholder, .sm-textarea::placeholder { color: var(--muted); opacity: 1; }
/* Readonly field: dashed boundary distinguishes retained values. */
:where(.sm-input[readonly]) { background: var(--surface-muted); border-style: dashed; font-family: var(--mono); cursor: text; }
/* Checkboxes, radios and toggles */
/* Native checkbox, radio and switch: default brand selection. */
.sm-checkbox, .sm-radio { accent-color: var(--accent); cursor: pointer; }
/* Native choices: disabled uses an opaque neutral fill and a readable boundary. */
:where(.sm-checkbox, .sm-radio):disabled { appearance: none; background: var(--disabled-surface); color: var(--disabled-text); border: var(--line-control) solid var(--disabled-border); cursor: not-allowed; opacity: 1; }
/* Checkbox and switch: disabled retains the square choice shape. */
.sm-checkbox:disabled { border-radius: var(--radius-label); }
/* Native choices: checked disabled indicators retain a readable mark in system colors too. */
:where(.sm-checkbox, .sm-radio):where(:disabled:checked)::before { background: currentColor; }
/* Checkbox and switch: checked disabled shows a check instead of a faint native accent. */
.sm-checkbox:where(:disabled:checked)::before { clip-path: polygon(0 45%, 20% 25%, 40% 45%, 80% 5%, 100% 25%, 40% 85%); }
/* Native choices: invalid boundary leaves the keyboard focus ring visible. */
:where(.sm-checkbox, .sm-radio)[aria-invalid="true"] { box-shadow: var(--shadow-invalid); }
/* Segments, tabs, chips and filters */
/* Joined segments: default straight interior edges. */
:where(.sm-segmented) > .sm-segment { border-radius: 0; }
/* Joined segments: default rounded leading edge. */
:where(.sm-segmented) > .sm-segment:first-child { border-start-start-radius: var(--radius-control); border-end-start-radius: var(--radius-control); }
/* Joined segments: default rounded trailing edge. */
:where(.sm-segmented) > .sm-segment:last-child { border-start-end-radius: var(--radius-control); border-end-end-radius: var(--radius-control); }
/* Chip: default rounded segment shape. */
.sm-chip { border-radius: var(--radius-capsule); }
/* Choice card: default surface around a native radio. */
:where(.sm-choice) { background: var(--surface); border: var(--line-control) solid var(--control-border); border-radius: var(--radius-control); color: var(--text); cursor: pointer; }
/* Choice card title: default compact emphasis leaves room for its explanation. */
:where(.sm-choice) :where(strong) { font-size: var(--text-caption); line-height: var(--leading-title); }
/* Choice card detail: default small supporting text stays readable. */
:where(.sm-choice) :where(small) { font-size: var(--text-choice-detail); font-weight: 500; line-height: var(--leading-control); color: var(--muted); }
/* Fields and choice cards: hover reinforces the enabled boundary. */
.sm-input:where(:not(:disabled, [aria-invalid="true"], .invalid):hover), .sm-select:where(:not(:disabled, [aria-invalid="true"], .invalid):hover), .sm-textarea:where(:not(:disabled, [aria-invalid="true"], .invalid):hover), .sm-choice:where(:not(:has(input:checked, input:disabled)):hover) { border-color: var(--accent-hover); }
/* Choice card: keyboard focus surrounds the selectable label. */
.sm-choice:where(:has(input:focus-visible)) { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
/* Rating: selected stars retain a filled shape. */
.sm-rating:where(.sm-rating--filled, [aria-checked="true"]) :where(svg) { fill: currentColor; }
/* Cards */
/* Card: default neutral surface for grouped content. */
.sm-card { background: var(--surface); border: var(--line) solid var(--divider); border-radius: var(--radius-card); color: var(--text); box-shadow: var(--shadow-card); }
/* Calendar card: default quiet boundary never implies selection. */
.sm-day:where(:not(:disabled, [aria-disabled="true"])) { background: var(--surface); border: var(--line) solid var(--divider); border-radius: var(--radius-icon); color: var(--text); font: inherit; box-shadow: none; }
/* Calendar card: hover reinforces availability without selecting the day. */
.sm-day:where(button:not(:disabled, [aria-disabled="true"]):hover) { background: var(--surface); border-color: var(--green); }
/* Calendar card: full capacity retains the deployed neutral tint. */
.sm-day--full:where(:not(:disabled, [aria-disabled="true"])) { background: var(--page); }
/* Calendar card: operator away retains the deployed warm tint. */
.sm-day--away:where(:not(:disabled, [aria-disabled="true"])) { background: var(--away-surface); }
/* Calendar card: today uses a green boundary without a selected fill. */
.sm-day--today:where(:not(:disabled, [aria-disabled="true"])) { border-color: var(--green); box-shadow: var(--shadow-today); }
/* Supporting card: default light service tint around related information. */
.sm-card--soft { background: var(--accent-soft); border-color: var(--soft-border); border-radius: var(--radius-feature); }
/* Field group card: default dashed boundary and control corners frame related inputs. */
.sm-card--field-group { border-style: dashed; border-radius: var(--radius-control); }
/* Quotation card: default accent edge separates a person's words from prose. */
.sm-card--quote { border: 0; box-shadow: none; border-inline-start: var(--line-accent) solid var(--accent); border-radius: 0 var(--radius-dialog) var(--radius-dialog) 0; }
/* Quotation card: default italic statement keeps its deployed emphasis. */
.sm-card--quote :where(blockquote) { font-style: italic; font-weight: 500; }
/* Neutral card: default muted surface for secondary instructions. */
.sm-card--muted { background: var(--surface-muted); border-radius: var(--radius-dialog); }
/* Icon tile: default white inset within a tinted information card. */
.sm-card--icon { border-color: var(--soft-border); border-radius: var(--radius-feature); box-shadow: none; }
/* Icon tile: default rounded square illustration in the service color. */
.sm-icon-tile { background: var(--accent-soft); border: var(--line) solid var(--soft-border); border-radius: var(--radius-card); color: var(--accent); }
/* Outlined icon tile: default strong brand edge on a white inset. */
.sm-icon-tile--outline { background: var(--surface); border-width: var(--line-invalid); border-color: var(--accent); border-radius: var(--radius-feature); }
/* Flat card: default information surface keeps its existing boundary without depth. */
.sm-card--flat { box-shadow: none; }
/* Compact card: default small grouped content uses the standard card corner. */
.sm-card--compact { border-radius: var(--radius-card); }
/* Card: default medium corners soften a compact information panel. */
.sm-card--medium-corner { border-radius: var(--radius-icon); }
/* Summary card: default subscription explanation retains its pale tint and leading accent edge. */
.sm-card--summary { background: var(--summary-surface); border: 0; border-inline-start: var(--line-note) solid var(--accent); border-radius: var(--radius-label); color: var(--accent-hover); box-shadow: none; }
/* Soft corner card: default information surface retains the medium corner. */
.sm-card--soft-corner { border-radius: var(--radius-feature); }
/* Rounded card: default large form surface preserves its document corner. */
.sm-card--rounded { border-radius: var(--radius-dialog); }
/* Tinted outline card: default white service panel keeps its brand boundary. */
.sm-card--outlined { border-color: var(--soft-border); }
/* Information card: default seasonal and payment instructions use a flat green edge. */
.sm-card--information { border-color: var(--information-border); border-radius: var(--radius-dialog); box-shadow: none; }
/* Promotion card: default white service introduction has a tinted boundary and restrained depth. */
.sm-card--promotion { border-color: var(--soft-border); border-radius: var(--radius-feature); box-shadow: var(--shadow-promotion); }
/* Plain icon tile: default illustration has a tint without a box boundary. */
.sm-icon-tile--plain { border: 0; border-radius: var(--radius-feature); }
/* Inset icon tile: default white square uses the original information corner. */
.sm-icon-tile--inset { background: var(--surface); border-radius: var(--radius-icon); }
/* Warning illustration: default invalid link uses the original warm orange palette. */
.sm-icon-tile--warning { background: var(--illustration-warning-surface); color: var(--illustration-warning); border: 0; border-radius: var(--radius-feature); }
/* Current milestone card: default highlighted boundary marks achieved progress. */
.sm-card--current { box-shadow: var(--shadow-current); }
/* Callout card: default service colored emphasis within a document. */
.sm-card--callout { color: var(--accent-hover); font-weight: 500; }
/* Policy warning card: default warm caution is distinct from operational status. */
.sm-card--policy { background: var(--callout-warning-surface); border-color: var(--callout-warning-border); color: var(--callout-warning-text); font-weight: 500; }
/* Dashed card: default invitation boundary for an empty collection. */
.sm-card--dashed { border: var(--line-invalid) dashed var(--soft-border); border-radius: var(--radius-dialog); }
/* Informational chip: default quiet label is distinct from an action. */
.sm-chip--information { background: var(--surface); border: var(--line) solid var(--divider); border-radius: var(--radius-card); color: var(--muted); font-size: var(--text-small); font-weight: 500; }
/* Raised card: default restrained depth around access and signup forms. */
.sm-card--raised { box-shadow: var(--shadow-raised); }
/* Quote card: default compact green depth preserves the established brand panel. */
.sm-card--brand-shadow { box-shadow: var(--shadow-quote); }
/* Section divider: default quiet boundary above a new account group. */
.sm-divider--before { border-block-start: var(--line) solid var(--divider); }
/* Progress track: default green remainder of a measured goal. */
.sm-meter { background: var(--soft-border); border-radius: var(--radius-capsule); }
/* Progress fill: default service accent records measured progress. */
.sm-meter__fill { background: var(--progress-fill); border-radius: inherit; }
/* Flat card: header and toolbar surfaces meet the page edge. */
.sm-card--bar { background: var(--page); border-inline: 0; border-block-start: 0; border-radius: 0; box-shadow: none; }
/* Inverse card: brand surface for secondary site information. */
.sm-card--inverse { background: var(--accent-hover); color: var(--on-accent); border: 0; border-radius: 0; box-shadow: none; }
/* Selected labels and inverse links: inherit readable text from the filled surface. */
.sm-button:where([aria-pressed="true"], [aria-selected="true"], [aria-checked="true"], [aria-current], :has(input:checked)) :where(*), .sm-choice:where(:has(input:checked)) :where(*), :where(.sm-card--inverse, .sm-alert--inverse) :where(a), .sm-brand__icon { color: inherit; }
/* Badges and pills */
/* Badge or pill: default readable service status. */
.sm-badge { background: var(--accent-soft); color: var(--accent-hover); border: var(--line) solid var(--soft-border); border-radius: var(--radius-capsule); font-size: var(--text-small); font-weight: 600; }
/* Current milestone badge: achieved status retains its solid service fill. */
.sm-badge--current { background: var(--accent); border: 0; color: var(--on-accent); }
/* Informational label: default compact square corner separates pricing from selectable pills. */
.sm-badge--label { font-size: var(--text-detail); font-weight: 700; border-radius: var(--radius-label); }
/* Featured label: default white price label retains the service accent edge. */
.sm-badge--featured { background: var(--surface); border-color: var(--accent); color: var(--accent); }
/* Detail pill: default compact reassurance text retains its original scale. */
.sm-badge--detail { font-size: var(--text-detail); }
/* Quiet pill: default neutral information retains its lighter text weight. */
.sm-badge--quiet { font-weight: 500; }
/* Status badge: uppercase labels for operational meaning. */
.sm-badge--status { text-transform: uppercase; font-size: var(--text-label); letter-spacing: var(--tracking-status); font-weight: 700; }
/* Sentence badge: away reasons retain their original mixed case. */
.sm-badge--sentence { text-transform: none; letter-spacing: normal; font-weight: 600; }
/* Legend badge: default status key keeps the wider uppercase tracking. */
.sm-badge--legend { letter-spacing: var(--tracking-label); }
/* Eyebrow badge: default calendar introduction retains its compact location scale. */
.sm-badge--eyebrow { font-size: var(--text-fine); letter-spacing: var(--tracking-overline); text-transform: uppercase; }
/* Success badge: available and active status. */
.sm-badge--success { background: var(--green-pale); color: var(--green-dark); border-color: var(--soft-border); }
/* Warning card and badge: default limited capacity or policy caution. */
.sm-badge--warning { background: var(--warning-surface); color: var(--warning-text); border-color: var(--warning-border); }
/* Neutral badge: full capacity or completed work. */
.sm-badge--neutral { background: var(--surface-muted); color: var(--muted); border-color: var(--divider); }
/* Danger badge: operator away or attention required. */
.sm-badge--danger { background: var(--danger-surface); color: var(--danger-text); border-color: var(--danger-border); }
/* Information status badge: compose with the status modifier for blue compact restrictions. */
.sm-badge--info { background: var(--info-surface); color: var(--info-text); border-color: var(--info-border); font-size: var(--text-info); }
/* Location badge: default sentence case label retains its compact scale. */
.sm-badge--location { font-size: var(--text-caption); letter-spacing: var(--tracking-location); }
/* Milestone badge: default sentence case achievement label. */
.sm-badge--milestone { font-size: var(--text-label); font-weight: 700; border-radius: var(--radius-label); }
/* Round badge and disabled radio: circles retain their icon or single choice meaning. */
.sm-badge--round, .sm-radio:disabled, .sm-radio:where(:disabled:checked)::before { border-radius: var(--radius-pill); }
/* Banners and alerts */
/* Banner or alert: default informational surface. */
.sm-alert { background: var(--accent-soft); border: var(--line) solid var(--control-border); border-radius: var(--radius-card); color: var(--text); }
/* Alert: error has readable dark text and a red boundary. */
.sm-alert--error { background: var(--error-surface); border-color: var(--error-text); color: var(--error-text); }
/* Privacy banner: default blue green bar separates cookie consent from content. */
.sm-alert--inverse { background: var(--consent-surface); color: var(--on-accent); border: 0; border-radius: 0; }
/* Dialogs */
/* Dialog: default modal surface. */
.sm-dialog { background: var(--surface); color: var(--text); border: var(--line) solid var(--control-border); border-radius: var(--radius-dialog); box-shadow: var(--shadow-dialog); }
/* Drawer dialog: open surface meets the screen edge. */
.sm-dialog--drawer { border-radius: 0; border: 0; }
/* Dialog backdrop: open state dims the inactive page. */
.sm-dialog::backdrop { background: var(--backdrop); }
/* Tables */
/* Table: default joined row boundaries. */
.sm-table { border-collapse: collapse; color: var(--text); font-size: var(--text-small); }
/* Table cells and section dividers: default quiet separation between records. */
.sm-divider--after, :where(.sm-table) :where(th, td) { border-block-end: var(--line) solid var(--divider); }
/* Table headings: default neutral fill and emphasized labels. */
:where(.sm-table) :where(th) { background: var(--surface-muted); font-weight: 600; }
/* Pagination and navigation */
/* Navigation item: default readable link without button emphasis. */
.sm-nav-item { color: var(--green-dark); background: transparent; border: 0; border-radius: var(--radius-control); font: 600 var(--text-nav)/var(--leading-nav) var(--font-chrome); text-decoration: none; }
/* Navigation button: default service color on the mobile menu action. */
.sm-nav-button { color: var(--green-dark); font-family: var(--font-chrome); }
/* Navigation brand: default larger wordmark beside the leaf icon. */
.sm-nav-item--brand { font-size: var(--text-logo); font-weight: 750; letter-spacing: var(--tracking-heading); }
/* Brand link: default service identity retains the deployed compact wordmark. */
.sm-brand { color: var(--accent-hover); font-size: var(--text-card-title); font-weight: 700; letter-spacing: var(--tracking-title); text-decoration: none; }
/* Wordmark part: default lighter brand color preserves the two tone name. */
.sm-brand__part { color: var(--brand-part); }
/* Small brand link: default compact operator wordmark. */
.sm-brand--small { font-size: var(--text-card); }
/* Navigation item: hover reinforces the link without selected fill. */
.sm-nav-item:hover { text-decoration: underline; }
/* Navigation item: current destination uses the deployed tint and underline. */
.sm-nav-item:where([aria-current]) { background: var(--nav-selected); text-decoration: underline; text-underline-offset: var(--space-0-375); }
/* Navigation action: default filled quote action matches the deployed header. */
.sm-nav-item--cta { background: var(--green-dark); color: var(--on-accent); }
/* Navigation action: hover retains its filled action and readable label. */
.sm-nav-item--cta:hover { background: var(--green); }
/* Navigation action: secondary boundary leaves the visible page action dominant. */
.sm-nav-item--secondary { border: var(--line-control) solid var(--green-dark); }
/* Navigation item: disabled remains neutral even when current or hovered. */
.sm-nav-item[aria-disabled="true"] { background: var(--disabled-surface); color: var(--disabled-text); border: var(--line-control) solid var(--disabled-border); text-decoration: none; cursor: not-allowed; }
/* Empty states and form feedback */
/* Form error: invalid text below its associated field. */
.sm-field-error { color: var(--error-text); font-size: var(--text-small); }
/* Required marker and request feedback: error text without field message geometry. */
.sm-status-error, .sm-required { color: var(--error-text); }
/* Request feedback: success uses dark brand text. */
.sm-status-ok { color: var(--accent-hover); }
/* Empty state title: default dark emphasis invites the first contribution. */
.sm-empty__title { color: var(--text); font-weight: 700; }
/* Empty state and neutral feedback: readable supporting text. */
.sm-empty, .sm-status-neutral { color: var(--muted); }
/* Wider choices: restore the larger title while narrow cards keep room for their explanation. */
@media (min-width: 768px) {
/* Choice card title: wider screens restore the standard small text size. */
:where(.sm-choice) :where(strong) { font-size: var(--text-small); }
}
