/* Client Portal (front end). Large type, big targets, high contrast, no animation.
   Scoped to .mads-portal so it works inside any theme. */

.mads-portal { --ink: var(--wp--preset--color--ink, #111); --muted: #3d3d3d; --line: #8a8a8a; --bg: #fff; --accent: var(--wp--preset--color--navy, #0b4f8a); --accent2: var(--wp--preset--color--teal-dark, #0b4f8a); --soft: var(--wp--preset--color--sky, #eef5fc); --ok: #0b5a1d; --okbg: #e6f4ea; --err: #8a1111; --errbg: #fdecec;
	font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 720px; margin: 0 auto; }
.mads-portal * { box-sizing: border-box; animation: none !important; transition: none !important; }
.mads-portal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mads-p-title { font-family: var(--wp--preset--font-family--heading, inherit); font-size: 2rem; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.mads-p-lead { font-size: 1.3125rem; color: var(--muted); margin: 0 0 20px; }
.mads-p-hint { display: block; font-size: 1.0625rem; color: var(--muted); margin-top: 4px; }
.mads-p-list .mads-p-hint, .mads-p-card p.mads-p-hint { display: inline; }
.mads-p-card p.mads-p-hint { display: block; }

.mads-p-form p { margin: 0 0 20px; }
.mads-p-form label { display: block; font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.mads-p-form input[type=text], .mads-p-form input[type=password] {
	width: 100%; font-size: 1.5rem; padding: 12px 14px; min-height: 3.625rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); color: var(--ink); letter-spacing: .5px; }
.mads-p-form input:focus, .mads-p-btn:focus, .mads-p-link:focus, .mads-portal summary:focus { outline: 4px solid var(--wp--preset--color--amber, #f5b400); outline-offset: 2px; }
.mads-p-check { display: flex !important; gap: 12px; align-items: center; font-weight: 400 !important; font-size: 1.1875rem !important; margin: 10px 0 18px; }
.mads-p-check input { width: 28px; height: 28px; flex: none; }

.mads-p-btn { display: inline-block; font-size: 1.375rem; font-weight: 700; min-height: 3.75rem; padding: 14px 32px; border-radius: 8px; border: 2px solid var(--accent); background: var(--accent); color: #fff !important; text-decoration: none !important; cursor: pointer; line-height: 1.3; }
.mads-p-form .mads-p-btn { width: 100%; }
.mads-p-btn-quiet { background: #fff; color: var(--accent) !important; font-size: 1.1875rem; min-height: 3.25rem; padding: 10px 20px; }
.mads-p-link { background: none; border: 0; padding: 8px 0; font-size: 1.1875rem; color: var(--accent); text-decoration: underline; cursor: pointer; }

.mads-p-msg { font-size: 1.25rem; padding: 14px 18px; border-radius: 8px; margin: 0 0 20px; border-left: 6px solid; }
.mads-p-ok { background: var(--okbg); color: var(--ok); border-color: var(--ok); }
.mads-p-err { background: var(--errbg); color: var(--err); border-color: var(--err); }

.mads-p-details { margin: 28px 0; border-top: 2px solid var(--line); padding-top: 18px; }
.mads-p-details summary { font-size: 1.25rem; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.mads-p-details[open] summary { margin-bottom: 16px; }
.mads-p-alt { margin: 20px 0; }
.mads-p-alt form { margin: 0; }
.mads-p-help { margin-top: 28px; padding: 18px; border: 2px solid var(--line); border-radius: 8px; }
.mads-p-help p { margin: 0 0 10px; }
.mads-p-warn { font-size: 1.125rem; color: var(--muted); }

.mads-p-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mads-p-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 24px; }
.mads-p-tile { border: 2px solid var(--ink); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 6rem; }
.mads-p-tile-title { font-size: 1.375rem; font-weight: 700; }
.mads-p-soon { border-style: dashed; color: var(--muted); }
.mads-p-card { border: 2px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 0 0 20px; }
.mads-p-card h3 { font-size: 1.5rem; margin: 0 0 12px; }
.mads-p-list, .mads-p-log { margin: 0 0 12px; padding-left: 24px; }
.mads-p-list li, .mads-p-log li { margin: 0 0 10px; }
.mads-p-when { display: block; font-size: 1rem; color: var(--muted); }

a.mads-p-tile { text-decoration: none !important; color: var(--ink) !important; }
a.mads-p-tile:focus { outline: 4px solid var(--wp--preset--color--amber, #f5b400); outline-offset: 2px; }
.mads-p-year { font-size: 1.3125rem; margin: 18px 0 8px; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.mads-p-docs { list-style: none; margin: 0; padding: 0; }
.mads-p-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid #d0d0d0; }
.mads-p-doc-title { font-weight: 700; font-size: 1.25rem; flex: 1 1 260px; }
.mads-p-docs .mads-p-hint { flex: 1 1 100%; order: 2; margin: 0; }
.mads-p-doc-actions { display: flex; gap: 10px; order: 1; }
.mads-p-doc-actions .mads-p-btn { min-height: 3rem; padding: 8px 18px; font-size: 1.125rem; }
.mads-p-file, .mads-p-select { font-size: 1.25rem; width: 100%; padding: 10px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; min-height: 3.5rem; }
.mads-p-form input[type=text]#mads-note { font-size: 1.25rem; }
.mads-p-codes { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mads-p-codes li { border: 2px solid var(--ink); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; font-size: 1.0625rem; }
.mads-p-codes li.used { border-color: #9a9a9a; color: var(--muted); background: #f2f2f2; text-decoration: line-through; }
.mads-p-codenum { font-weight: 700; font-size: 1.25rem; text-decoration: none; }

/* Messages */
.mads-p-tile-new { border-color: var(--accent); border-width: 3px; background: var(--soft); }
.mads-p-thread { margin: 0 0 20px; }
.mads-p-m { border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; max-width: 92%; }
.mads-p-m.from-biz { background: var(--soft); border-color: var(--accent2); }
.mads-p-m.from-me { margin-left: auto; background: #fff; }
.mads-p-m.is-new { border-color: #0b4f8a; border-width: 3px; }
.mads-p-m-head { margin-bottom: 4px; }
.mads-p-m-body { font-size: 1.25rem; line-height: 1.5; }
.mads-p-m-att { margin: 8px 0 0; font-size: 1.125rem; }
.mads-p-textarea { width: 100%; font-size: 1.25rem; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; min-height: 8.75rem; font-family: inherit; }
.mads-p-owed { font-size: 1.3125rem; }

/* Brand: headings in the theme's heading font, soft backgrounds in pale teal (if the theme provides them). */
.mads-portal h2, .mads-portal h3 { font-family: var(--wp--preset--font-family--heading, inherit); color: var(--accent); }
.mads-p-btn:hover { background: var(--accent2); border-color: var(--accent2); }
.mads-p-btn-quiet:hover { background: var(--soft); }

/* Website request form */
.mads-request { margin-top: 1rem; }
.mads-p-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.mads-p-fieldset { border: 2px solid var(--line); border-radius: 10px; padding: 0.75rem 1.25rem 0.5rem; margin: 0 0 1.25rem; }
.mads-p-fieldset legend { font-weight: 700; font-size: 1.25rem; padding: 0 0.4rem; }
.mads-p-fieldset .mads-p-check { margin: 0.5rem 0; }
.mads-p-soft { background: var(--soft); border-radius: 10px; padding: 0.75rem 1.25rem 0.25rem; margin: 0 0 1.25rem; }
.mads-p-form input[type=tel], .mads-p-form input[type=email], .mads-p-form select, .mads-p-form textarea {
	width: 100%; font-size: 1.25rem; padding: 12px 14px; min-height: 3.6rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); color: var(--ink); font-family: inherit; }
.mads-p-form textarea { min-height: 8rem; line-height: 1.5; }
.mads-p-form select:focus, .mads-p-form textarea:focus, .mads-p-check input:focus { outline: 4px solid var(--wp--preset--color--amber, #f5b400); outline-offset: 2px; }
.mads-p-form [aria-invalid=true] { border-color: var(--err); border-width: 3px; }
.mads-p-field-err { display: block; color: var(--err); font-weight: 700; margin-top: 0.3rem; }
.mads-rates li { margin-bottom: 0.5rem; }
.mads-portal input[type=radio], .mads-portal input[type=checkbox] { accent-color: var(--accent); }
