/* Easier for everyone: larger text, larger targets, quieter Docs pages. */

/* Base reading size */
body { font-size: 18px; }
.entry-content, .activity-inner, .acomment-content, .doc-content, .comment-content { font-size: 18px; line-height: 1.65; }

/* Text size choice (A / A+ / A++) scales the page content, not the header */
html.cn-fs-1 #primary, html.cn-fs-1 .site-sub-header, html.cn-fs-1 .cn-home { zoom: 1.12; }
html.cn-fs-2 #primary, html.cn-fs-2 .site-sub-header, html.cn-fs-2 .cn-home { zoom: 1.25; }
.cn-fs { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(149,114,48,.25); }
.cn-fs button { min-width: 36px; height: 34px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: #3B2C12; font: 700 14px/1 var(--ic-body, sans-serif); cursor: pointer; }
.cn-fs button:nth-child(2) { font-size: 16px; }
.cn-fs button:nth-child(3) { font-size: 18px; }
.cn-fs button[aria-pressed="true"] { background: #3B2C12; color: #fff; }
.cn-fs button:hover:not([aria-pressed="true"]) { background: rgba(149,114,48,.14); }
@media (max-width: 520px) { .cn-fs button { min-width: 32px; height: 32px; } }

/* Larger touch targets everywhere */
#primary a.button, #primary button, #primary input[type="submit"], #primary .bp-navs a, .ng-links a, .cn-langs a { min-height: 44px; display: inline-flex; align-items: center; }
.ng-links a { padding-top: 10px; padding-bottom: 10px; font-size: 16px; }
.cn-langs a { padding: 0 4px; font-size: 15px; }
.activity-meta a, .activity-meta button, .acomment-options a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 15px; }
.wpulike .wp_ulike_btn, .wpulike button { min-width: 44px !important; min-height: 44px !important; }
.wpulike .count-box { min-height: 34px; font-size: 15px !important; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], select, textarea { font-size: 17px !important; min-height: 46px; }
textarea { min-height: 120px; }

/* The Translate button: a real, labelled button */
.cn-tr { margin: 10px 0 12px !important; }
.cn-tr .cn-tr__btn { display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px !important; padding: 0 16px !important; border-radius: 999px !important; background: #F7F3EA !important; box-shadow: inset 0 0 0 1px rgba(149,114,48,.35) !important; font-size: 15px !important; }
.cn-tr .cn-tr__btn::before { content: "文A"; font-size: 13px; letter-spacing: -.02em; opacity: .8; }
.cn-tr .cn-tr__btn:hover { background: #fff !important; text-decoration: none !important; }
.cn-tr__note { font-size: 14.5px !important; }

/* Docs: readers see the page, not the machinery */
.cn-doc-read .doc-permissions, .cn-doc-readonly .doc-tabs { display: none !important; }
.cn-doc-read #bp-docs-single-doc-header .doc-title { font-size: 15px; font-weight: 600; }
.cn-doc-read .doc-tabs ul { gap: 8px; }
.cn-doc-read .doc-tabs a { min-height: 44px; padding: 0 18px; font-size: 16px; }
.cn-doc-read .doc-content { max-width: 780px; }
.bp-docs .doctable td, .bp-docs .doctable th { padding: 14px 12px !important; font-size: 16px; }
.bp-docs .doctable .toggle-folder, .bp-docs .folder-row-name a { min-height: 40px; display: inline-flex; align-items: center; }

/* Docs editor: one row of large buttons */
.cn-doc-editing .mce-toolbar .mce-btn button { padding: 8px 10px !important; }
.cn-doc-editing .mce-toolbar .mce-ico { font-size: 22px !important; width: 22px; height: 22px; }
.cn-doc-editing .mce-toolbar .mce-listbox button { font-size: 16px !important; }
.cn-doc-editing #doc-title, .cn-doc-editing input[name="doc[title]"] { font-size: 22px !important; }
.cn-doc-editing #doc-meta, .cn-doc-editing .doc-meta-box { font-size: 15px; }

/* First steps card */
.cn-steps-card { margin: 0 0 22px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(120deg, #2B2112, #4A3818); color: #fff; box-shadow: 0 18px 40px -26px rgba(43,33,18,.6); }
.cn-steps-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cn-steps-card h2 { margin: 0; font-family: var(--ic-serif, serif); font-weight: 500; font-size: 28px; color: #fff; }
.cn-steps-card__head a { color: #E8D3A2; font-size: 15px; }
.cn-steps-card ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cn-steps-card li a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; transition: background-color .2s; }
.cn-steps-card li a:hover { background: rgba(255,255,255,.16); }
.cn-steps-card__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #E8D3A2; color: #2B2112; font-weight: 800; }
.cn-steps-card li.is-done a { opacity: .65; }
.cn-steps-card li.is-done .cn-steps-card__n { background: #9BC59D; }
.cn-steps-card__help { margin: 14px 0 0; }
.cn-steps-card__help a { color: #E8D3A2; font-weight: 600; font-size: 16px; }

/* Home: slightly larger */
.cn-home__quick a { min-height: 44px; font-size: 16px; }
.cn-list a { font-size: 17px; }
.cn-list small { font-size: 14.5px; }

/* Help page */
.cn-help { max-width: 820px; }
.cn-help__sec { margin: 0 0 18px; padding: 20px 24px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(149,114,48,.15); }
.cn-help__sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-family: var(--ic-serif, serif); font-weight: 500; font-size: 28px; color: #3B2C12; }
.cn-help__sec h2 span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #957230; color: #fff; font-family: var(--ic-body, sans-serif); font-size: 17px; font-weight: 700; }
.cn-help__sec ul { margin: 0; padding-left: 1.2em; }
.cn-help__sec li { margin: 8px 0; font-size: 18px; line-height: 1.6; }

.cn-fs--menu { display: none; }
@media (max-width: 900px) {
	.site-header__actions .cn-fs { display: none; }
	.cn-fs--menu { display: inline-flex; margin: 8px 0; }
}
