/* /en/kitchen/organize — Organize × Kitchen L3 intersection page */

const OK_ACCENT = { brass: "#C9A86A", terracotta: "#CC664C" };

/* ===================== HERO ===================== */
const OKHero = () => (
  <section className="ok-hero">
    <div className="img" style={{ backgroundImage: "url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=2400&q=85')" }} />
    <div className="ok-mast">
      <span className="crumb">
        <a href="/">Home</a>  ·  <a href="/en/kitchen/">Kitchen</a>  ·  Organize
      </span>
      <span className="ctr">The Kitchen Organize Edition</span>
      <span className="right">№ 28 / Spring 2026</span>
    </div>
    <div className="ok-cover">
      <div>
        <div className="eyebrow">Organize · Kitchen · A Field Guide</div>
        <h1>The drawer divider is the cheapest joy <em>a kitchen can buy.</em></h1>
      </div>
      <div>
        <p className="deck">
          Twenty-eight organization guides for pantries, drawers, under-sink storage, spice racks, and the spaces you open every single day.
        </p>
        <div className="meta">
          <div><span className="k">Section</span><span className="v">Kitchen / Organize</span></div>
          <div><span className="k">Guides</span><span className="v">28 total</span></div>
          <div><span className="k">Reading time</span><span className="v">8 min</span></div>
          <div><span className="k">Updated</span><span className="v">April 2026</span></div>
        </div>
      </div>
    </div>
  </section>
);

/* ===================== TOP 5 — visible marquee ===================== */
const TOP5_GUIDES = [
  { slug: "how-to-organize-a-pantry",          title: "How to organize a pantry from scratch" },
  { slug: "how-to-organize-kitchen-drawers",   title: "How to organize kitchen drawers" },
  { slug: "how-to-organize-under-the-sink",    title: "How to organize under the sink" },
  { slug: "how-to-organize-a-spice-drawer",    title: "How to organize a spice drawer" },
  { slug: "how-to-organize-a-corner-cabinet",  title: "How to organize a corner cabinet" },
];

const OKTop5 = () => (
  <section className="ok-top5">
    <div className="ok-top5-wrap">
      <div className="section-folio">
        <span>Editor's Pick · Five Kitchen Organization Guides</span>
        <span className="pg">PG. 02</span>
      </div>
      <h2>The five guides that <em>change how you move through a kitchen.</em></h2>
      <div className="ok-top5-cards">
        {TOP5_GUIDES.map((g, i) => (
          <a key={i} href={`/en/kitchen/organize/${g.slug}/`} className="ok-top5-card">
            <span className="num">№ {String(i+1).padStart(2,'0')}</span>
            <h3>{g.title}</h3>
            <span className="read">Read →</span>
          </a>
        ))}
      </div>
    </div>
  </section>
);

/* ===================== FEATURED — Editor's Pick ===================== */
const OKFeatured = () => (
  <section className="ok-featured">
    <div className="ok-featured-wrap">
      <div className="section-folio">
        <span>Featured · Iris Editor's Pick</span>
        <span className="pg">PG. 06</span>
      </div>
      <div className="ok-featured-inner">
        <div className="side">
          <span className="badge">Editor's Pick · Iris</span>
          <h2>How to organize <em>a pantry from scratch.</em></h2>
          <p className="deck">The single most transformative organization project in a kitchen. When the pantry is mapped, you stop waste and start cooking from what you have.</p>
          <a href="/en/kitchen/organize/how-to-organize-a-pantry/" className="read">Read the full guide →</a>
        </div>
        <div className="body">
          <p className="lead">A pantry isn't organized until three things are true: (1) every item is visible, (2) like items are grouped, and (3) you can see at a glance what you have. Until all three are done, you're still buying duplicates.</p>
          <p>The biggest mistake: trying to organize before you purge. Get 20% of stuff out first. Then containers. Then the map. Then the label maker.</p>
        </div>
      </div>
    </div>
  </section>
);

