/* AuthorLabel Site: "tag and stitching" details that theme.json can't express. */

:root {
	--al-brand: #0b5d56;
	--al-brand-dark: #063f3a;
	--al-string: #9fd4c4;
	--al-mint: #f1f7f4;
	--al-mint-strong: #dff0ea;
	--al-ink: #1d2420;
	--al-muted: #44504a;
	--al-line: #e3ece8;
	--al-shadow: 0 20px 40px rgba(6, 63, 58, 0.08);
	--al-shadow-big: 0 40px 80px rgba(6, 63, 58, 0.12);
}

body { -webkit-font-smoothing: antialiased; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--al-brand); outline-offset: 3px; }

/* Header */
.al-header .wp-block-navigation a { color: var(--al-ink); text-decoration: none; }
.al-header .wp-block-navigation .current-menu-item > a { color: var(--al-brand); font-weight: 700; }
.al-logo img { display: block; }

/* Eyebrow text */
.al-eyebrow { font-family: var(--wp--preset--font-family--heading); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--al-brand); }

/* Stitched card: white card with a dashed seam inside, like the logo. */
.is-style-stitched { background: #fff; border-radius: 22px; padding: 8px !important; box-shadow: var(--al-shadow); }
.wp-block-group.is-style-stitched > .al-seam,
.wp-block-group.is-style-stitched.al-seam-self { border: 1.5px dashed var(--al-string); border-radius: 16px; padding: clamp(20px, 3vw, 40px); }
.wp-block-group.is-style-stitched > .al-seam > :first-child { margin-top: 0; }

/* Details as stitched FAQ card */
.wp-block-details.is-style-stitched { padding: 8px !important; }
.wp-block-details.is-style-stitched > summary,
.wp-block-details.is-style-stitched > :not(summary) { margin-left: 0; }
.wp-block-details.is-style-stitched { position: relative; }
.wp-block-details.is-style-stitched::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--al-string); border-radius: 16px; pointer-events: none; }
.wp-block-details.is-style-stitched > summary { padding: 22px 56px 22px 26px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 19px; line-height: 1.35; cursor: pointer; list-style: none; position: relative; }
.wp-block-details.is-style-stitched > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-stitched > summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--al-brand); }
.wp-block-details.is-style-stitched[open] > summary::after { content: "\2212"; }
.wp-block-details.is-style-stitched > :not(summary) { padding: 0 26px; color: var(--al-muted); font-size: 17px; }
.wp-block-details.is-style-stitched > :last-child:not(summary) { padding-bottom: 24px; }

/* Heading as a hanging tag (group titles) */
.wp-block-heading.is-style-tag { position: relative; display: inline-block; padding: 8px 18px 8px 30px; background: var(--al-brand); color: #fff; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); font-size: 15px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; }
.wp-block-heading.is-style-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--al-mint); }

/* Separator as a stitch line */
.wp-block-separator.is-style-stitch { border: 0; border-top: 1.5px dashed var(--al-string) !important; background: none; opacity: 1; width: 100% !important; max-width: none; }

/* Outline button */
.wp-block-button.is-style-outline-pill .wp-block-button__link { background: transparent; color: var(--al-ink); box-shadow: inset 0 0 0 1.5px var(--al-brand); }
.wp-block-button.is-style-outline-pill .wp-block-button__link:hover { background: var(--al-mint-strong); color: var(--al-brand-dark); }