/* ===================== CONTRIBUTORS ===================== */
const CONTRIBUTORS = [
  { name: "Marcus Webb", city: "Columbus, Ohio", title: "Common Kitchen Organize Fixes", time: "9 min",
    voice: "Trade contractor. Names the problem first, then numbered steps." },
  { name: "Dana Cole", city: "Austin, Texas", title: "Modern Kitchen Upgrades", time: "10 min",
    voice: "Opinion-led design. Specific products and budget ranges." },
  { name: "Ray Torres", city: "Phoenix, Arizona", title: "Kitchen Safety Checklist", time: "7 min",
    voice: "Calm building inspector. Checklist-driven." },
  { name: "Iris", city: "—", title: "How to Organize a Pantry From Scratch", time: "—",
    voice: "AI engine. Authoritative, instructional." },
];

const OKContributors = () => (
  <section className="ok-contributors">
    <div className="ok-contributors-wrap">
      <div className="section-folio">
        <span>Bylines · Four Contributors to This Hub</span>
        <span className="pg">PG. 10</span>
      </div>
      <h2>Who writes these <em>guides.</em></h2>
      <div className="ok-contrib-grid">
        {CONTRIBUTORS.map((c, i) => (
          <div key={i} className="ok-contrib-card">
            <div className="head">
              <h3>{c.name}</h3>
              <span className="city">{c.city}</span>
            </div>
            <div className="article">
              <p className="title">{c.title}</p>
              <p className="time">{c.time}</p>
            </div>
            <p className="voice">{c.voice}</p>
          </div>
        ))}
      </div>
    </div>
  </section>
);

/* ===================== BY CATEGORY ===================== */
const OKByCategory = () => (
  <section className="ok-category">
    <div className="ok-category-wrap">
      <div className="section-folio">
        <span>Full Guide Menu · Kitchen Organization by Zone</span>
        <span className="pg">PG. 14</span>
      </div>
      <h2>Browse by <em>kitchen zone.</em></h2>
      <div className="ok-category-list">
        <div className="cat-block">
          <h3>Pantry & dry storage (8 guides)</h3>
          <ul>
            <li><a href="/en/kitchen/organize/how-to-organize-a-pantry/">Pantry systems from scratch</a></li>
            <li>Container selection and standards</li>
            <li>Shelf organization by frequency</li>
            <li>Expiration tracking and rotation</li>
            <li>Labeling systems that survive moves</li>
          </ul>
        </div>
        <div className="cat-block">
          <h3>Drawers (7 guides)</h3>
          <ul>
            <li><a href="/en/kitchen/organize/how-to-organize-kitchen-drawers/">Utensil drawer dividers</a></li>
            <li>Junk drawer rescue strategies</li>
            <li>Pots and pans drawer systems</li>
            <li>Baking equipment organization</li>
            <li>Kitchen towel storage</li>
          </ul>
        </div>
        <div className="cat-block">
          <h3>Under-sink & plumbing (4 guides)</h3>
          <ul>
            <li><a href="/en/kitchen/organize/how-to-organize-under-the-sink/">Pull-out caddy systems</a></li>
            <li>Cleaning supply zones</li>
            <li>Ventilation for drying cloths</li>
            <li>Trash and recycling integration</li>
          </ul>
        </div>
        <div className="cat-block">
          <h3>Cabinets & specialty (6 guides)</h3>
          <ul>
            <li><a href="/en/kitchen/organize/how-to-organize-a-corner-cabinet/">Corner cabinet lazy susan retrofit</a></li>
            <li><a href="/en/kitchen/organize/how-to-organize-a-spice-drawer/">Spice drawer organization</a></li>
            <li>Coffee station setup</li>
            <li>Oils and condiment display</li>
            <li>Open shelf styling</li>
          </ul>
        </div>
        <div className="cat-block">
          <h3>Counter & appliances (3 guides)</h3>
          <ul>
            <li>Small appliance parking</li>
            <li>Counter decor minimization</li>
            <li>Cooking station accessibility</li>
          </ul>
        </div>
      </div>
    </div>
  </section>
);

/* ===================== MISTAKES ===================== */
const OKMistakes = () => (
  <section className="ok-mistakes">
    <div className="ok-mistakes-wrap">
      <div className="section-folio">
        <span>Common Mistakes · Organization Failures We've Seen</span>
        <span className="pg">PG. 18</span>
      </div>
      <h2>Mistakes that break <em>a kitchen system.</em></h2>
      <ul className="ok-mistakes-list">
        <li><strong>Storing rarely-used appliances at eye level.</strong> That's prime real estate. Move them to cabinets; use eye level for what you reach for daily.</li>
        <li><strong>Ignoring the door arc.</strong> The space a cabinet door swings through is wasted if you fill it with things you need to see.</li>
        <li><strong>Using bins where dividers would work.</strong> Bins hide. Dividers show. Show everything.</li>
        <li><strong>Organizing before you purge.</strong> Get 20% of stuff out first, then organize what's left.</li>
        <li><strong>Labeling one zone and giving up.</strong> Half-done systems break faster than no system.</li>
      </ul>
    </div>
  </section>
);

/* ===================== TOOLKIT ===================== */
const OKToolkit = () => (
  <section className="ok-toolkit">
    <div className="ok-toolkit-wrap">
      <div className="section-folio">
        <span>The Toolkit · Kitchen Organization Hardware</span>
        <span className="pg">PG. 20</span>
      </div>
      <h2>What you actually <em>need to buy.</em></h2>
      <div className="ok-toolkit-list">
        <div className="item">
          <h3>Drawer dividers</h3>
          <p>Bamboo adjustable or modular plastic. Bamboo is prettier; plastic is more flexible. Budget: $20–$60 per drawer.</p>
        </div>
        <div className="item">
          <h3>Lazy susan turntables</h3>
          <p>12–16 inch diameter for corner cabinets. Transforms dead space into accessible storage. Budget: $30–$80.</p>
        </div>
        <div className="item">
          <h3>Deep-drawer pegboards</h3>
          <p>Vertical storage for baking sheets, cutting boards, and serving trays. Budget: $15–$40.</p>
        </div>
        <div className="item">
          <h3>Pull-out under-sink baskets</h3>
          <p>Expandable width to fit around plumbing. Makes everything accessible. Budget: $40–$120.</p>
        </div>
        <div className="item">
          <h3>Clear storage containers</h3>
          <p>Four standard sizes: 4L, 8L, 12L, 18L. Airtight for dry goods. Budget: $40–$80 total.</p>
        </div>
        <div className="item">
          <h3>Label maker</h3>
          <p>Thermal or sticker. Thermal lasts longer; sticker works if you actually use it. Budget: $20–$60.</p>
        </div>
      </div>
    </div>
  </section>
);

/* ===================== RELATED — cross-link ===================== */
const OKRelated = () => (
  <section className="ok-related">
    <div className="ok-related-wrap">
      <div className="ok-related-col">
        <h3>Other kitchen lanes →</h3>
        <div className="ok-related-list">
          <a href="/en/kitchen/repair/" className="row"><span className="t">Repair the kitchen</span><span className="ct">64 guides</span></a>
          <a href="/en/kitchen/install/" className="row"><span className="t">Install in the kitchen</span><span className="ct">78 guides</span></a>
          <a href="/en/kitchen/build/" className="row"><span className="t">Build for the kitchen</span><span className="ct">41 guides</span></a>
          <a href="/en/kitchen/clean/" className="row"><span className="t">Clean the kitchen</span><span className="ct">56 guides</span></a>
          <a href="/en/kitchen/decorate/" className="row"><span className="t">Decorate the kitchen</span><span className="ct">35 guides</span></a>
        </div>
      </div>
      <div className="ok-related-col">
        <h3>Organize other rooms →</h3>
        <div className="ok-related-list">
          <a href="/en/organize/bathroom/" className="row"><span className="t">Organize the bathroom</span><span className="ct">22 guides</span></a>
          <a href="/en/organize/bedroom/" className="row"><span className="t">Organize the bedroom</span><span className="ct">19 guides</span></a>
          <a href="/en/organize/garage/" className="row"><span className="t">Organize the garage</span><span className="ct">31 guides</span></a>
          <a href="/en/organize/basement/" className="row"><span className="t">Organize the basement</span><span className="ct">25 guides</span></a>
          <a href="/en/organize/" className="row"><span className="t">All Organize guides</span><span className="ct">across all rooms</span></a>
        </div>
      </div>
    </div>
  </section>
);

window.OKHero        = OKHero;
window.OKTop5        = OKTop5;
window.OKFeatured    = OKFeatured;
window.OKContributors = OKContributors;
window.OKByCategory  = OKByCategory;
window.OKMistakes    = OKMistakes;
window.OKToolkit     = OKToolkit;
window.OKRelated     = OKRelated;