/* Price tag cards */
.wp-block-group.is-style-price-tag { position: relative; padding: 44px 40px 40px 76px !important; background: var(--al-mint); clip-path: polygon(48px 0, 100% 0, 100% 100%, 48px 100%, 0 50%); }
.wp-block-group.is-style-price-tag::before { content: ""; position: absolute; left: 30px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; }
.wp-block-group.is-style-price-tag.has-background:not(.has-mint-background-color) { color: #fff; }

/* Three tags on a string */
.al-string { display: block; width: 100%; height: 60px; }
.al-step { background: #fff; border-radius: 22px; padding: 34px !important; box-shadow: var(--al-shadow); }
.al-step::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid var(--al-string); }
@media (min-width: 782px) {
	.al-steps > .al-step:nth-child(1) { transform: rotate(-1.5deg); }
	.al-steps > .al-step:nth-child(2) { transform: translateY(18px); }
	.al-steps > .al-step:nth-child(3) { transform: rotate(1.5deg); }
}

/* Duties list */
.al-duties { border: 1.5px dashed var(--al-string); border-radius: 24px; padding: 8px 28px !important; }
.al-duty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--al-line); font-weight: 600; }
.al-duty:last-child { border-bottom: 0; }
.al-pill { flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; background: var(--al-mint-strong); color: var(--al-brand-dark); font-size: 14px; font-weight: 600; white-space: nowrap; }
.al-pill--solid { background: var(--al-brand); color: #fff; }
.al-pill--grey { background: #eef1f0; color: var(--al-muted); }
@media (max-width: 600px) { .al-duty { flex-direction: column; align-items: flex-start; } .al-pill { align-self: flex-start; } }

/* Persona cards */
.al-persona { border-top: 1.5px dashed var(--al-string); padding-top: 28px; }

/* Guide cards (query loop) */
.al-cards .wp-block-post { background: #fff; border-radius: 22px; padding: 28px; transition: box-shadow .2s ease; }
.al-cards .wp-block-post:hover { box-shadow: var(--al-shadow); }
.al-cards .wp-block-post-title a { color: var(--al-ink); text-decoration: none; }
.al-cards .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.al-cards .wp-block-post { position: relative; }
.al-cards .wp-block-post-excerpt { color: var(--al-muted); font-size: 16px; }
.al-cards .wp-block-post-terms a { position: relative; z-index: 1; font-size: 14px; font-weight: 600; text-decoration: none; }

/* Article body */
.al-article { background: #fff; border-radius: 28px; padding: 10px !important; }
.al-article > .al-seam { border: 1.5px dashed var(--al-string); border-radius: 22px; padding: clamp(24px, 5vw, 56px); }
.al-prose { font-size: 19px; line-height: 1.7; }
.al-prose h2 { font-size: 30px; margin-top: 48px; }
.al-prose h3 { font-size: 22px; margin-top: 32px; }
.al-prose blockquote, .al-prose .wp-block-quote { margin: 32px 0; padding: 20px 24px; border: 0; border-radius: 16px; background: var(--al-mint); font-size: 17px; }
.al-prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.al-prose th, .al-prose td { padding: 10px 14px; border-bottom: 1px solid var(--al-line); text-align: left; }
.al-prose .wp-block-table { overflow-x: auto; }
.al-prose code { background: var(--al-mint); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }

/* Docs sidebar */
.al-docs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.al-docs-nav li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--al-ink); text-decoration: none; font-size: 16px; }
.al-docs-nav li a:hover { background: var(--al-mint); }
.al-docs-nav li.current-menu-item a, .al-docs-nav li.al-current a { background: var(--al-mint-strong); color: var(--al-brand-dark); font-weight: 600; }

/* Numbered steps inside docs */
.al-prose ol.al-numbered { list-style: none; padding: 0; counter-reset: al; display: flex; flex-direction: column; gap: 22px; }
.al-prose ol.al-numbered > li { counter-increment: al; position: relative; padding-left: 54px; }
.al-prose ol.al-numbered > li::before { content: counter(al); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--al-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; }

/* Demo in the hero */
.al-demo { background: #fff; border-radius: 28px; padding: 14px; box-shadow: var(--al-shadow-big); }
.al-demo__inner { border: 1.5px dashed var(--al-string); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.al-demo__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.al-demo__opts button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfe0d9; background: #fff; color: var(--al-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.al-demo__opts button[aria-pressed="true"] { background: var(--al-brand); border-color: var(--al-brand); color: #fff; }
.al-demo__photo { position: relative; height: 260px; border-radius: 16px; background: #d9e8e1; overflow: hidden; }
.al-demo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-demo__string { position: absolute; right: 150px; top: -14px; }
.al-demo__tag { position: absolute; right: 22px; top: 54px; transform: rotate(-6deg); display: flex; align-items: center; padding: 12px 18px 12px 34px; background: #fff; clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); box-shadow: 0 10px 24px rgba(6,63,58,.18); font-family: var(--wp--preset--font-family--heading); font-size: 15px; font-weight: 700; color: var(--al-brand-dark); transition: opacity .2s ease; }
.al-demo__tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #d9e8e1; }
.al-demo[data-state="none"] .al-demo__tag, .al-demo[data-state="none"] .al-demo__string { opacity: 0; }
.al-demo__title { margin: 0 0 6px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 22px; }
.al-demo__caption { margin: 0; font-size: 16px; color: var(--al-muted); }
.al-demo__code { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--al-mint); font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: #2c3a34; overflow-x: auto; white-space: pre; }

/* Contact form */
.al-form { display: flex; flex-direction: column; gap: 16px; }
.al-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.al-form input[type="text"], .al-form input[type="email"], .al-form select, .al-form textarea { min-height: 50px; padding: 10px 14px; border: 1px solid #a9bdb5; border-radius: 12px; font: inherit; font-weight: 400; background: #fff; color: var(--al-ink); }
.al-form .al-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #2c3a34; }
.al-form .al-check input { margin-top: 4px; width: 18px; height: 18px; }
.al-form button { align-self: flex-start; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--al-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.al-form button:hover { background: var(--al-brand-dark); }
.al-form .al-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-notice { padding: 14px 18px; border-radius: 12px; background: var(--al-mint-strong); color: var(--al-brand-dark); font-weight: 600; }
.al-notice--error { background: #fdecea; color: #7a1c12; }

/* Footer */
.al-footer { border-top: 1.5px dashed var(--al-string); }
.al-footer a { color: var(--al-ink); }

/* Small screens */
@media (max-width: 781px) {
	.wp-block-group.is-style-price-tag { padding: 36px 28px 32px 64px !important; }
	.al-demo__string { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Hero */
.al-hero { align-items: center; }
.al-hero > .al-hero__text { flex: 1 1 460px; min-width: 0; }
.al-hero > .al-demo { flex: 1 1 520px; min-width: 0; }
.al-hero h1 mark { color: var(--al-brand); }
.al-demo__photo img { position: absolute; inset: 0; }

/* Duties list is a <ul> */
ul.al-duties { list-style: none; margin: 0; }

/* Price numbers */
.al-price { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.al-price span { font-size: 18px; font-weight: 600; letter-spacing: 0; opacity: .8; }
.is-style-price-tag.has-brand-background-color a:not(.wp-element-button) { color: #fff; }
.is-style-price-tag.has-brand-background-color::before { background: var(--al-mint); }

/* Header on small screens */
.al-header .wp-block-site-title { white-space: nowrap; }
@media (max-width: 781px) {
	.al-header-cta { display: none !important; }
	.al-docs-col { order: 2; }
	.al-docs-nav { position: static !important; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--al-mint) !important; }

/* Eyebrow links */
.al-eyebrow a { color: inherit; text-decoration: none; }
.wp-block-post-terms.al-eyebrow { margin: 0; }

/* Docs sidebar spacing */
.al-docs-nav .wp-block-post-template { gap: 2px; }
.al-docs-nav .wp-block-post-title a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.al-docs-nav .wp-block-post-title a:hover { background: #fff; }
.al-docs-nav .al-current .wp-block-post-title a { background: var(--al-mint-strong); color: var(--al-brand-dark) !important; font-weight: 600; }

/* Search form */
.wp-block-search__input { min-height: 50px; border-radius: 12px; border: 1px solid #a9bdb5; padding: 10px 14px; }
.wp-block-search__button { border-radius: 999px; padding: 0 22px; }

/* Docs sidebar: tight list */
.al-docs-nav .wp-block-post-template > li { margin: 0; }
.al-docs-nav .wp-block-post-title { margin: 0 !important; }
.al-docs-nav .wp-block-query { margin-top: 12px; }

/* Calm tables */
.al-prose .wp-block-table table, .al-prose .wp-block-table th, .al-prose .wp-block-table td { border: 0; }
.al-prose .wp-block-table thead { border-bottom: 1.5px dashed var(--al-string); }
.al-prose .wp-block-table th { font-weight: 700; color: var(--al-ink); background: var(--al-mint); }
.al-prose .wp-block-table td { border-bottom: 1px solid var(--al-line); }
